nanostack
Skill207 starsChanged 8 months agoApache-2.0View on GitHub
Use when the user asks about available workflow skills, wants an overview of the engineering workflow, or references "nanostack". Also triggers on /nanostack.
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Read ZEN.md for the full set of principles.
- Distinctive: line 45
Delete what shouldn't exist.
- Distinctive: line 65
Saving artifacts is not optional: Every skill must save its artifact after completing.
- Very specific: line 87
When skills produce contradictory guidance (e.g., /review says "more error detail" but /security says "minimize error exposure"), the …
- Very specific: line 93
Read reference/conflict-precedents.md for known conflict patterns and pre-defined resolutions.
- Distinctive: line 103
If config exists, read it at the start of any skill to adapt behavior:
- Very specific: line 117
Read before acting: Every skill must read the relevant code/diff/config before producing output.
- Distinctive: line 118
Boil the lake, not the ocean: When completeness costs minutes more than shortcuts, do the complete thing.
- Distinctive: line 119
Log failures, not just successes: When something goes wrong during a skill (script error, wrong approach, unexpected project behavior), …
- Very specific: line 141
Start with /think for new products or when the "what" is unclear
- Very specific: line 142
Run /nano before building anything that touches more than 3 files
- Very specific: line 143
Run /review on your own code — the adversarial pass catches what you missed
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nanostack — Engineering Workflow Skills
You have access to a set of composable engineering workflow skills. Each skill is a folder with supporting files — read them as needed for context.
Available Skills
| Skill | When to use | Modes | Key files |
/think | Before you build. Refines a rough idea through questions, explores alternatives, walks the design in sections. | — | think/references/forcing-questions.md, think/references/cognitive-patterns.md |
/nano | Before starting any non-trivial work. Produces a scoped, actionable plan. | — | plan/templates/plan-template.md |
/review | After code is written. Two-pass review + scope drift detection + conflict resolution. | --quick --standard --thorough | review/checklist.md, reference/conflict-precedents.md |
/qa | To verify code works. Browser-based testing with Playwright, plus root-cause debugging. | --quick --standard --thorough | qa/bin/screenshot.sh |
/security | Before shipping. OWASP Top 10 + STRIDE + variant analysis + conflict detection. | --quick --standard --thorough | security/references/owasp-checklist.md, security/templates/security-report.md |
/ship | To create PRs, merge, deploy, and verify. Generates sprint journal on success. | — | ship/templates/pr-template.md |
/guard | When working near production, destructive operations, or sensitive systems. | — | guard/bin/check-dangerous.sh |
/feature | Add a feature to an existing project. Skips /think, goes straight to plan → build → review → security → qa → ship. | — | feature/SKILL.md |
/conductor | Orchestrate parallel agent sessions through a sprint. Coordinate task claiming and artifact handoff. | start claim complete status | conductor/bin/sprint.sh |
/nano-run | First-time setup. Configures stack, permissions, and preferences conversationally. Guides first sprint. | — | start/SKILL.md |
/nano-help | Quick reference for all nanostack commands and how to use them. | — | help/SKILL.md |
Workflow Order
The default workflow is: /think → /nano → build → /review → /security → /qa → /ship
With /conductor, review + security + qa run in parallel — they all depend on build, not on each other:
think → plan → build ─┬─ review ─┐
├─ qa ├─ ship
└─ security ─┘Activate /guard at any point when operating near production or sensitive systems.
Zen
Read ZEN.md for the full set of principles. When in doubt about a decision during any skill, consult it. The short version:
- Question the requirement before writing the code.
- Delete what shouldn't exist. Don't optimize what's left until you do.
- Narrow the scope, not the ambition.
- Fix it or ask. Never ignore it.
- Security is not a tradeoff. It is a constraint.
- The output should look better than what was asked for.
Intensity Modes
Skills /review, /security, and /qa support intensity modes:
| Mode | Flag | When | Confidence |
| Quick | --quick | Trivial changes (typos, config, docs) | 9/10 — only the obvious |
| Standard | (default) | Normal changes | 7/10 — anything reasonable |
| Thorough | --thorough | Critical changes (auth, payments, infra) | 3/10 — flag everything suspicious |
Skills auto-suggest a mode based on the diff, but the user always decides.
Artifact Persistence
Saving artifacts is not optional. Every skill must save its artifact after completing.
Skills automatically save their output to .nanostack/ after every run:
.nanostack/<phase>/<timestamp>.jsonThis enables:
- Scope drift detection —
/reviewcompares planned vs actual files - Conflict detection —
/reviewand/securitycross-reference each other's findings - Sprint journals —
/shipgenerates a journal entry from all phase artifacts - Trend tracking — Are security findings decreasing over time?
Auto-saving is on by default. The user can disable it by setting auto_save: false in .nanostack/config.json.
Artifacts are validated before saving: save-artifact.sh rejects invalid JSON, missing required fields (phase, summary), and phase mismatches.
To discard artifacts from a bad session: bin/discard-sprint.sh (removes artifacts and journal entry for the current project and date).
Conflict Resolution
When skills produce contradictory guidance (e.g., /review says "more error detail" but /security says "minimize error exposure"), the conflict resolution framework applies:
- Security has default precedence — unless the risk is theoretical or internal-only
- Context determines final precedence — public-facing app vs internal tool vs startup vs compliance
- Conflicts are documented, not silenced — every resolution is recorded in the skill artifact
Read reference/conflict-precedents.md for known conflict patterns and pre-defined resolutions.
Project Config
On first use in a project, run bin/init-config.sh --interactive to create .nanostack/config.json. This stores:
- Installed agents — auto-detected (claude, codex, cursor, opencode, gemini)
- Detected stack — node, go, python, docker
- Preferences — default intensity mode, auto-save, conflict precedence
If config exists, read it at the start of any skill to adapt behavior:
bin/init-config.sh # outputs current config or {} if noneSkills use config for:
/review,/qa,/security: readpreferences.default_intensityinstead of always defaulting to standard/security: readpreferences.conflict_precedenceto determine who wins in cross-skill conflicts/security: readdetectedto skip irrelevant checks (don't scan for Python vulns in a Go project)
Per-skill configs (security/config.json, guard/config.json) store skill-specific settings and are read by that skill only.
Universal Rules
- Read before acting. Every skill must read the relevant code/diff/config before producing output. Never analyze blind.
- Boil the lake, not the ocean. When completeness costs minutes more than shortcuts, do the complete thing. When it costs days, don't.
- Log failures, not just successes. When something goes wrong during a skill (script error, wrong approach, unexpected project behavior), capture it:
Failures compound into knowledge. Next sprint, the same mistake is avoided. This does not require /compound or a successful ship — just log and move on.~/.claude/skills/nanostack/bin/capture-failure.sh <skill> "<what went wrong>" "<what was tried>" "<what fixed it>"
Proactive Triggers
Suggest skills when context matches — don't wait for the user to remember:
| Trigger | Suggest |
| User says "what should I build" / unclear on direction | /think |
| Task touches 3+ files or user says "how should I approach this" | /nano |
| User says "done", "finished", "ready for review" | /review |
| User says "does this work", "test this", bug report | /qa |
| Pre-ship, user says "ready to deploy", or diff touches auth/env/infra | /security |
| User says "create PR", "merge", "ship it" | /ship |
| Destructive commands, production access, or sensitive operations detected | /guard |
Usage Rules
- Start with
/thinkfor new products or when the "what" is unclear - Run
/nanobefore building anything that touches more than 3 files - Run
/reviewon your own code — the adversarial pass catches what you missed /securityis not optional before shipping to production/guardis on-demand — activate it, don't leave it always on- Skills compose:
/qacan invoke/securitychecks,/shipcan invoke/review
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

