feature-spec
Skill0 starsChanged 5 months agoMITView on GitHub
Author, review, or amend feature SPECs per FEATURE_STANDARD. Use when creating a new {FEATURE_SPEC_ROOT}/<slug>/SPEC, reviewing before Approved, writing an amendment, checking SPEC status, or triaging a free-text feature request (intake) to the right executor. Ensures §15 Concept registry and mandatory H2 sections. Does not implement code.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- devexpert-io/harness-startertheir own version, first seen Sep 26, 2026
- ruslanlap/ai-dev-pipeline-skillstheir own version, first seen Sep 23, 2026
- PackmindHub/packmindtheir own version, first seen Sep 21, 2026
- carreiras/claude-skillstheir own version, first seen Jul 10, 2026
- yasunori0418/skillstheir own version, first seen Jun 27, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- PackmindHub/packmind★ 317same name
- natnew/awesome-ai-scientists★ 19same name
- yasunori0418/skills★ 8same name
- gonimar/claude-web-studio★ 5same name
- carreiras/claude-skills★ 4same name
- devexpert-io/harness-starter★ 4same name
- manishkumar98/nextleap-claude-code★ 1same name
- ruslanlap/ai-dev-pipeline-skills★ 0same name
- vbrevik/claude_code_skills★ 0same name
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 repository22 other files it gives its agents.
- ai-directorSkill
- code-implementationSkill
- code-repairSkill
- code-verifySkill
- concept-runSkill
- db-migrationSkill
- deploy-basicSkill
- deploy-filesSkill
- dev-stackSkill
- docsSkill
- infra-terraformSkill
- plan-foundationSkill
- plan-masterSkill
- plan-repairSkill
- plan-syncSkill
- plan-verifySkill
- process-routerSkill
- project-bootstrapSkill
- project-query-setupSkill
- session-controlSkill
- tauri-developmentSkill
- x-directorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. 0 are common, 8 are distinctive, and 16 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
SPEC template: use FEATURE_STANDARD §3 H2 headings exactly - no omissions.
- Distinctive: line 22
§15 required: before Approved (or explicit N/A with reason).
- Very specific: line 27
Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output.
- Very specific: line 28
Document clarity: every generated document follows the Document clarity contract — Status + Needs header, separate Decisions/Open questions …
- Very specific: line 93
If the request is underspecified and the owner is not available to probe now, also add it to {PLANS_ROOT}/UNKNOWNS.md so it surfaces at …
- Very specific: line 114
Brownfield check (hard stop): if {FEATURE_SPEC_ROOT}/<slug>/ already exists → stop with the blocked-report shape:
- Very specific: line 118
Readiness check (warning only - proceed if user confirms): read latest {HANDOFF} for Plan-master-ready: row.
- Very specific: line 125
If the text after - is not a valid slug (kebab-case, ≤4 words, no spaces/capitals) treat it as a free-text purpose:
- Very specific: line 135
Read FEATURE_STANDARD §2–§3, §8 (naming), §15.
- Distinctive: line 137
Check for related ADRs / foundation docs.
- Very specific: line 138
Create {FEATURE_SPEC_ROOT}/<slug>/YYYYMMDD-SPEC.md with all §3 H2 sections.
- Very specific: line 141
When creating for brownfield catalog or cross-cutting surfaces (shell, layout, analytics): add optional §14 Implementation map …
- Distinctive: line 144
Stop: if user has not stated problem scope - ask once for one-paragraph purpose.
- Very specific: line 156
Read the SPEC and FEATURE_STANDARD §3, §7 (DoD), §9 (anti-patterns).
- Distinctive: line 157
Check every mandatory H2 present (§3 template).
- Distinctive: line 158
Check §15 filled or justified N/A.
- Distinctive: line 159
Check ADR references exist and are not contradicted.
- Distinctive: line 190
Do not edit the original SPEC file.
- Distinctive: line 199
Read-only. Report: path, Status header, last modified, §15 present?, linked ADRs, amendment siblings.
- Very specific: line 210
If .work/docs/features/<slug>/README.md already exists → read it, then offer: overwrite / amend / abort.
- Very specific: line 219
Use @plan-verify coverage output if available.
- Very specific: line 223
Read scaffold from .ai/templates/work/docs/features/example-slug/README.md.template (self-hosted: …
- Very specific: line 224
Write (or update) .work/docs/features/<slug>/README.md with:
- Very specific: line 234
If a formal SPEC exists at .work/features/<slug>/, link it as Source SPEC.
“Common” is measured: kept by at least 6 in 10 of the 7 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
feature-spec
Orchestrate feature SPEC artifacts under {FEATURE_SPEC_ROOT}/<feature-slug>/ per .work/standards/*FEATURE_STANDARD* (path from .cursorrules REPLACE:FEATURE_STANDARD_FILE).
Tool-agnostic. Pairs with: concept-run (§15 registry), plan-foundation P3, code-implementation (reads Approved SPECs).
Canonical path: .ai/skills/feature-spec/skill.md
Hard rules:
- SPEC template: use FEATURE_STANDARD §3 H2 headings exactly - no omissions.
- §15 required before Approved (or explicit N/A with reason).
- Approved SPECs are immutable - changes go in
YYYYMMDD-SPEC-amendment-NN-<slug>.mdsiblings. - High-risk SPECs (threat model / FEATURE_STANDARD §2) need ≥2 reviewers before Approved.
- No code in this skill unless user explicitly asks to implement after Approved.
- Filename:
{FEATURE_SPEC_ROOT}/<slug>/YYYYMMDD-SPEC.md(date = today when creating). - Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output; approvals under
**Needs your approval:**citingpath:L<n>; questions numbered under**Needs your answer:**; exactly one**Next step:**command; one line when nothing is needed (Form A). Decisions and questions never mixed; empty sections omitted. - Document clarity: every generated document follows the Document clarity contract — Status + Needs header, separate Decisions/Open questions lists, one
## Next action, no placeholder scaffolding left behind.
Parse invocation
| User says | Mode | Action |
@feature-spec intake - <free sentence> | intake | Classify an unstructured request → route to the right executor |
@feature-spec create - <slug | free-text purpose> | create | New SPEC from template (derives slug if given a sentence) |
@feature-spec review - <path> | review | Checklist against FEATURE_STANDARD |
@feature-spec amend - <path> | amend | New amendment file |
@feature-spec status - <path or slug> | status | Read-only: exists? status header? §15? |
@feature-spec approve - <path> | approve | Set header Approved after review passes |
@feature-spec document - <slug> | document | Brownfield feature documentation (.work/docs/features/<slug>/) |
Slug: kebab-case, informative (user-auth, not feature1).
Step 0 - Pick a mode
| Mode | Action |
| intake | Intake protocol |
| create | Create protocol |
| review | Review protocol |
| amend | Amend protocol |
| status | Status protocol |
| approve | Run review first; on pass, update **Status:** to Approved |
| document | Document protocol |
Intake protocol
The free-text front door: classify one unstructured request, route it to the right executor, and record it so nothing is lost. Never auto-executes the cross-cutting / brownfield paths - those carry their own gates; intake only dispatches.
IN1 - CLASSIFY (by blast radius)
First matching row wins, read top-down:
| Signal in the request | Class | Route to |
| Repo has no foundation/master plan yet | brownfield | @plan-verify brownfield → @plan-repair brownfield, then re-run intake |
| Vague intent / no measurable outcome statable | underspecified | @plan-foundation probe (or @plan-master probe), then re-classify |
| Touches ≥2 milestones, adds a new NFR target, or shifts scope | cross-cutting | @plan-master probe → @plan-master revise / @plan-repair master - <goal> |
| Single surface/endpoint/screen, no new cross-cutting NFR | local | continue into CR0.5 → create |
Override: @feature-spec intake - <sentence> ; force=<class> skips IN1 and uses the named class (local | cross-cutting | brownfield | underspecified).
IN2 - ROUTE
State the detected class and the single next command.
- local → proceed into CR0.5 (derive slug) then CR1.
- cross-cutting / brownfield / underspecified → stop and hand off the command; do not run it (each has its own gate).
IN3 - RECORD (request never lost)
Append one line to {PLANS_ROOT}/NEXT.md under a ### Intake queue heading (create the heading if absent):
- <YYYY-MM-DD> · <class> · "<original sentence>" → <next command>If the request is underspecified and the owner is not available to probe now, also add it to {PLANS_ROOT}/UNKNOWNS.md so it surfaces at session close.
Intake report
## @feature-spec intake - <short label>
**Request:** "<sentence>" · **Class:** local | cross-cutting | brownfield | underspecified
**Run next:** <single command>
**Recorded:** {PLANS_ROOT}/NEXT.md § Intake queueEnd the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.
Create protocol
<a id="cr0---brownfield--readiness-gates"></a>
CR0 - Brownfield + readiness gates
- Brownfield check (hard stop): if
{FEATURE_SPEC_ROOT}/<slug>/already exists → stop with the blocked-report shape:- Required: slug folder does not already exist
- Detected:
{FEATURE_SPEC_ROOT}/<slug>/already contains files (list) - Run first:
@feature-spec amend - <slug>(to add a SPEC amendment), or pick a different slug, or delete the existing folder if it is a stale stub
- Readiness check (warning only - proceed if user confirms): read latest
{HANDOFF}forPlan-master-ready:row. If absent or no, emit:- Warning: SPEC will not slot into an Approved master plan yet (
plan-master-ready: noor unknown). The SPEC is still useful forplan-foundationP3, but make sure your team expects out-of-plan SPECs. - Run first (optional):
@plan-foundation certify plan-master-ready→@plan-master status - Then continue with create if user confirms in the same message.
- Warning: SPEC will not slot into an Approved master plan yet (
CR0.5 - Free-text argument (derive slug)
If the text after - is not a valid slug (kebab-case, ≤4 words, no spaces/capitals) treat it as a free-text purpose:
- Propose a kebab-case slug derived from the request (e.g. "let users export invoices to CSV" →
invoice-csv-export). State it; proceed unless the user objects in the same message. - Carry the original sentence verbatim into SPEC §1 Purpose (no need to re-ask the one-paragraph purpose in CR1).
- Re-run CR0 brownfield/readiness checks against the derived slug.
Explicit kebab-case slug → skip this step.
CR1 - Author the SPEC
- Read FEATURE_STANDARD §2–§3, §8 (naming), §15.
- Confirm slug does not collide with existing bounded-context folder name alone (use verb phrase if needed).
- Check for related ADRs / foundation docs; list in SPEC header.
- Create
{FEATURE_SPEC_ROOT}/<slug>/YYYYMMDD-SPEC.mdwith all §3 H2 sections. - Fill §15 Concept / NFR registry - one row per MOD-01…MOD-08 with Applies yes/no + reason (or run
@concept-run listfor trigger hints). - Set
**Status:** Draft. - When creating for brownfield catalog or cross-cutting surfaces (shell, layout, analytics): add optional §14 Implementation map (FEATURE_STANDARD) with primary file paths from
@plan-verify coverageor user inventory. - Output create report with path and open questions (§13). Any operator-required approval/question (e.g. open §13 questions) must ALSO appear in the closing handoff block (enumerated, with
path:line); end the report with the Operator handoff close per SKILL_DEPENDENCIES.md.
Stop if user has not stated problem scope - ask once for one-paragraph purpose.
Blocked-report shape
Per SKILL_DEPENDENCIES.md § Blocked report shape - header: ## @feature-spec <command> - blocked (prerequisite).
Review protocol
- Read the SPEC and FEATURE_STANDARD §3, §7 (DoD), §9 (anti-patterns).
- Check every mandatory H2 present (§3 template).
- Check §15 filled or justified N/A.
- Check ADR references exist and are not contradicted.
- High-risk features: flag if single-reviewer approval requested.
- Output review report:
## feature-spec review - <slug>
**Path:** … · **Status:** Draft | Approved | …
### Checklist
| # | Check | Result | Notes |
|---|-------|--------|-------|
| 1 | All §3 H2 sections | pass/fail | |
| 2 | §15 concept registry | pass/fail | |
| 3 | ADR alignment | pass/fail/skip | |
| 4 | Test plan (§12) actionable | pass/fail | |
| 5 | Out of scope explicit (§2) | pass/fail | |
### Verdict
approve-ready | needs-revision - <bullets>End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md; any operator-required approval/question above (e.g. high-risk reviewer waiver) must ALSO appear in that closing handoff block (enumerated, with path:line), not only in the checklist.
Amend protocol
- Confirm base SPEC is Approved or Implemented (not Draft-only unless user waives).
- Create
{FEATURE_SPEC_ROOT}/<slug>/YYYYMMDD-SPEC-amendment-NN-<short-slug>.md. - Structure: Purpose of amendment, Binding changes (numbered), Evidence (ADR/questionnaire link), SPEC sections affected.
- Do not edit the original SPEC file.
- Cross-link from amendment to base SPEC and any ADR.
End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.
Status protocol
Read-only. Report: path, Status header, last modified, §15 present?, linked ADRs, amendment siblings. End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.
<a id="document-protocol-brownfield--existing-features"></a>
Document protocol (brownfield / existing features)
Creates or updates .work/docs/features/<slug>/README.md — human-readable feature documentation without requiring formal SPEC lifecycle. Idempotent: updates existing doc in place (no amend system needed; this is not a binding SPEC).
D0 - Brownfield detection
If .work/docs/features/<slug>/README.md already exists → read it, then offer: overwrite / amend / abort. Default: amend (append new findings).
D1 - Discover
Scan the codebase for the feature's surface:
- Entry points (routes, commands, UI paths)
- Key source files (primary module, tests, migrations)
- Any existing SPEC (
.work/features/<slug>/) or ADR references
Use @plan-verify coverage output if available. If the feature has an existing formal SPEC, read it and carry forward its §1 Purpose, §14 Implementation map, and §2 In scope.
D2 - Author
- Read scaffold from
.ai/templates/work/docs/features/example-slug/README.md.template(self-hosted:templates/work/docs/features/example-slug/README.md.template). - Write (or update)
.work/docs/features/<slug>/README.mdwith:
| Section | Content |
| Purpose | One-paragraph description of what the feature does |
| How to use | Usage instructions, examples, CLI/web UI paths |
| Entry points | Layer → path table (routes, modules, screens) |
| Key files | Important source files and their roles |
| Changelog | Date + change rows (append-only) |
If a formal SPEC exists at .work/features/<slug>/, link it as Source SPEC. Do NOT reproduce behavioural rules, data models, or §15 registry — that belongs in the SPEC.
D3 - Report
## @feature-spec document - <slug>
**Path:** `.work/docs/features/<slug>/README.md`
**Template:** `templates/work/docs/features/example-slug/README.md.template`
**Status:** documented | updated
**Source SPEC:** yes/no (link if yes)
**Surface scanned:** <list of routes/modules checked>End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md; any operator-required approval/question (e.g. D0 overwrite/amend/abort choice) must ALSO appear in that closing handoff block (enumerated, with path:line), not only in the report body.
Integration
| Skill / doc | When |
@concept-run list | Filling §15 |
@plan-foundation P3 | Foundation-phase SPEC batch |
@code-implementation start | Requires Approved SPEC for feature tasks |
| FEATURE_STANDARD §7 | DoD before marking Implemented |
Anti-patterns
- Merging code before SPEC Approved.
- Editing Approved SPEC in place (use amend).
- Skipping §15 "because M1 is small".
- Empty §2 Out of scope.
- Burying operator actions/questions in prose instead of the closing handoff block.
Completion checklist
| # | Check | Result |
| 1 | FEATURE_STANDARD §3 compliance (create/approve) | pass/fail/skip |
| 2 | §15 registry (create/approve) | pass/fail/skip |
| 3 | Slug/path valid | pass |
| 4 | Surface scanned (document mode) | pass/skip |
| 5 | No unauthorized code changes | pass |
End the checklist with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md; any operator-required approval/question must ALSO appear in that closing handoff block (enumerated, with path:line), not only in the checklist.
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.

