Getting started
Set up docket-ship in a project and write a first spec, decision and ticket.
This guide sets up docket-ship in a project and walks through a first spec, decision and ticket. With the plugin you rarely type these commands, because the skills run them. They are shown here so you can see what each step does.
1. Install
In Claude Code, run:
/plugin install docket-ship --marketplace tralk331/docket-ship
Answer y to add the marketplace, then pick a scope. User scope makes the
plugin available in every project. When Claude Code starts, the plugin
downloads the docket-ship binary of its own version from GitHub and checks
it against the SHA-256 sums it ships with.
Without Claude Code, download the binary for your platform from the latest release:
| Platform | File |
|---|---|
| Linux x64 | docket-ship-linux-x64 |
| Linux arm64 | docket-ship-linux-arm64 |
| macOS Apple silicon | docket-ship-macos-arm64 |
| macOS Intel | docket-ship-macos-x64 |
| Windows x64 | docket-ship-windows-x64.exe |
Rename it to docket-ship (docket-ship.exe on Windows) and put it on your
PATH. On macOS and Linux, make it executable with chmod +x docket-ship.
If you have Rust, cargo install docket-ship does the same.
Check that it runs:
$ docket-ship --version
docket-ship 0.5.0
2. Set up the project
From the root of your repo:
$ docket-ship init
created docket-ship.cfg
wrote docs/CONVENTIONS.md
wrote docs/INDEX.md
| File | What it is |
|---|---|
docket-ship.cfg |
Settings: where the docs are, and which folders hold code |
docs/CONVENTIONS.md |
The rules, for people and agents. Don't edit it; docket-ship init --update refreshes it |
docs/INDEX.md |
One line per doc. Generated, never edited by hand |
init also prints a short section for your CLAUDE.md or AGENTS.md. Add
it, so agents know where to start:
## Docs
Docs follow `docs/CONVENTIONS.md` (docket-ship): specs hold the current design,
decisions are frozen records, tickets hold all unfinished work. Start at
`docs/INDEX.md`. After changing docs, run `docket-ship check`.
Then tell the checker where your code is, so it can catch specs that name
files or functions that no longer exist. In docket-ship.cfg:
code: [src]
3. Write a spec
A spec describes one area of the system as it works now.
$ docket-ship new spec orders "Orders"
created docs/spec/orders.md (orders); index updated
Open docs/spec/orders.md, give it a one-line summary, and describe the
design below the header. Keep it to the current state: no "previously", no
"not built yet". History goes in decisions and unfinished work in tickets.
4. Record a decision
$ docket-ship new decision "Orders take no payment in v1" --affects orders
created docs/decisions/D-0001-orders-take-no-payment-in-v1.md (D-0001); index updated
Fill in its three sections: Context (what forces the choice), Decision (what
you do) and Consequences (what follows). Once the choice is made, set
status: accepted. The index shows each doc's status, so regenerate it
after editing a header by hand:
$ docket-ship index
wrote docs/INDEX.md
Now run the checker:
$ docket-ship check
docs/spec/orders.md:1: warning: D-0001 affects this spec but is not cited in it
docket-ship: 0 errors, 1 warning in 2 docs
The decision says it shapes the orders spec, but the spec doesn't mention it yet. Add the citation where the spec describes that choice:
Orders take no payment. [D-0001]
From now on, D-0001 doesn't change. If you change your mind, write a new
decision with --supersedes D-0001, then run
docket-ship supersede D-0001 D-0002. It lists every spec paragraph that
cites the old one, so you can update them in the same commit.
In Claude Code you can skip the commands and say "we decided orders take no
payment in v1". The /decide skill writes the decision and updates the spec.
5. Open a ticket
$ docket-ship new ticket "Build the order form" --specs orders --decisions D-0001
created docs/work/T-0001-build-the-order-form.md (T-0001); index updated
Under ## Done when, list what has to be true for the work to count as done,
as items someone could check. When it ships, set status: done and add one
line under ## Outcome saying what shipped.
6. Check and commit
$ docket-ship check
docket-ship: 0 errors, 0 warnings in 3 docs
check exits 1 when there are errors, and with --strict on warnings too.
If it says docs/INDEX.md is out of date, run docket-ship index. In Claude
Code the plugin's hook does that for you.
Commit the docs with the code they describe. The decision, the spec it changed and the code that follows from it go in one commit.
Next
- Already have docs, ADRs or a long README? Move them over.
- Working with others? Assignees, priorities and labels.
- Fail the build when docs break: checking docs in CI.
- See every project in one place: hosting the dashboard.