A workflow harness that helps AI coding agents plan, review, test, and ship safer code.
$ npx -y skills add garagon/nanostack --agent claude-code
What's inside
Nanostack adds planning, code review, security checks, and testing to your AI coding workflow. It saves the plan and results as files, so you can see what changed and how it was checked.
Verified adapters: Claude Code, Cursor, OpenAI Codex, OpenCode, and Gemini CLI. Claude Code supports blocking hooks; the other adapters use guided instructions. See the per-agent capabilities and verification records for dates and test scope. Installation checks do not guarantee a full sprint on every host version.
npx create-nanostack
Run /nano-run in your agent to configure the project. See requirements and installation options.
Start with /think to work through an idea, or /nano to plan a defined change. For an autonomous sprint in an existing project, use /feature <goal>; it automatically approves the plan and continues through the phases.
Inspired by gstack from Garry Tan. Apache 2.0. No Nanostack cloud. See privacy for telemetry and agent-provider details, and release notes for recent changes.
Not sure yet? Start with a disposable sandbox from the Examples Library. It gives you a real sprint without risking your product.
| Example | Best for | Stack | Time |
|---|---|---|---|
starter-todo | new and non-technical users | one HTML file | 5-10 min |
cli-notes | CLI workflows | Bash | 5-15 min |
api-healthcheck | backend flows | Node stdlib HTTP | 10-15 min |
static-landing | founders and designers | static HTML/CSS | 10-15 min |
compliance-release | teams building a custom workflow stack | license + privacy + release gate | 15-30 min |
Each example has a copy-paste prompt, expected sprint flow, success criteria, and reset steps. Full Examples Library: examples/.
compliance-release is advanced. It is not a starter app and it is not a compliance certification. It shows how several custom skills can compose into one release workflow.
| If you are... | Start here |
|---|---|
| New to agent workflows | Try starter-todo, then run /nano-run |
| Already shipping with AI agents | Install Nanostack, then start with /think or /feature |
| Evaluating safety | Read Guard and the host enforcement matrix |
| Building your own workflow | Start with EXTENDING.md and compliance-release |
| Inspecting what the agent did | Render any phase as local HTML with visual artifacts (bin/render-artifact.sh) |
Your agent can already edit files and run commands. Nanostack gives it a method: 13 built-in skills, a seven-phase default sprint, and a framework for composing your own workflow stacks.
The default sprint turns a request into a scoped, reviewed, security-checked, tested change with a PR and a sprint journal. Each phase writes a structured artifact: a small local file that records what was decided and what was checked. Later phases read those files instead of depending only on chat history.
The bet is artifact-first delivery:
On Claude Code, Nanostack can enforce parts of the workflow through PreToolUse hooks. On other agents, the same workflow runs as guided instructions. See What enforces on which agent for the honest per-host table.
The built-in sprint is the default stack:
| Step | What the specialist does | |
|---|---|---|
| 01 | /think | Refines your rough idea through questions. Finds the smallest useful version. |
| 02 | /nano | Plans the implementation. Names files, risks, and checks. |
| 03 | build | You or the agent writes the code. |
| 04 | /review | Two-pass code review. Scope drift detection. Auto-fixes the mechanical. |
| 05 | /security | OWASP A01-A10 audit + STRIDE threat modeling. Graded A-F. |
| 06 | /qa | Tests the thing. Browser, API, CLI, or root-cause debug. |
| 07 | /ship | PR creation, CI verification, release notes, sprint journal. Production deployment stays explicit and user-controlled. |
Nanostack adapts the explanation, not the standard.
| Profile | What changes |
|---|---|
| Guided | Plain language, one next action, safer defaults, no hidden jargon. |
| Professional | Denser output, deeper tradeoffs, explicit files, commands, and risks. |
Local mode uses Guided language by default. A git project can still use Guided if the user wants simpler explanations.
The wording rules live in reference/plain-language-contract.md. The session fields that select the profile live in reference/session-state-contract.md.
Nanostack is agent-agnostic, but agent hosts do not expose the same control points. The adapter files in adapters/ are the source of truth for each host.
| Level | Meaning |
|---|---|
| L0 Guided | The skill tells the agent what to do but cannot block it. Also covers a capability the host cannot provide at all. |
| L1 Checked | Nanostack can detect and report the issue, but cannot block it. |
| L2 Guarded | The host runs a nanostack hook before the action. |
| L3 Enforced | The hook can block the action and the host honors the block. |
| L4 Continuously verified | A CI job exercises the capability on every change. |
A detailed per-host matrix (Bash guard, Write/Edit guard, phase gate) lives further down in What enforces on which agent.
Nanostack is a process, not a collection of tools. The skills run in the order a sprint runs:
/think → /nano → build → /review → /security → /qa → /ship
Each skill feeds into the next. /nano writes an artifact that /review reads for scope drift detection. /review catches conflicts with /security findings. /ship verifies everything is clean before creating the PR. On Claude Code the phase gate enforces the pipeline at the hook layer: git commit is blocked until review, security, and qa have fresh artifacts. On agents without hook support the same gate runs as guided instructions, so the safety depends on the agent following them; see What enforces on which agent.
| Skill | Your specialist | What they do |
|---|---|---|
/think | Product discovery | Activates before you build. Refines a rough idea through questions, one at a time. Explores 2-3 approaches with trade-offs. Walks the design with you, section by section. Saves a brief your next steps read. Supports guided archetypes, search privacy modes (local_only, private, public), --retro for sprint reflection, and --autopilot after the brief is complete. |
/nano | Eng Manager | Auto-generates product specs (Medium scope) or product + technical specs (Large scope) before implementation steps. Product standards for web (shadcn/ui), CLI/TUI (Bubble Tea, Rich, Ink, Ratatui). Stack defaults with CLI preference for beginners. |
/review | Staff Engineer | Two-pass code review: structural then adversarial. Reports proposed repairs and decisions needing your input. Detects scope drift against the plan. Cross-references /security with 10 conflict precedents. |
/qa | QA Lead | Functional testing + Visual QA. Takes screenshots and analyzes UI against product standards. Browser, API, CLI and debug modes. Reports reproducible bugs without editing product code. |
/security | Security Engineer | Auto-detects your stack, scans secrets, injection, auth, CI/CD, AI/LLM vulnerabilities. Graded report (A-F). Cross-references /review for conflict detection. Every finding includes the fix. |
/ship | Release Engineer | Pre-flight + repo quality checks. PR creation, CI monitoring, sprint journal. After commit, asks: run locally, deploy to production, or done. Production path guides through hosting, domain, monitoring, costs. |
| Skill | What it does |
|---|---|
/compound | Knowledge |
FAQ
nanostack is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes nanostack. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it