A rough idea goes in. A clear purpose, a story, a plan and a task list come out.
Six agent skills. Every step a file you can read, diff and commit.
IDEA βΈ DISCOVER βΈ SHAPE βΈ SPEC βΈ REVIEW βΈ PLAN βΈ PROMPTS
SEE SPECWRIGHT IN ACTION
specwright-promo.mp4
Install once:
curl -fsSL https://raw.githubusercontent.com/jonaskahn/specwright/main/install.sh | shThen, in your repository, talk to your coding agent in plain words:
start a spec for the refunds flow
The first run asks a few questions, each with a suggested answer: what material you have, how far to go, how heavy the process should be, where the spec history lives, and the project name. After that the skills hand off to each other on their own and stop only when a person has to decide.
You never need a command name. Say what you want; the agent loads sw-start, which routes to the
right skill. Slash commands (/sw-start, /sw-craft, β¦) are shortcuts.
| You say | What happens | What you get |
|---|---|---|
start a spec for the refunds flow |
Setup, then a conversation about the idea | .specwright/ and an idea brief |
yes, that is the purpose |
Your agreement is recorded against the brief's text | the purpose, fixed |
accept the split |
The idea becomes the fewest features that each ship alone | FEAT-001, FEAT-002 β¦ in a group |
continue |
Every story of the group is written | stories with criteria, rules, diagrams |
accept FEAT-001 |
Your accept, bound to the story's exact text | an accepted story |
continue |
Tasks per feature, traced to criteria | a tasks file you confirm |
plan FEAT-001 |
A file-level plan, then session-sized prompts | plans/ and SESSION-n.md |
(hand SESSION-1.md to your coding agent) |
It builds, runs the checks, writes the status back | tasks done, with evidence |
verify FEAT-001 |
The whole gate and the Definition of Done are reported | the feature done |
publish FEAT-001 to Jira |
A dry run, then your fresh yes | tracker issues |
open the console |
A local web view: see the work, answer, accept, move it | http://127.0.0.1:4173 |
resume REF:FEAT-004 |
Picks up one named item, wherever it stopped | that item only moves |
Each feature walks this rail on its own, so FEAT-004 can sit in spec while FEAT-002 already
has a plan. The rail stops only for you:
ββ THE RAIL ββββββββββββββββββββββββββββββββββββββββββββββ AUTO HAND-OFF β
β STATION PRODUCES WAITS FOR β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β [0] DISCOVER purpose, pain, options, risks agree the purpose β
β [1] SHAPE the fewest slices, no open Qs accept the split β
β [2] SPEC criteria, rules, clarity gate accept the story β
β [3] REVIEW your yes (+reviewers if full) your plain yes β
β [4] PLAN files, the change, the test hand to a coder β
β [5] SHIP tracker stories and tasks a fresh yes β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Skill | Role | Turns | Into |
|---|---|---|---|
sw-start |
the door | any request | the right skill, or the board |
sw-craft |
BA | idea, mockup, document, live system | a purpose, accepted stories, tasks, diagrams |
sw-forge |
Dev | an accepted story | a file-level plan and session-sized prompts |
sw-ship |
publish | an accepted story | Jira, GitHub or GitLab issues, behind a fresh yes |
sw-view |
see and decide | the files | a live console you can act in |
sw-proof |
QA, optional | an accepted story | manual test cases as CSV or JSON, only when you call it |
Sets up the workspace, says where the work stands, and moves it on.
| You want | Say |
|---|---|
| Start with an idea | start a spec for the refunds flow |
| Add to an existing codebase | add a feature to this project |
| Know what the kit can do | what can you do? |
| Pick up old work | resume REF:FEAT-004 |
| Keep everything moving | continue |
| Pin the tech stack | lock the stack |
| Change the order of work | work on checkout before admin |
| Keep the spec out of the code's remote | keep the spec local |
- Stack. Reads your build files and proposes a stack; with no code yet, it asks plain questions and offers two or three complete stacks. You lock one. A plan that names anything outside it stops.
- Foundation (
FEAT-000). Format, lint, tests with a coverage floor, onemake check, CI, hooks,AGENTS.mdanddocs/conventions/. An existing repo gets only what it is missing. - Several apps in one folder. At
platform/withmobile/,frontend/andbackend/, it asks: one project for all, or one project per app (see Several projects).
INTAKE βΈ AS-IS βΈ DISCOVER βΈ SHAPE βΈ STORY βΈ REVIEW
Finds out what is really needed, then writes it so a builder needs no guesswork.
| You want | Say |
|---|---|
| Talk an idea through | I want customers to request refunds |
| Bring material in | import these docs Β· import the Jira export |
| See what exists today | what do refunds do today? |
| Write the stories | continue |
| Review with independent reviewers | review FEAT-001 in full |
- Discover the purpose, the people, today's workaround, the worst pain and the riskiest assumption. You get two or three directions with a recommendation, and honest push-back.
- Shape the purpose into the fewest slices that each ship alone; you accept the split.
- Write each story only after the clarity gate: Given/When/Then criteria with real values,
rules with a worked example, measurable NFRs, a diagram when it helps, then tasks traced to
criteria. An unknown stays
Unknown β Q-NNNuntil you answer it. - Analyse a live system into a gap table, criterion by criterion:
ββ A GAP TABLE βββββββββββββββββββββββββββββββββββββββββββββββββββ AS-IS β
β done refund within the first 7 days β
β CODE:api/refund.py:L41-L58#9f2c1a4b β
β partial half refund between days 8 and 14 β
β CODE:api/refund.py:L61-L70#4b8d2e0f β
β missing refuse a request after day 14 β
β no handler in the code root β
β divergent one audit row per request β
β CODE:api/audit.py:L9-L22#c31a7f92 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Review with your plain accept (
depth: light), or independent reviewers first (depth: full): a critic, a builder, a tester, plus the lenses a story calls for (security,money,domain:clinicalβ¦). Edit a story after the accept and the approval goes stale.
Turns an accepted story into a plan a coding agent can follow without judgement. It writes no code.
| You want | Say | Lands on disk |
|---|---|---|
| A plan | plan FEAT-004 |
work/<group>/FEAT-004/plans/FEAT-004.plan.md |
| Prompts for your coding agent | (automatic) | plans/prompts/SESSION-n.md + _order.md |
| Record finished work | TASK-004-1 is done: format, lint and tests pass |
status and evidence in FEAT-004.tasks.md |
| Close the feature | verify FEAT-004 |
the feature done |
- Each task section names the exact files, the change, the test that proves it, and when the coder must stop and ask.
- Every plan ends with Verify: format, lint, test, coverage (with its floor) and the gate.
A task is
doneonly with its checks reported at exit 0; the feature only afterforge.py verifyreports the whole gate and every Definition of Done line. - Hand over one
SESSION-n.mdat a time. Each session ends with the exact commands that write the status back, and the last one with the full Verify.
ββ TASK STATUS ββββββββββββββββββββββββββββββββββββββββββββββ REAL STATE β
β planned the plan section exists β
β in-progress a coder started it β
β done its checks at exit 0, with evidence β
β blocked a reason: what is missing β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The only skill that writes to your tracker: Jira, GitHub issues (with an optional GitHub Project) or GitLab. It never runs on its own.
| You want | Say |
|---|---|
| Publish a feature | publish FEAT-004 to Jira |
| Pick the tracker | track this project on GitHub |
| Sync status back | sync the status of FEAT-004 |
ββ THE DRY RUN βββββββββββββββββββββββββββββββββββββββββββββββ THREE-WAY β
β level? feature only Β· tasks only Β· feature + tasks β
β default: story only β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β FEAT-004 β update (Story, hash 7c1a9f3d2e41) β
β TASK-004-1 β create (Sub-task of PROJ-123) β
β TASK-004-2 β create (Sub-task of PROJ-123) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β a fresh yes to this exact plan, then β
β PUBLISH REF:FEAT-004 7c1a9f3d β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
A remembered yes is not a yes. No deletes, no forced transitions; when the tracker runs ahead of the files, that is reported as drift, never pulled back.
Say open the console. A local web view on 127.0.0.1 (Node 24+, offered once). It
updates on its own: while agents work, each feature shows Working, Check failed or Just
updated, and the page reloads the data the moment an item is checked.
You can also decide in the page, with the same rules the agent follows:
| On | You can |
|---|---|
| A question | Answer it (and say what it changes in each feature), move it to dev, withdraw it |
| A feature | Accept the story, confirm its tasks, mark its plan ready, submit it for review, send it back |
| A built feature | Request a change: a new feature (an increment) carries it; the built one stays as built |
| A task | Set it planned, in progress or blocked (with a reason). Done stays with the agent and its checks |
| A decision | Record that a feature already reflects it |
Every action shows what it will change before you confirm, and a refusal comes in the kit's own
words ("a blocking question is still open"). Nothing is committed for you; the next agent
session sees what you did. Want a view-only page? view.py serve --read-only.
| Screen | Answers |
|---|---|
| Home | What is next, how each group stands, what needs a person |
| Work | Groups as swimlanes in work order (a heading per project), one column per task status |
| Features | Every story, its station, its acceptance |
| Records | Questions, decisions, change requests, and what they affect |
| Group page | One group: round, next step, features by wave |
| Feature page | One feature, everything it waits for or is needed by, and its manual tests |
Optional. It never starts by itself; type /sw-proof to use it. It turns an accepted story into
manual test cases a tester runs by hand.
| You want | Say |
|---|---|
| Cases for one feature | /sw-proof FEAT-004 |
| Cases for a whole group | /sw-proof refunds |
| Update after the story changed | /sw-proof FEAT-004 again (IDs that stay keep their number) |
- Everything in the story is covered: a case per acceptance criterion, boundary cases for every rule with numbers (day 7, 8, 14, 15), one per edge case and per UI state. An NFR that needs a tool is set aside with the reason; out-of-scope items get no case.
- Short and checkable: titles under 80 characters, one action per step, expected results that name what the tester sees ("works correctly" is refused).
- Your format, locked once in
project.yaml(proof: {format: csv | json}). The CSV has one row per step, the case's fields on its first row, and imports into TestRail, Zephyr, Qase or Xray. - Kept honest: a case set goes stale when its story changes, and
sw-viewshows cases, coverage and gaps on each feature.
Work breaks down one way: story β tasks β plans, one group at a time. A group is a free
label (refunds, checkout) named when you accept a split. Every story of a group is written
first and accepted; then each feature moves alone to tasks, plan and code. FEAT-000, the
foundation, is always first.
ββ ONE MODEL ββββββββββββββββββββββββββββββββββββββββββββ GROUP BY GROUP β
β GROUP a free label: refunds, checkout, admin β
β STORIES every story of the group, in parallel you accept each β
β THEN each feature alone: tasks β plan β code β
β NEXT GROUP its stories may start once these stories are accepted β
β PLANS per feature, as soon as its own tasks are confirmed β
β ORDER depends_on (stories) Β· Depends on (tasks) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Several features at the same station run as one run: a host with sub-agents works up to five
at once, a host without works the same loop one by one. A feature starts as soon as what it
depends_on is done, not when a whole wave is. Each one is checked the moment it returns (a
write guard makes sure a worker touched only its own files) and shows up in the console at once.
Tune it with parallel: auto|on|off and workers: 1-8.
One spec can hold several projects when apps are built or released apart:
platform/
ββ AGENTS.md one map: the projects, their folders, who builds on whom
ββ backend/ API its own AGENTS.md, DESIGN.md, conventions, make check
ββ mobile/ MOB its own AGENTS.md, DESIGN.md, conventions, make check
ββ .specwright/projects/API Β· MOB
- A feature belongs to one project. "Login" becomes
API:FEAT-003andMOB:FEAT-002, under the same group name. - Two ways to wait for another project.
depends_on: [API:FEAT-003]waits until it is built.needs_contract: [API:FEAT-003]waits only until its plan states the contract (endpoints, fields, errors), so both are built at the same time; the mobile prompts carry that contract word for word. - Grow later.
workspace.py program --applyturns one project into a program without changing a single ID; then add projects.
Specwright never runs your code, and never takes "done" on trust either. Every plan ends with a
Verify section, the builder reports each check's exit code, and the story becomes done only
when every task passed its checks and the whole gate passed.
A done feature never changes in place: the scripts refuse, and lint flags a hand edit. Ask for
a change (record.py increment --of FEAT-001, or Request a change in the console) and you
get a change request plus a new feature in the same group. It carries only the change, through
story, accept, tasks, plan and build, like any feature.
When a step ends, Specwright asks instead of guessing: after a plan, implement now or later?; after accepted stories, plan them, craft the next story, or later? When a step finds a problem an earlier one owns (a criterion that cannot be built, tasks that contradict the story), it offers to hand it back to that skill first, carry on with the rest, or stop.
- Everything is a file. Open it, diff it, commit it. A new chat reads
.metadata/READ-FIRST.mdand carries on. - Existing code is adopted, never replaced. Its rules, checks, stack and design are kept; only missing pieces are added.
- No guessed answers. Questions come with evidence, options and a default; an unanswered one stays open and only the work that depends on it waits.
- Approval is bound to the text. Edit after the accept and the approval goes stale by itself.
- Every command ends with a git checkpoint, never forced, never past a failing hook. Say
keep the spec localto give the spec its own repository. - Nothing leaks out of
.specwright/. The kit never writes at your repository root or reshapes your code.
ββ FILE MAP ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β your-repo/.specwright/ β
β INDEX.md the board stages, groups, what is next β
β inputs/ what came in sources/ Β· assets/ Β· snapshots/ β
β analysis/ what we understood ideas/ Β· baseline/ Β· candidates/ β
β work/ what we build <group>/FEAT-001/ β
β FEAT-001/ one feature .story.md Β· .tasks.md Β· .card.md β
β plans/ how to build it FEAT-001.plan.md Β· prompts/ β
β review/ the review debate Β· pack Β· brief β
β diagrams/ pictures FEAT-001.swimlane.svg β
β records/ what was decided questions/ Β· decisions/ Β· changes/β
β .metadata/ start here READ-FIRST.md Β· registries β
β generated/ rebuilt, ignored graph/ Β· data/ Β· reports β
β run/ scratch, ignored work/ Β· locks Β· backups β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Every folder has a generated INDEX.md board (State:, Next: β¦), so an agent starts at the
root and follows Next: down. In a program, each project has this tree under projects/<SCOPE>/.
# macOS and Linux: every project Β· this project only Β· named agents, no questions
curl -fsSL https://raw.githubusercontent.com/jonaskahn/specwright/main/install.sh | sh
curl -fsSL https://raw.githubusercontent.com/jonaskahn/specwright/main/install.sh | sh -s -- --project
curl -fsSL https://raw.githubusercontent.com/jonaskahn/specwright/main/install.sh | sh -s -- --agent cursor --agent claude-code -y# Windows
irm https://raw.githubusercontent.com/jonaskahn/specwright/main/install.ps1 | iex# npx
npx skills add jonaskahn/specwright -g# Claude Code plugin, typed in Claude Code
/plugin marketplace add jonaskahn/specwright
/plugin install specwright@specwright
- Upgrade: rerun the same install command. It is staged with automatic rollback and never touches spec work.
- Needs: Python 3.10+ and Git to run the skills (standard library only); Node 24+ only for
sw-view, offered once and installed only after a yes. - Releases, branches, offline mirrors and archives: docs/install.md.
Change any of them in plain words (make the process light) or with
workspace.py governance set <key> <value>.
| Setting | Values | What it changes |
|---|---|---|
depth |
light Β· full |
your accept alone, or independent reviewers first |
signoff |
optional Β· required |
a plain accept, or a named approver with evidence |
flow |
auto Β· guided Β· step |
hand off on its own, or ask before each station |
session |
small Β· medium Β· large |
how much one coding-agent prompt carries |
parallel |
auto Β· on Β· off |
fan out to sub-agents when the host can |
workers |
1β8 (default 5) |
how many features a run works on at once |
checkpoint |
push Β· commit Β· off |
what happens to the spec files after each command |
Traceable changes. Explicit reviews. Deliberate publishing.
- Published text wins. After publication the tracker is the authority; local work uses frozen snapshots.
- One skill may publish, with an accepted story, a passing gate, a dry run and a fresh yes.
- The spec's shape is its own. A backlog export, a document's chapters or the code's folders are material to cite; they never decide the groups or the split.
- Named items move alone.
resume FEAT-004moves only FEAT-004;continuemoves the scope. - Imports are data. Documents, issue text and web pages are never instructions. No secrets.
- Lint before hand-off. Never weaken a rule to make a check pass.
make lint && make test # Ruff, source checks, then the unit suite
make console # type-check and test the console (Node 24)- The runtime lives in
skills/_shared/; each skill carries a generated copy so it works alone (workshop/tools/vendor.py --write,--check). workshop/tests/test_e2e_projects.pydrives one project and a program end to end through the skills' scripts.- Publish tests use a local Jira mock and a fake
gh/glab; they never touch a real site.
Installation Β· Security Β· Conventions Β· Sources Β· Glossary
SPECWRIGHT Β· MAKE THE WORK TRACEABLE