Format and rules for writing a NEW-FEATURE issue (code that does not exist yet) an agent implements autonomously. Use in /flow:feature. Focuses on deciding (where it lives, which approach, what is MVP) and integrating, not mapping existing code.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Feature Spec?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/eusilvio-feature-spec)
---
name: feature-spec
description: "Format and rules for writing a NEW-FEATURE issue (code that does not exist yet) an agent implements autonomously. Use in /flow:feature. Focuses on deciding (where it lives, which approach, what is MVP) and integrating, not mapping existing code."
user-invocable: false
---
# Writing a new-feature issue
A new feature has no existing-code map — it has a neighborhood and decisions.
The work is to DECIDE and INTEGRATE, not to locate. Say where the new thing is
born, what it talks to, and what is out of MVP. Architecture decisions are
explicit, not silent. The issue body is the only spec the implementer gets —
there is no separate implementer comment.
## Format
```
Origin: <PR/issue/context, if any>
Investigated at: <short SHA of HEAD during the investigation>
Brain: <[[slug]] of each brain note relied on, or omit the line>
## Goal
<what the feature does and why — the user outcome, not the implementation>
## Neighborhood
- Lives in: <module/folder where the feature should live, and why there>
- Mirror: <existing analogous pattern/component to follow, with path>
- Reuse: stack/libs already in the repo this feature should use (do not add
a new one without need)
## Integration points
- <existing path:line the feature will TOUCH — route, schema, menu, type>
- <what of the current code it consumes or extends>
## MVP scope
- In: <the minimum that delivers observable value>
- Out (next step): <what explicitly does NOT go in now>
- Don't: <what NOT to break/reuse and why>
## Open decisions (resolve at implementation)
- <architecture decision: where exactly it lives, which approach, which pattern>
Recommended resolution: <your pick, stated concretely>
- <real conflict or trade-off to evaluate with the human>
Recommended resolution: <...>
(a feature almost always HAS decisions here — do not force empty, but do not
pretend everything is decided either. EVERY item carries a Recommended
resolution: /flow:implement --auto adopts it; an item without one makes the
pipeline skip the issue)
## Implementer notes
- Files to create: <in dependency order — each with exact path, one-line role,
and which existing file it mirrors structurally>
- Edge cases: <trigger condition → failure mode → required guard, one per line>
(omit for trivial features)
## How to verify
- <test command to create/run, or "verify manually by doing X">
- <convention to mirror for the tests>
## Success criteria
- [ ] C1 <observable result>
verify: `<exact command whose output proves it>` -> <expected output>
- [ ] C2 <UI-only result>
verify: MANUAL - <url>, <role>, <clicks>, <what the user sees>
```
## Quality rules
- **Goal is outcome, not implementation.** "User exports the report as CSV",
not "create exportCsv() in utils".
- **Neighborhood has real paths.** The module where it is born and the pattern
to mirror already exist — cite them with path. /flow:implement trusts this.
- **Integration points with path+line:** new code is uncertain, but what it
touches already exists and must be precise.
- **Architecture decisions are "Open decisions"**, not closed scope.
- **Explicit MVP:** separate what goes in now from what comes later.
- **Every criterion has a `verify:` line** - the exact command and expected
result, or `MANUAL -` steps when only a human can see it. Same rule as
`issue-spec` (Success criteria): QA runs the command verbatim first.
- **Test commands reach the test.** Same rule as `issue-spec`: run new tests
through the script whose config includes them (integration tests usually
have their own script and config); a pattern the default config excludes
finds 0 files and proves nothing.
- **Do not invent the neighborhood.** If there is no analogous pattern, say so
— and that becomes an open decision (which pattern to adopt).
- **Proportionality:** small self-contained feature → Goal + Neighborhood +
Success criteria are enough; omit the rest. Never pad a section to fill the
template.