/rstack:ears-specfrom rstack
Interviews the user and then writes a requirements spec in EARS (Easy Approach to Requirements Syntax) format plus a traceable task list for a new software project or feature. Use whenever the user wants a spec, requirements document, PRD, functional or non-functional requirements, acceptance criteria, or "shall" statements, or mentions EARS or wants to pin down what a system must do before building it. Also use when the user types /ears-spec. Do not write the spec on the first turn; the skill gathers context interactively first.
Ships in rstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a conversation into spec.md (what the system must do) and tasks.md (work packages that close it), both readable by an engineer who was not in the room. Gather first, write second.
A dialogue, not a questionnaire. Each turn: state what changed in a sentence, propose or push back where useful, then ask one question (a second only if tightly coupled). Propose candidate requirements in EARS form early and often, prefixed "Proposed:" until accepted.
Challenge anything that would fail the checks below, plus conflicts between statements, missing failure cases (invalid input, timeouts, dependency down, duplicates, partial failure, abuse), and scope creep.
Cover, in whatever order the conversation allows:
Track what is known, assumed, and open. Never silently promote an assumption to a requirement.
Offer to write when the system, actors, boundary, goals, and non-goals are named, every applicable area has a requirement with numbers where they belong, and no open question would change the shape of the spec. If the user says "write it" earlier, comply and record the gaps as assumptions or open questions.
Say "Writing the spec now." and produce both files without narrating. Default location specs/<feature-name>/. Never overwrite existing files; suffix -2 or ask.
REQ-01, or REQ-<AREA>-01 once the spec spans several areas or about 20 requirements. Never renumber. Unmarked means user-stated; append (proposed) for an accepted Claude proposal or (assumed, Q-nn) for an assumption.Q-01... Each with why it matters and the REQ IDs depending on it. Provisional decisions go here as Assumed: <X>, confirm with <who>.- **REQ-AUTH-03** When a user submits valid `Credentials`, the Auth Service shall issue a `SessionToken` that expires 24 hours after issuance.
- **REQ-AUTH-04** If the identity provider does not respond within 3 seconds, then the Auth Service shall return HTTP 504 and record the timeout. (proposed)
Work packages, each independently mergeable and verifiable against the requirements it closes. No implementation steps.
## T-01 Issue session tokens
Closes: REQ-AUTH-03, REQ-AUTH-04
Done when: valid credentials return a `SessionToken` with 24h expiry; a 3s+ IdP delay returns 504 and a logged timeout.
Touches: `SessionToken` schema, auth handler
Closes: enabling is allowed only for work no requirement can name (scaffolding, migrations, CI). Keep such tasks few.
Run on your own draft; a failure means edit and re-run.
shall is fixed by rewording, not splitting.(assumed, Q-nn) points at a real entry.Present both files with a two-sentence summary, the open questions that most need the user, and any enabling tasks.
<precondition> <trigger> the <system name> shall <response>
| Pattern | Template |
|---|---|
| Ubiquitous | The <system> shall <response>. |
| Event-driven | When <trigger>, the <system> shall <response>. |
| State-driven | While <state>, the <system> shall <response>. |
| Unwanted behavior | If <undesired condition>, then the <system> shall <response>. |
| Optional feature | Where <feature is included>, the <system> shall <response>. |
| Complex | While <state>, when <trigger>, the <system> shall <response>. |
shall and join the facets of that outcome with "and": "shall print the command list and exit with status 0". A repeated shall is a style error; fix it by removing the word, not by splitting. Split only when facets have different triggers or targets, or would plausibly be built or verified separately.shall only; never should, may, will, must, can. No escape clauses (where possible, as needed).when for a discrete event, while for a persisting condition, if/then for what should not happen but might.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub renatodvc/rstack --plugin rstack11 skills in this plugin
/broRestate the last message in plain human language, with no jargon./explainExplain the assistant's previous message, or specific parts of it passed as arguments separated by |. Use when the user invokes /explain or explicitly asks for an explanation of the previous reply./fix-findingsFix the findings from an independent-review report. Follow-on to the independent-review skill, but never run it automatically after a review: the user reads the report first and decides. Only run when the user explicitly invokes /address-findings or explicitly asks to address the review findings.Other plugins' skills for the same job