Write and maintain a Software Requirements Specification (SRS) in the repo's docs/srs folder, the contract agents build toward. Use for "start an SRS", "bootstrap requirements from this repo", "add a requirement", "this ticket changes AUTH-USR-03", "log a requirement we found while building", "accept AUTH-USR-03 and 04, reject 05", "draft an interface spec", "this area file is too big, split it", "move these rows to another area", "this rule is written in three areas". Ships srs-lint, a Node ...
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 Srs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/michaelleehobbs-srs)
---
name: srs
description: >-
Write and maintain a Software Requirements Specification (SRS) in the repo's docs/srs folder, the
contract agents build toward. Use for "start an SRS", "bootstrap requirements from this repo", "add a
requirement", "this ticket changes AUTH-USR-03", "log a requirement we found while building", "accept
AUTH-USR-03 and 04, reject 05", "draft an interface spec", "this area file is too big, split it",
"move these rows to another area", "this rule is written in three areas". Ships srs-lint, a Node script that checks
the format. NOT for challenging the document (srs-debate) or proving the code meets it (srs-verify).
---
# SRS
The SRS lives in `docs/srs/` of the repo it describes. It is the definition of done, it is allowed to
change, and the developer decides what gets in. You draft and maintain it; you never decide for them.
## 0. Read the conventions
If `docs/srs/README.md` exists, read all of it before anything else. Its Conventions section is the
format, so this skill and its siblings work without each other. If the repo's README changes a
convention from the template, follow the README and tell the developer that `srs-lint` checks the
template's conventions and will flag the difference.
If there is no SRS, copy [the README template](reference/README-template.md) to `docs/srs/README.md`,
fill in what you know, and go to bootstrap (an existing codebase) or add (a new project).
[The example area](reference/example-area.md) shows a finished area file.
Either way, every time you use this skill in a repo, check its agent instructions for the rule that decisions update the SRS when they are made
([decisions](reference/decisions.md) has the wording). If it is missing, propose it before you go on, and
add it only on the developer's yes. Skip this when the README records that they declined it.
## Rules you never break
- **You write Proposed rows only.** Only the developer moves a row to Accepted, Deferred or Rejected,
in their own words. You apply their decision and quote their words in the change log.
- **Accepted text is frozen.** A change gets a new ID as a Proposed row. When the developer accepts it,
the old row's Status becomes `Superseded by <new ID>`. A Proposed row may be revised in place.
- **IDs are never reused.** The next number for a prefix is one more than the highest ever used with
it anywhere in the SRS, counting Superseded and Rejected rows and rows that moved to another file.
- **A move keeps its ID.** A row moved to another file or sub-area keeps its ID, text and status, and
leaves nothing behind: no copy, no pointer row, no `Superseded by`. Superseding means the text changed.
- **One rule, one home.** Each rule lives in one row. Another area that depends on it cites that row's
ID in its Requirement text and never restates it. A restated rule is fixed by citing the home and
retiring the copies by rejection ([one rule, one home](reference/one-rule-one-home.md)).
- **Keep files small.** At most 60 rows and 300 lines per area or interface file. Past that, split the area into a folder
with one file per sub-area ([large SRSs](reference/scaling.md)).
- **Never write `trace.md`.** Verdicts belong to verification, and whoever built the work never marks it Met.
- **Write requirements, not designs.** One behaviour per row, `shall` / `should` / `may`, verifiable,
saying what and not how: no library, table, framework or file name. Interface specs are the exception.
- **Decisions change the SRS when they are made.** A decision that sets how the product behaves
gets its Proposed rows (or Proposed replacements for Accepted rows) in the same change as the decision
record, even when the build comes later.
Never leave it as a line on a future build's checklist.
- **Never a wall.** Present at most 3 to 5 areas for decision at a time.
## Mode 1: bootstrap an existing repo
1. Inventory what the repo already says it does, following [bootstrap](reference/bootstrap.md): docs,
capability lists, roadmaps and decision records, tests, routes, schemas, CLI commands, config.
2. Propose the area list and sub-areas (area code, file name, one line each) and the Out of scope lines,
drawn from "won't", "not planned" and "non-goal" statements. An area you expect to pass 60 rows
starts as a folder with one file per sub-area. If the repo has no decision records folder, propose
`docs/decisions/` with one file per decision named `YYYY-MM-DD-<slug>.md`
([large SRSs](reference/scaling.md) says why). Ask the developer to confirm before you draft rows.
3. Draft Proposed rows for 3 to 5 areas. Every row gets a source note under its table naming where it
came from (`AUTH-USR-04: source: docs/user/capabilities.md "Lockout"; tests/auth.spec.js:40`). A
test proves something exists, not that it is required: say so when a test is the only source.
4. Present the batch: per area, the rows and a one-line question. Accept answers like "accept all but
04, defer 07, reject 09". Apply them as in mode 4, run the check, then present the next batch.
## Mode 2: add or change from a decision, conversation, ticket or idea
For a decision the developer has already made (in a debate, on a ticket, in a review), follow
[decisions](reference/decisions.md): cite the decision in every row and ask for acceptance of the wording
in the same step.
1. Read the area files it touches and search every SRS file for the behaviour, by its numbers and key
nouns: duplicates, rows it contradicts (a different number, a different rule) and Out of scope lines
it collides with. If another area already holds the rule, cite its ID rather than writing it again.
2. Draft the new or replacement rows as Proposed, with a source note naming the conversation or ticket.
When the rule being changed is restated elsewhere, fix every copy in the same change.
3. Report: rows added (IDs), existing rows touched or superseded on acceptance (IDs), conflicts and
Out of scope collisions, each with the decision it needs. Stop there until the developer decides.
## Mode 3: discovered during a build
Any agent building against the SRS that finds a requirement nobody wrote (an edge case, a limit, a
rule the design implies) appends a Proposed row to the right sub-area with a source note naming the
work: `AUTH-SES-04: source: discovered while building idle logout, PR 214`. Do not stop the build for
it and do not build to it until it is Accepted. Name the new IDs in the build's report.
## Mode 4: apply the developer's decisions
1. Map their words to IDs. If any decision is ambiguous ("accept the auth ones"), list the IDs you read
it as and confirm before writing anything.
2. Set each Status. For an accepted replacement, set the old row to `Superseded by <new ID>`.
3. Add one change-log line per decision, newest first, naming every ID explicitly (no ranges) with the
date and their words: `- 2026-11-24: Accepted AUTH-USR-03, AUTH-USR-04; deferred AUTH-SES-03 until
mobile ships. "Five attempts, not three."`
## Mode 5: interface specs
Draft or revise `docs/srs/interfaces/<name>.md` following [interface specs](reference/interface-spec.md):
its own IDs, its own semver, and the exact shape as the requirement. A breaking change bumps the major
version and supersedes the rows it changes.
## Mode 6: split a file or move rows
When `srs-lint` reports `area-size`, or a sub-area belongs in another file, follow
[large SRSs](reference/scaling.md): move whole sub-areas into `<area>/<sub-area>.md`, index them in
`<area>/README.md`, and name the folder in the top README's Areas. IDs do not change. Make the move its
own change so the review shows only moved rows. An existing SRS on the old layout follows its migration
steps.
## Check
Run the format check from this skill's folder against the SRS:
```
node <this skill's folder>/scripts/srs-lint.mjs docs/srs
```
If the repo keeps decision records in a folder, add `--decisions <that folder>` (and
`--decisions-since <file name>` if the README names one): every record that sets behaviour must be cited
by some SRS row. [Decisions](reference/decisions.md) says how it decides, and how to turn it on in a repo
with older records.
It also reports decision records that share an ID (`decision-id-collision`): two parallel sessions took
the same one. Rename one record and its citations; [large SRSs](reference/scaling.md) shows names that
cannot collide. `near-duplicate` (similar text in two areas) and `cite-target` (a citation of a
missing, Rejected or out-of-date ID) mean a rule has more than one home: follow
[one rule, one home](reference/one-rule-one-home.md). If the README records other size limits, pass them as `--max-rows <n>` and
`--max-lines <n>`.
Add `--json` for a machine-readable list. Exit 0 means clean. Exit 1 lists findings as
`file:line: rule: message`: fix every one and run it again; never report the work done with findings
open. Exit 2 means a wrong path or option, or the script could not run; it prints why.
If Node is not available, the check has not run, and you say so in your report as a failure. Then go
through [the checks by hand](reference/lint-by-hand.md), mark each pass or fail with the row it concerns,
and give that list to the developer.
## Report
End with: the rows you added or changed, by ID; each decision waiting on the developer as a numbered
line with your recommended answer; and the check's result.
## It is working if
The check exits 0, every Proposed row has a source note, every Accepted row traces to a dated
change-log line in the developer's words, and every decision that sets behaviour is cited by a row.
Files in this skill
SKILL.md6 KB
reference/README-template.md3.7 KB
reference/bootstrap.md2.9 KB
reference/example-area.md1.7 KB
reference/interface-spec.md1.6 KB
reference/lint-by-hand.md2.1 KB
scripts/fixtures/accepted-no-changelog/README.md967 B