Write or update a feature spec in docs/specs with testable acceptance criteria and its lifecycle. Use when an M or L change is framed, when code a spec governs changes behaviour, and on "écris la spec", "write the spec".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Spec?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sycatle-spec)
---
name: spec
description: Write or update a feature spec in docs/specs with testable acceptance criteria and its lifecycle. Use when an M or L change is framed, when code a spec governs changes behaviour, and on "écris la spec", "write the spec".
disable-model-invocation: true
---
# Spec
The spec is the durable "what and why" of a feature: what it must do, observed from outside, and what it
deliberately does not. The tests come from it, the review checks against it, and the next agent reads it
instead of guessing from the code.
## Write it
- One file per feature: `docs/specs/<ticket>-<slug>.md`, from `template.md` in this skill's folder.
An M fills Problem, Acceptance criteria, Out of scope and Test seams; an L fills every section.
- **Acceptance criteria** are Given / When / Then, observable from outside, each one testable on its own.
If you cannot imagine the test, the criterion is not finished.
- **Out of scope** says what a reader would expect and will not get. It prevents the scope creep the
criteria cannot.
- **Test seams** name the public interfaces the tests go through (a function, an endpoint, a command, a
page). Tests at the seams survive refactors; tests on internals do not.
- `paths` lists the globs of code it governs, kept narrow.
- Plain words first; technical detail in its own section, so the owner can read the top and decide.
## Lifecycle
`draft` while framing, `accepted` once the user approves it (always a human for L), `implemented` in the
pull request that delivers its last criterion, `superseded` (with `superseded-by`) when a new spec replaces
it. A replaced spec is kept, never deleted: it explains the code that was built from it.
## Keep it true
A change to behaviour under a spec's `paths` updates the spec in the same pull request, or says in the
pull request why it does not need to. A spec that disagrees with the tests is worse than none: it
misleads with authority. Done when the criteria describe what the code now does.