spec
Skill9 starsChanged 19 days agoMITView on GitHub
Write the implementation spec for one feature or roadmap task at docs/specs/NNN_<feature>.md — problem, design, affected files, flag, and verification criteria with concrete inputs and outputs — and slice it into independently mergeable pieces when it is more than one concern. Use when the user says 'spec out X', 'write the plan for Y', 'turn this idea into a spec', 'this roadmap task needs a spec', or wants a document /wf:feature can build from. Not for bug fixes (/wf:fix).
193 other projects use a version of this.
Adopted by
Most recently taken up by
- Facta-Dev/beautifulqttheir own version, first seen Nov 29, 2026
- Facta-Dev/beautifulnodejstheir own version, first seen Nov 29, 2026
- TheAxeC/ordotheir own version, first seen Nov 29, 2026
- romerma/mstacktheir own version, first seen Nov 29, 2026
- justincordova/agentstheir own version, first seen Nov 29, 2026
- swimmesberger/Elariontheir own version, first seen Nov 29, 2026
Used with
Projects with it also use backprop, ios-clean and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JuliusBrusseeSkillbackprop
Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.
Also in 4 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
Saqlain-811Skillios-fix
Autonomous iOS bug fixer. (gstack)
Also in 5 projects that use this
bastosSkillios-design-review
Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".
Also in 5 projects that use this
timurgaleevSkilldocument-generate
Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.
Also in 6 projects that use this
ShreyRaviSkillplan-tune
Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.
Also in 7 projects that use this
- +2 more from Saqlain-811
Other versions193 projects use a version of this.
Word for word · 1
- 0xrafasec/ai-workflow★ 9100% same
Edited · 0
None found.
Wrote their own version · 192
- garrytan/gstack★ 143ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- kdlbs/kandev★ 1.2ksame name
- JuliusBrussee/cavekit★ 1.2ksame name
- getsentry/sentry-dart★ 877same name
- poshan0126/dotclaude★ 871same name
- codewithmukesh/dotnet-agent-kit★ 853same name
- codewithmukesh/dotnet-claude-kit★ 853same name
- SparkDevNetwork/Rock★ 703same name
- strands-agents/box★ 650same name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- dotfiles/CLAUDE.mdCLAUDE.md
- adrSkill
- architectureSkill
- autopilotSkill
- commitSkill
- designSkill
- featureSkill
- fixSkill
- issuesSkill
- new-projectSkill
- prdSkill
- prSkill
- roadmapSkill
- threat-modelSkill
- verify-designSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 169 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
Create a feature implementation spec for: $ARGUMENTS
- Distinctive: line 12
Every spec path starts with a zero-padded 3-digit prefix mirroring its roadmap phase number, so spec order matches roadmap order at a …
- Very specific: line 19
If this spec implements a task in docs/roadmap/NNN_<phase>.md, use that same NNN.
- Very specific: line 21
No roadmap yet: scan docs/specs/ and use max(existing) + 1.
- Distinctive: line 24
Before writing any file, tell the user the path and which roadmap phase it mirrors.
- Distinctive: line 28
Read what already exists before asking anything:
- Distinctive: line 32
An existing spec for this feature: if the user is revising, don't start from scratch.
- Very specific: line 33
Inherited project with no docs: read the README, the directory structure, key entry points, git log --oneline -20 and the manifest …
- Distinctive: line 49
Every slice leaves the trunk branch deployable.
- Distinctive: line 51
No slice depends on an unmerged slice.
- Distinctive: line 81
Write each sub-spec with the single-file template below, but omit Trunk Metadata: its Slices row is its metadata.
- Very specific: line 153
Commit the spec; /wf:autopilot needs specs on the trunk branch.
“Common” is measured: kept by at least 6 in 10 of the 169 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create a feature implementation spec for: $ARGUMENTS
In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.
Spec Numbering & Path
Every spec path starts with a zero-padded 3-digit prefix mirroring its roadmap phase number, so spec order matches roadmap order at a glance.
- Single spec:
docs/specs/NNN_<slug>.md - Sliced spec:
docs/specs/NNN_<slug>/containingREADME.md(index) andMMM_<slice>.mdfiles. The directory-vs-file distinction is how sliced specs are identified; theNNNprefix stays on the directory, never moves to the children. - Separator between prefix and slug is
_; within the slug, words are joined by-(e.g.,003_atlassian-integration.md).
Picking NNN:
- If this spec implements a task in
docs/roadmap/NNN_<phase>.md, use that sameNNN. - Multiple specs in one phase: letter suffixes
NNN.A_<name>.md,NNN.B_<name>.md, in task order. A lone spec has no suffix. - No roadmap yet: scan
docs/specs/and usemax(existing) + 1. Don't renumber later when a roadmap is added. - Never renumber an existing spec: commits, PRs and issues reference specs by path.
Before writing any file, tell the user the path and which roadmap phase it mirrors.
Context Gathering
Read what already exists before asking anything:
- Docs:
docs/PRD.mdordocs/prd/,docs/ARCHITECTURE.md(anddocs/TECHNICAL_DESIGN_DOCUMENT.mdin older projects),docs/THREAT_MODEL.md,README.md, the project's agent instructions (CLAUDE.mdorAGENTS.md). - Roadmap and specs: list
docs/roadmap/anddocs/specs/to pickNNN. If the input is a roadmap task, take its Files, Flag, Depends on, Complexity, Verification andDesign referencefrom the task. - An existing spec for this feature: if the user is revising, don't start from scratch.
- Inherited project with no docs: read the README, the directory structure, key entry points,
git log --oneline -20and the manifest (package.json,Cargo.toml,pyproject.toml, ...). Summarize what you understood before the interview.
Interview
Read the affected code and draft the spec first. Ask only what is still open, at most 4 questions per AskUserQuestion call. Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. If the user cannot be asked (a headless run), proceed from what exists and list each assumption under an Open questions heading in the spec. The spec must be precise enough to implement without further clarification, so cover: what changes, edge cases, security (auth, input validation, data exposure), concrete verification cases with inputs and expected outputs, and dependencies. Skip what does not apply: an API contract and data model mean nothing for a CLI, UI-only or docs change.
Reference existing architecture, TDD and security docs; don't repeat them.
Slice (trunk-based)
Estimate size in added source lines only; tests never count toward the budget. A PR is one concern, and roughly 1,000 added source lines or ~40 changed source files is the point to check that it still is (the size guide in your global agent instructions (~/.claude/CLAUDE.md or ~/.codex/AGENTS.md)).
- Up to ~1,000 lines, or larger but one concern that is meaningless in parts: one spec, one PR, a single file. For the larger case, say in the spec why it stays together.
- Over ~1,000 lines and more than one concern: slice into independently mergeable vertical slices, each one concern, under
docs/specs/NNN_<slug>/. Never cut one concern into slices that only make sense together.
Slicing rules:
- Every slice leaves the trunk branch deployable. If a slice adds user-visible behavior that isn't ready, name a feature flag (default off).
- Slice vertically (DB, API, UI for one capability), not horizontally; horizontal slices pile up un-shippable intermediate state.
- No slice depends on an unmerged slice. If B truly needs A merged first, mark the dependency and don't start B until A is merged.
- Each slice is its own branch and PR.
/wf:featurenames the branch.
Trunk metadata fields (in the Slices table and in single-file specs):
- Type: conventional-commit prefix (
feat,fix,refactor,chore,test,docs,perf,build,ci,security). Drives the branch prefix and thetype:*label. - Flag: exact flag name (default off), or
noneif it ships user-ready. This is the single source for the flag. - Depends on: other slice numbers or specs that must merge first;
—if independent. - Complexity:
lowis under ~300 added source lines,medunder ~1,000,highis more than that or more than one concern. Ahighslice is a smell to re-slice; if you keep it, add a## Slicingsection saying why one PR is still defensible. - Risk:
T0,T1orT2with a one-line why, e.g.T2 — changes the session token format. Pick it from Risk tiers in your global agent instructions (~/.claude/CLAUDE.mdor~/.codex/AGENTS.md), the one definition (highest match wins; when unsure take the higher). Size does not set it./wf:featurere-checks it against the diff. - Issue:
—until/wf:issuesfills it with#<number>.
Sliced index (docs/specs/NNN_<slug>/README.md). The Slices table is the source of truth for /wf:issues:
# Feature: [Name]
## Problem
[One paragraph, shared context for all slices.]
## Slices
| # | Slice | Type | Flag | Depends on | Complexity | Risk | Issue |
|---|-------|------|------|------------|------------|------|-------|
| 001 | [slice-name](001_slice-name.md) | feat | `none` or `flag_name` | — | low/med/high | T1 — <why> | — |
| 002 | [slice-name](002_slice-name.md) | feat | `flag_name` | 001 | low/med/high | T2 — <why> | — |
## Rollout
[When each flag flips on, who owns the decision, what verifies the rollout.]Write each sub-spec with the single-file template below, but omit Trunk Metadata: its Slices row is its metadata.
Single-file specs carry a short block near the top:
## Trunk Metadata
- **Type:** feat
- **Flag:** `none` or `flag_name`
- **Depends on:** — | NNN | #N
- **Complexity:** low/med/high
- **Risk:** T1 — <one-line why>
- **Issue:** — (filled by `/wf:issues`)Write
Omit template sections that do not apply. Single spec or sub-spec:
# Feature: [Name]
## Problem
[What problem does this solve? Who is affected?]
## Solution
[High-level approach. What changes and why.]
## Technical Design
### Affected Files
[Files to create or modify.]
### API Changes
[Endpoints, request/response shapes, error codes]
### Data Model
[Schema changes, migrations needed]
### Architecture
[Which components change and how they interact. Reference ARCHITECTURE.md if it exists. Copy the roadmap task's `Design reference` here for UI work.]
## Security Considerations
[Auth requirements, input validation, data exposure risks. Reference THREAT_MODEL.md if it exists.]
## Feature Flag
[Only when a flag exists: name, default off, when it flips.]
## Verification Criteria
Verification command: [command that runs these checks]
### Unit Tests
- [ ] [function/module]: [input] → [expected output]
- [ ] [validation]: [invalid input] → [expected error]
- [ ] [edge case]: [boundary condition] → [expected behavior]
### Integration Tests
- [ ] [API endpoint]: [request] → [response + status code]
- [ ] [database operation]: [action] → [expected state]
- [ ] [service interaction]: [call] → [expected result]
### E2E Tests (if applicable)
- [ ] [user flow]: [steps] → [expected outcome]
*Adapt the layers to what the feature touches: pure logic needs unit tests, an API feature unit + integration, a critical user flow all three. Reference the Testing Strategy in `docs/ARCHITECTURE.md` (in older projects, `docs/TECHNICAL_DESIGN_DOCUMENT.md`) if it exists.*
## Out of Scope
[What this does NOT include]After Writing
- Present the spec to the user for review. Iterate until they're satisfied.
- Commit the spec;
/wf:autopilotneeds specs on the trunk branch. If issues were already filed for it, re-run/wf:issues <spec>so they get the drift update. - Next step:
/wf:issues docs/specs/NNN_<name>.md(or.../NNN_<name>/README.mdfor a sliced spec) fills theIssuefield(s) so/wf:featurecan name the branch from the issue number. Then/wf:feature docs/specs/NNN_<name>.md(single) or/wf:feature docs/specs/NNN_<name>/MMM_<slice>.md(one slice at a time).
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.

