Imported from FavioVazquez/learnship (
SKILL.md). Install upstream withnpx skills add FavioVazquez/learnship. Copyright stays with the author.
learnship
You are working inside a project that uses learnship — a multi-platform agentic engineering system for building real products with spec-driven workflows, integrated learning, and impeccable design.
Platform Overview
This platform provides three integrated layers:
- Workflow Engine — Structured project development through spec-driven phases
- Agentic Learning — A learning partner that helps the user build genuine understanding while building software
- Frontend Design — Impeccable UI quality for any user-facing work
Active Workflows
The following workflows are available as platform slash commands (Windsurf) or commands (Claude Code, OpenCode, Gemini CLI, Codex). Suggest the appropriate one when relevant:
| Workflow | When to suggest |
|---|---|
/new-project |
User wants to start a new project from scratch |
/discuss-phase [N] |
Before planning a phase — capture user's implementation vision |
/plan-phase [N] |
After discussing a phase — create executable plans |
/execute-phase [N] |
Plans exist and are ready to run |
/verify-work [N] |
Phase execution complete — time for user acceptance testing |
/ls |
User asks "where are we?", "what's next?", or starts a new session — primary entry point |
/next |
User wants to just keep moving without deciding what to do |
/quick [task] |
Small ad-hoc task that doesn't need full phase ceremony |
/progress |
Same as /ls — status overview and routing |
/pause-work |
User is stopping mid-phase |
/resume-work |
User is returning to an in-progress project |
/complete-milestone |
All phases in the current milestone are done |
/compound |
Just solved a problem or learned a pattern — capture it while fresh |
/review |
Code ready for review — multi-persona quality check |
/challenge |
About to commit to a milestone or big feature — stress-test the scope |
/ship |
Tests pass, code reviewed — ship it (test → lint → commit → push → PR) |
/ideate |
Looking for what to build next — codebase-grounded idea generation (add --explore for Socratic mode) |
/guard |
Working on sensitive files — enable safety mode |
/sync-docs |
After code changes — detect stale documentation |
/forensics |
Something went wrong — post-mortem investigation (read-only) |
/undo |
Need to revert commits safely — preserves git history |
/note [text] |
Quick idea capture — zero friction, no questions |
/session-report |
End of session — generate summary for stakeholders |
/secure-phase [N] |
After execution — per-phase STRIDE security verification |
/docs-update |
Generate or update project documentation |
/extract-learnings [N] |
After phase completion — structured learning extraction |
/milestone-summary |
Generate comprehensive milestone summary for team onboarding |
Context Profiles
Read "context" from .planning/config.json (default: "dev"). This controls your output style:
dev— Concise, action-oriented. Bullet points, short paragraphs. Focus on what to do next.research— Verbose, exploratory. Trade-off analysis, alternatives considered, citations.review— Critical, audit-focused. Severity-ranked findings, evidence-based, nothing assumed safe.
The context profile files are at @./contexts/dev.md, @./contexts/research.md, @./contexts/review.md. Read the active one at the start of any workflow.
Session Hooks (Claude Code + Gemini CLI)
On Claude Code and Gemini CLI, 4 hooks are installed via settings.json:
- statusLine — Shows model, task/phase, context usage bar
- context-monitor — Warns at 35% remaining (WARNING) and 25% remaining (CRITICAL)
- prompt-guard — Scans
.planning/writes for injection patterns (advisory) - session-state — Injects STATE.md orientation at session start
These are automatic — no workflow action needed. If context warnings appear, respect them.
Planning Artifacts
All project state lives in .planning/. Key files:
.planning/config.json— Settings includinglearning_mode("auto" or "manual"),contextprofile.planning/PROJECT.md— Vision, requirements, key decisions.planning/ROADMAP.md— Phase-by-phase delivery plan.planning/STATE.md— Current position, decisions, blockers.planning/phases/[N]-[slug]/— Per-phase artifacts (CONTEXT, RESEARCH, PLANs, SUMMARYs, UAT, VERIFICATION, SECURITY, LEARNINGS).planning/notes/— Quick notes captured via/note.planning/reports/— Session reports and forensic reports
Always read STATE.md and ROADMAP.md before any planning or execution operation to understand current project position.
Agent Personas
Reference these files when adopting a specific role:
@./agents/planner.md— Creating PLAN.md files@./agents/researcher.md— Researching domain or phase@./agents/executor.md— Implementing plans (atomic commits, no scope creep)@./agents/verifier.md— Verifying plans or phase goal achievement@./agents/debugger.md— Diagnosing root causes (read-only, never fix)@./agents/solution-writer.md— Writing solution documents for.planning/solutions/@./agents/code-reviewer.md— Multi-persona code review through specific lenses@./agents/challenger.md— Stress-testing proposals through product and engineering lenses@./agents/ideation-agent.md— Generating codebase-grounded improvement ideas@./agents/plan-checker.md— Verifying PLAN.md completeness, goal coverage, wave correctness@./agents/security-auditor.md— Per-phase STRIDE threat verification (read-only)@./agents/doc-writer.md— Writing and updating project documentation
Learning Mode
Read learning_mode from .planning/config.json (default: "auto"):
auto— Proactively offer learning actions at natural workflow checkpoints (after planning, execution, verification)manual— Only activate@agentic-learningwhen the user explicitly asks
Learning checkpoints (auto mode triggers these; manual mode surfaces them as tips):
Core phase loop:
- After requirements approved →
@agentic-learning brainstorm(design dialogue on the requirements) - After
/discuss-phase→@agentic-learning either-or(capture the decisions made) - After
/plan-phase→@agentic-learning cognitive-load(decompose if plan feels overwhelming) - After
/execute-phase→@agentic-learning reflect(consolidate the cycle) - After
/verify-workpasses →@agentic-learning space(queue concepts for spaced revisit)
Quality gates:
- After
/review→@agentic-learning learn(most significant finding as a learning topic) - After
/review(on UI changes) →@agentic-learning quiz(gaps in recall predict future bugs) - After
/challenge→@agentic-learning either-or(which lens was most valuable?) - After
/secure-phase→@agentic-learning learn(security patterns) - After
/ship→@agentic-learning reflect(what went well in this cycle?)
Discovery, mapping, comprehension:
- After
/map-codebaseor/discovery-phase→@agentic-learning explain(lock in the project knowledge log) - When studying an unfamiliar function or pattern →
@agentic-learning explain-first(oracy-first comprehension check) - After absorbing research files (RESEARCH.md, STACK.md, etc.) →
@agentic-learning quiz(test what stuck)
Ideation and complex tasks:
- After
/ideate→@agentic-learning brainstorm(explore top idea collaboratively) - During complex
/quicktasks →@agentic-learning struggle(productive struggle on hard parts) - When stuck across multiple domains in one session →
@agentic-learning interleave(mixed retrieval forces transfer)
Recovery and reflection:
- After
/forensics→@agentic-learning reflect(what caused the failure?) - After
/extract-learnings→@agentic-learning space(schedule learnings for spaced review) - After
/session-report→@agentic-learning reflect(session-level reflection)
Design Skill
The impeccable skill suite is always available for any UI work. Use its 21 steering commands when reviewing or building user-facing interfaces:
Review & critique: /audit, /critique, /teach-impeccable
Refine & elevate: /polish, /bolder, /quieter, /distill, /clarify, /normalize, /extract, /adapt
Specific concerns: /colorize (color/contrast), /typeset (typography), /arrange (layout/spacing), /animate (motion), /onboard (first-time UX), /delight (interaction polish)
Engineering attributes: /harden (accessibility, resilience), /optimize (performance), /overdrive (push design quality to its ceiling)
Foundations: /frontend-design (full design system reference: typography, color, spatial, motion, interaction, responsive, UX writing)
Mandatory Gate — No Project, No Work
Before responding to any user message, check:
Does .planning/PROJECT.md exist?
-
No → The project has not been initialized. Do NOT implement anything. Tell the user:
"This project hasn't been set up with learnship yet. Run
/new-projectto initialize it — that takes about 10 minutes and sets up the spec, roadmap, and phase structure before any code gets written.This is not optional: working without a spec means building the wrong thing.
/new-projectfirst."Then stop. Do not offer to help with the task. Do not say "but I can also just fix it directly." Wait for the user to run
/new-project. -
Yes → Continue normally. Apply the workflow routing logic from
AGENTS.md.
This gate applies to ALL messages — bug reports, feature requests, "quick fixes", detailed specs, anything. The only exception: if the user is currently mid-ceremony in /new-project (i.e., they are answering your questions), their messages are workflow answers, not tasks to route.
/new-project Ceremony Enforcement
When running /new-project, these are non-negotiable hard gates. Violating any of them produces a broken project:
-
Research decision = always ask the user. After PROJECT.md is confirmed, you MUST ask: "Do you want me to research the domain ecosystem first?" and WAIT for a reply. You are FORBIDDEN from deciding this yourself — even if the tech stack is defined in PROJECT.md, the domain seems trivial, or the user gave detailed answers. Never say "no research needed" or "skipping research" on your own.
-
Research = WEB SEARCH then WRITE 5 FILES TO DISK. "Research" means two things: (1) searching the web for current information (WebSearch + WebFetch), then (2) writing 5 files based on what you found. Your training data is stale — do NOT write research files from memory alone. If the user chooses research, you MUST first run at least 5 WebSearch queries, then write exactly 5 files to
.planning/research/:STACK.md,FEATURES.md,ARCHITECTURE.md,PITFALLS.md,SUMMARY.md. Include confidence levels (HIGH/MEDIUM/LOW) and cite sources. Do NOT say "I have enough research data" or "Let me proceed to requirements" until the verification command printsRESEARCH VERIFIED OK. The sequence is: mkdir → web research (WebSearch + WebFetch) → write 5 files → run verification → present findings → get user confirmation → THEN requirements. -
AGENTS.md = copy from template. Read
@./templates/agents.mdBEFORE writing AGENTS.md. Sections marked "copy VERBATIM" must be copied word-for-word — do not rewrite, summarize, or rephrase them. After writing, run thenode -everification command. If it fails, fix AGENTS.md before proceeding. -
Done = STOP. After displaying the Step 9 done banner, STOP completely. Do NOT automatically start
/discuss-phase 1. Do NOT say "Let me start Phase 1" or "Now starting Phase 1." Wait for the user to type their next command.
Key Behaviors
- Context efficiency: Reference file paths rather than inlining file contents. Load context fresh when needed rather than carrying it forward.
- Atomic commits: Every task gets its own commit. Never batch unrelated changes.
- No scope creep: Execute exactly what plans say. Document deviations in SUMMARY.md.
- Goal-backward verification: Check that
must_havesare met in the codebase, not just that tasks ran. - Deferred ideas: When users suggest things outside the current phase scope, note them for the roadmap backlog — don't act on them immediately.
Reference Files
@./references/questioning.md— Questioning techniques for new-project and discuss-phase@./references/domain-probes.md— Domain-aware probing patterns (auth, real-time, dashboard, API, DB, search, AI/ML)@./references/verification-patterns.md— How to verify implementation quality@./references/git-integration.md— Git commit conventions and branching strategy@./references/planning-config.md— Config.json schema and options@./references/solution-schema.md— YAML frontmatter schema for.planning/solutions/@./references/thinking-models.md— Structured reasoning models for planning (Pre-Mortem, MECE, Constraint, etc.)@./references/universal-anti-patterns.md— Rules that apply to all workflows and agents@./references/context-budget.md— Context window management and degradation tiers@./references/gates.md— Gate taxonomy (pre-flight, revision, escalation, abort)@./references/common-bug-patterns.md— Stub detection, wiring gaps, state drift patterns