Agent skill
nano
Use when starting non-trivial work (touching 3+ files, new features, refactors, bug investigations). Produces a scoped, actionable implementation plan before any code is written. Triggers on /nano.
Install this agent skill to your Project
npx add-skill https://github.com/garagon/nanostack/tree/main/plan
SKILL.md
/nano — Implementation Planning
You turn validated ideas into executable steps. Every file gets named. Every step gets a verification. Every unknown gets surfaced. The plan is a contract: if it says 4 files, the PR should touch 4 files.
Session
If no active session exists, initialize one:
~/.claude/skills/nanostack/bin/session.sh status
If the output shows "active":false, create a session:
~/.claude/skills/nanostack/bin/session.sh init development
Then run session.sh phase-start plan.
Local mode: Run source bin/lib/git-context.sh && detect_git_mode. If result is local, adapt language: "implementation plan" → "paso a paso", "files to modify" → "archivos que vamos a crear", "architecture checkpoint" → skip (overkill for non-technical users). Present the plan as a simple numbered list of what you'll build, not a spec document. Same rigor, accessible words. In the "Next Step" section, do NOT list slash commands (/review, /security, /qa, /ship). Instead say: "Cuando termine, reviso la calidad y te aviso si hay algo que ajustar."
Process
1. Understand the Request
-
Read the /think artifact if one exists for this project:
bash~/.claude/skills/nanostack/bin/find-artifact.sh think 2If found, extract and use:
key_risk→ add to your Risks section. This was already validated by /think.narrowest_wedge→ this is the scope constraint. Don't plan beyond it.out_of_scopeitems from /think → pre-populate your Out of Scope section.scope_mode→ if /think said "reduce," plan the smallest version. If "expand," plan bigger.premise_validated→ if false, flag it. Don't plan for an unvalidated premise.
If think artifact is missing but /think ran (you can see a Think Summary in the conversation above), recover it now:
bash~/.claude/skills/nanostack/bin/save-artifact.sh --from-session think 'Value prop: <from summary>. Scope: <from summary>. Wedge: <from summary>. Risk: <from summary>. Premise: <from summary>.'This saves the think output retroactively so /review can check scope drift and the sprint journal is complete.
-
Check git history for recent changes in the affected area — someone may have already started this work or made decisions you need to respect.
-
Search past solutions: run
~/.claude/skills/nanostack/bin/find-solution.shwith keywords related to the technologies and files in scope. The output shows ranked summaries with title, severity, tags and files. Read the summaries first, then load only the solutions relevant to the current task. Past mistakes and patterns should inform the current sprint. -
If the request is ambiguous, ask clarifying questions using
AskUserQuestionbefore proceeding. Do not guess scope. -
If the user doesn't specify their tech stack and needs to pick tools (auth, database, hosting, etc.), check for overrides first, then fall back to defaults:
- Read
.nanostack/stack.jsonif it exists (project-level preferences) - Read
~/.nanostack/stack.jsonif it exists (user-level preferences) - Read
plan/references/stack-defaults.mdfor anything not covered above - If the project already has a stack (check package.json, go.mod, requirements.txt), use what's there regardless of any config. Suggest, don't impose. The user always has the final say.
- Read
-
Always use the latest stable version of every dependency. Don't rely on versions from training data.
2. Evaluate Scope
Classify the work:
| Scope | Criteria | Output |
|---|---|---|
| Small | 1-3 files, single concern, clear path | Implementation steps only |
| Medium | 4-10 files, multiple concerns, some unknowns | Product spec + implementation steps + risks |
| Large | 10+ files, cross-cutting, architectural impact | Product spec + technical spec + implementation steps + phased execution |
For small scope: produce a brief plan and move on. Do not over-plan trivial work.
3. Specs (Medium/Large scope only)
Before writing implementation steps, produce the specs that define what you're building. Skip this for Small scope.
Medium scope: Product Spec only.
Use plan/templates/product-spec.md. Cover: problem, solution, user stories, acceptance criteria, user flow, edge cases, out of scope. Keep it to 1-2 pages. This is what the team reads to understand what "done" looks like.
Large scope: Product Spec + Technical Spec.
Also use plan/templates/technical-spec.md. Cover: architecture, data model, API contracts, integrations, technical decisions, security considerations, migration/rollback. This is what the team reads to understand how the system works.
Present the specs to the user before writing implementation steps. Specs are the contract. If the spec is wrong, the plan will be wrong and the code will be wrong. Get alignment here.
4. Write the Implementation Plan
Use the template at plan/templates/plan-template.md as your output structure. Fill in every section that applies to the scope level.
Key requirements:
- Every file you will touch must be listed — no surprises during implementation
- Order of operations matters — list steps in the sequence you will execute them
- Each step must be independently verifiable — how will you know it worked?
- Identify what you do NOT know — unknowns are more valuable than knowns in a plan
5. Architecture Checkpoint (Medium/Large scope only)
Before presenting, validate the plan against these engineering concerns:
- Data flow: Can you trace data from input to storage to output? If not, there's a hidden dependency.
- Failure modes: What happens when each external call fails? (DB down, API timeout, disk full). If the plan doesn't address this, it's incomplete.
- Scaling bottleneck: Is there a single point that won't handle 10x load? (synchronous loop, unbatched DB queries, in-memory state). Name it.
- Test matrix: For each step, what's the minimum test that proves it works? If you can't name it, the step is too vague.
- Rollback: Can you undo each step independently? If not, mark which steps are one-way doors.
Skip this for Small scope — it's overkill for a 3-file change.
6. Product Standards (if the plan includes user-facing output)
If the plan produces anything a user will see or interact with, apply these standards. They are not optional. A product built with an AI agent should look and feel better than one built without it.
UI/Frontend:
- Use a component library. Default: shadcn/ui + Tailwind. Not raw CSS, not Bootstrap, not Material UI from 2019. The bar is professional SaaS quality.
- Dark mode support from day one. Not as a follow-up. It takes 5 minutes more with Tailwind.
- Mobile responsive. If it doesn't work on a phone, half the users can't use it.
- No AI slop: no purple gradients, no centered-everything landing pages, no generic hero copy, no Inter font as the only choice. If it looks like every other AI-generated site, it's wrong.
SEO (if web-facing):
- Semantic HTML.
<main>,<article>,<nav>,<h1>hierarchy. Not a div soup. - Meta tags: title, description, og:image, og:title, og:description. Every page.
- Performance: images optimized, no layout shift, Core Web Vitals passing.
- Sitemap and robots.txt if the site has more than one page.
LLM SEO (if the product should be discoverable by AI):
- Structured data (JSON-LD) for the content type: Product, Article, FAQ, HowTo, SoftwareApplication.
llms.txtat the root describing what the site/product does in plain language.- Clean, descriptive URLs.
/pricingnot/page?id=3. - Content that answers questions directly in the first paragraph. LLMs extract from the top, not the bottom.
CLI/TUI (if the plan produces a command-line tool):
- Use a TUI framework. Default by language:
- Go: Bubble Tea + Lip Gloss for interactive TUIs. Cobra for command structure. Glamour for markdown rendering.
- Python: Rich for output formatting. Textual for interactive TUIs. Click or Typer for command structure.
- Node/TypeScript: Ink for interactive TUIs. Commander for command structure. Chalk for colors.
- Rust: Ratatui for interactive TUIs. Clap for command structure.
- Color output by default. Respect
NO_COLORenv var and--no-colorflag. - Structured output: support
--jsonflag for machine-readable output. Human-readable is default. - Progress indicators for operations that take more than 1 second (spinners, progress bars).
- Error messages must be actionable: what went wrong, why, and what the user should do. Not stack traces.
- Exit codes: 0 for success, 1 for user error, 2 for system error. Consistent across all subcommands.
- Help text: every command and flag has a description.
--helpworks on every subcommand. - No wall of text output. Use tables, columns, indentation and color to make output scannable.
- Version flag:
--versionprints version and exits.
If the plan is a pure library with no user-facing output, skip this section.
7. Present and Confirm
If AUTOPILOT is active: Present the plan briefly and proceed immediately. Do not wait for approval. The user chose autopilot because they trust the process.
Otherwise: Present the plan to the user. Wait for explicit approval before executing. If the user modifies the plan, update it before proceeding.
After the plan is approved (or auto-approved in autopilot), do these two steps in order:
Step 1: Save the artifact. Run this command now — do not skip it:
~/.claude/skills/nanostack/bin/save-artifact.sh --from-session plan 'N files planned: file1, file2, ... Key decisions: X, Y.'
Or pass full JSON for richer detail (recommended — /review uses planned_files for scope drift):
~/.claude/skills/nanostack/bin/save-artifact.sh plan '<json with phase, summary including planned_files array, context_checkpoint>'
Step 2: Build and proceed.
Next Step
After the user approves the plan and you finish building:
If AUTOPILOT is active:
After build completes, invoke each skill in sequence using the Skill tool. Do NOT implement review/security/qa logic yourself — invoke the skill and let it run its full process.
-
Invoke review:
Use Skill tool: skill="review"Wait for completion. Show:Autopilot: review complete. Running /security... -
Invoke security:
Use Skill tool: skill="security"Wait for completion. Show:Autopilot: security complete. Running /qa... -
Invoke qa:
Use Skill tool: skill="qa"Wait for completion. Show:Autopilot: qa complete. Running /ship... -
Invoke ship:
Use Skill tool: skill="ship"
Stop the sequence if any skill finds blocking issues or critical vulnerabilities. For parallel execution across multiple terminals, use /conductor.
Otherwise (default):
Tell the user:
Build complete. Next steps in the sprint:
/reviewto run a two-pass code review with scope drift detection/securityto audit for vulnerabilities/qato test that everything worksThese three can run in any order. After all pass,
/shipto create the PR.
Wait for the user to invoke each one.
Gotchas
- Don't plan in a vacuum. The #1 failure mode is planning without reading the code first.
- Don't split what should be atomic. If two changes must land together to avoid breaking the system, they are one step, not two.
- Don't plan tests separately from implementation. Each step should include its verification. "Write tests" as a standalone step at the end means you planned the implementation without thinking about testability.
- Don't list alternatives you've already rejected. If you evaluated three approaches and chose one, state the choice and one sentence on why. Don't write a comparison essay.
- Scope creep in plans is real. If you notice yourself adding steps that weren't in the original request, stop and check with the user.
- Time estimates are noise. Do not include time estimates. Focus on what needs to happen, not how long it might take.
- Raw CSS is not a plan. If the product has a UI and the plan says "add styles" without specifying a component library, the plan is incomplete. The default is shadcn/ui + Tailwind. Deviate only with reason.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
feature
Add a feature to an existing project with a full sprint. Skips /think diagnostic, goes straight to planning. Use when the user knows what they want and the project already exists. Triggers on /feature.
guard
Use when working near production, sensitive systems, or destructive operations. Activates on-demand safety hooks that block dangerous commands. Supports modes — careful (warn), freeze (block writes outside scope), unfreeze (remove restrictions). Triggers on /guard, /careful, /freeze, /unfreeze.
ship
Use when code is ready to ship — creates PRs, merges, deploys, and verifies. Handles the full PR-to-production pipeline. Triggers on /ship.
think
Use before planning when you need strategic clarity — product discovery, scope decisions, premise validation. Applies YC-grade product thinking to challenge assumptions and find the narrowest valuable wedge. Supports --autopilot to run the full sprint automatically after approval. Triggers on /think, /office-hours, /ceo-review.
compound
Document what you learned during this sprint. Reads artifacts, writes structured solutions to know-how/solutions/. Run after /ship or after fixing a significant bug. Triggers on /compound.
review
Use after writing code to get a thorough code review. Runs two passes — structural correctness then adversarial edge-case hunting. Scales depth by diff size. Supports --quick, --standard, --thorough modes. Triggers on /review.
Didn't find tool you were looking for?