Skip to content
Back to skills

Spec

ASecurity

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".

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
developmentgo

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add Sycatle/senior-mode --skill spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sycatle-spec-77cc1ebc/badge)](https://www.skillsdirectory.com/skills/sycatle-spec-77cc1ebc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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".
invocation: explicit
---

# 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.

Files in this skill

  • SKILL.md1.9 KB
  • template.md525 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.