/spec-speak-plugin:spec-speakfrom spec-speak-plugin
Convert any subject matter — rough feature ideas, brain-dumps, meeting notes, loose PRDs, existing docs — into a rigorous, testable spec written to industry requirements standards (EARS templates, RFC 2119 keywords, INCOSE/ISO 29148 rules, Gherkin acceptance criteria). Use this skill whenever the user wants to write, rewrite, tighten, or formalize a PRD, technical spec, requirements document, or acceptance criteria, or says things like "spec this out", "formalize this", "turn these notes into a spec", "write requirements for", "make this testable", "tighten this doc", or shares loose product thinking that needs to become an unambiguous document. Also use it to audit an existing spec for ambiguity, weak words, and untestable requirements.
Ships in spec-speak-plugin. 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.
Read when SKILL.md points to them.
Convert subject matter into a disciplined spec: narrative where the author is reasoning, machine-grade precision where the system is being defined. The rules below are distilled from EARS (Rolls-Royce), INCOSE Guide to Writing Requirements v4, ISO/IEC/IEEE 29148, RFC 2119/8174, ASD-STE100, and Shape Up — see references/standards-research.md for the full survey and rule pedigrees.
A spec is not one genre. Every passage belongs to one of two zones, and applying the wrong dialect to a zone damages the document:
Why this matters: requirements exist to be verified, so ambiguity there becomes defects downstream. But a problem statement exists to convey the author's reasoning, and false certainty there hides unmade decisions. Classify the zone first, then apply the right dialect.
Triage every gap in the source material into one of two kinds — they get different treatment:
[TBD]s is barely more useful than the vague original.When you can ask the author (interactive session with the AskUserQuestion tool): ask. Batch the highest-impact gaps into one AskUserQuestion call — up to 4 questions, each with 2–4 concrete options and a recommended default marked where you have a view. Put product decisions first; include an engineering parameter only when it materially shapes the design (e.g. sync vs async export). One round of questions for the big calls — don't interrogate the author with a question per blank. Answers go straight into the requirements as settled values; anything the author declines or defers becomes an Open Question.
When you can't ask (no AskUserQuestion tool, headless run, or the long tail of smaller gaps):
[ASSUMPTION — confirm]" — and collect all assumptions in a short list the author can sweep through. The requirement's shape is settled; only the number awaits confirmation.Either way, no unflagged guess ever lands in a normative statement.
Use this skeleton for a full spec. When the user asks for only a fragment (e.g. "rewrite these three requirements"), produce just that fragment under the same rules.
# <Title>
## Summary <!-- 3–5 sentences: what, for whom, why now -->
## Problem <!-- narrative prose; hedging welcome -->
## Appetite <!-- explicit time-box or effort budget -->
## Solution outline <!-- narrative; opinionated, not exhaustive -->
## Out of scope <!-- explicit no-gos; prevents scope ambiguity -->
## Open questions <!-- undecided product questions, with options -->
## Requirements <!-- normative zone starts here -->
## Acceptance criteria
## Rabbit holes & risks
## Glossary <!-- every term of art, one meaning each -->
Summary comes first because readers decide relevance in the first ten lines (progressive disclosure). "Out of scope" and "Appetite" are structural guards against the two commonest spec failures: unbounded scope and unbounded time.
Every requirement takes one of five shapes. Clause order is fixed: While <state>, When <trigger>, the <system> KEYWORD <response>.
| Pattern | Shape | Example |
|---|---|---|
| Ubiquitous | The <system> MUST <response> | The API MUST log every authentication decision. |
| Event-driven | When <trigger>, the <system> MUST <response> | When a request exceeds the rate limit, the API MUST return HTTP 429 with a Retry-After header. |
| State-driven | While <state>, the <system> MUST <response> | While the cache is cold, the service MUST serve reads from the primary database. |
| Unwanted behaviour | If <failure condition>, then the <system> MUST <response> | If the payment provider times out, then the checkout MUST queue the order and notify the user. |
| Optional feature | Where <feature is present>, the <system> MUST <response> | Where SSO is configured, the login page MUST hide the password form. |
Negative conditions are fine in the trigger clause ("If the token is invalid…"); the response clause must state positive, observable behaviour — "MUST reject with 401", not "MUST NOT allow access".
A requirement that needs more than ~3 preconditions, or that enumerates many combinations, is fighting the sentence form. Say so, and use a decision table or state diagram instead of forcing the template.
Adopt RFC 2119 wholesale: MUST / MUST NOT / SHOULD / SHOULD NOT / MAY. Exactly one capitalized keyword per requirement; capitalized means normative, lowercase "must/should" elsewhere is ordinary prose. Don't use "shall". This single convention makes requirements mechanically countable and frees the rest of the doc to read naturally. Watch for a second keyword creeping into the same statement — "MUST retain the file … and MAY delete it thereafter", or a semicolon chaining two MUSTs — that's two requirements wearing one ID; split them.
Flag (or rewrite away) these in normative zones — each is a verifiability hole:
These words are fine in exploratory prose — "the current flow is slow and the UX feels clunky" is a legitimate problem statement. The ban applies where statements must be verifiable.
Attach a Gherkin scenario to each requirement. Describe behaviour, not implementation — "Given an unauthenticated user", not "Given I am on /login".
REQ-003 — When a request exceeds the rate limit, the API MUST return
HTTP 429 with a Retry-After header.
Given a client that has exhausted its rate-limit quota
When the client sends any further request within the window
Then the response status is 429
And the Retry-After header states the seconds until the window resets
Writing the scenario is the verifiability test: if no observable Then-clause exists, the requirement is not yet a requirement.
Input (typical rough note):
Users keep getting logged out randomly which is annoying. We should keep them logged in longer, maybe with refresh tokens or something, but obviously log them out if they're inactive for ages or if something looks suspicious.
Output (fragment):
## Problem
Users report unexpected session expiry during active use. We believe the
fixed 30-minute session TTL is the cause, though we haven't confirmed the
distribution of expiry complaints against session age.
## Open questions
- OQ-1: What counts as "suspicious activity" that forces logout? (Options:
new device fingerprint, impossible-travel IP change, credential-stuffing
signals — needs a product decision.)
- OQ-2: What is the inactivity window? "Ages" needs a number.
## Requirements
- REQ-1: While a session is active, the auth service MUST extend the
session by issuing a refresh token on each authenticated request.
- REQ-2: When a session receives no authenticated request for 14 days
[OQ-2: confirm], the auth service MUST expire the session.
- Rationale: limits exposure of dormant sessions.
Note what happened: the hedge in the problem statement survived ("we believe… we haven't confirmed"), the vague words became numbers or open questions, and "something looks suspicious" was not silently turned into a requirement — it's an unmade decision. In an interactive session, OQ-1 and OQ-2 are exactly what an AskUserQuestion round should put to the author; here they land in Open questions.
Same rules, applied as review instead of rewrite: classify each passage's zone, then report findings grouped by severity — undecided product questions masquerading as requirements first, then unverifiable/plural/weak-worded requirements (cite the statement and the specific rule broken), then structural gaps (missing out-of-scope, missing glossary, mixed zones). Offer the rewritten form for each flagged requirement.
references/standards-research.md — the full standards survey: rule pedigrees (INCOSE R1–R42, ISO 29148 characteristics, STE sections), licensing constraints, conflict resolutions between standards, and the empirical case for why requirement defects are expensive. Read it when you need the authority behind a rule, when the user asks "why", or when tuning strictness (e.g. safety-critical work warrants the full INCOSE treatment; a solo side-project doesn't need R38-level formality).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub conorluddy/marketplace --plugin spec-speak-plugin