docket-ship

Your repo is the tracker.

docket-ship keeps your specs, decisions and tickets as markdown files in the project's git repo, and checks that they agree with each other and with the code. Claude reads them before it writes code. Your team sees every project on one dashboard.

Get startedSee the dashboard

DecisionD-0014

Orders take no payment in v1

Context, Decision, Consequences

Status
accepted
Affects
orders
Specdocs/spec/orders.md

Orders

How a customer places an order and what happens next

PaymentOrders take no payment.[D-0014]
PlacingA customer orders from the cart.
ShippingOne parcel per order.
Type
spec
Status
active
Id
orders
TicketT-0031

Build order flow v1

Done when, Outcome

Specs
orders
Status
open
Check
$ docket-ship check
docket-ship: 0 errors, 0 warnings in 3 docs

The checker runs after every doc edit in Claude Code, and in CI.

Notes
  1. The spec cites the decision.
  2. The ticket names its spec.

The problem

On most projects it's hard to tell what is in progress and what is left. Decisions get made in a meeting or a chat thread and then lost, and later nobody can say why the code works the way it does.

The tracker is part of the problem. It keeps work in a database next to the code, the design lives somewhere else again, and over time they stop matching. docket-ship keeps all of it in the repo. A decision lands in the same commit as the code it caused, git log is the history, and a branch carries its own tickets.

Three kinds of doc

Docs go stale when one file has to hold the design, its history and the to-do list. docket-ship gives each of those its own kind of doc.

Spec
How the system works today. Edited in place, so it is always current.docs/spec/orders.md
Decision
One choice: the context, what was chosen, and what follows. Frozen once accepted. To change course, write a new one that supersedes it.D-0014
Ticket
Work that isn't done yet: features, bugs, missing tests, open questions. Closed with one line on what shipped.T-0031

They link by id. A spec cites the decision behind each choice, like Orders take no payment. [D-0014], and a ticket lists the specs it builds. docs/INDEX.md lists every doc in one line, so an agent reads the index and opens only what it needs.

How the doc model works

What check catches

docket-ship check reads every doc and prints one line per problem, with the file and line. It exits 1 on errors, so it can fail a build.

TicketT-0031

Build order flow v1

Status
open
Blocked by
T-0029
TicketT-0029

Not in this repo.

$ docket-ship check
docs/work/T-0031-build-order-flow-v1.md:1: error: 'blocked_by' lists T-0029, which is not a known ticket
docket-ship: 1 error, 0 warnings in 3 docs
  • A ticket blocked by a ticket that doesn't exist.
  • A spec that still cites a superseded decision.
  • An accepted decision that was edited instead of replaced.
  • A decision that shapes a spec the spec never cites.
  • A code comment that names D-0042 when there is no D-0042.
  • A spec that names a file or function the code no longer has.
  • A spec that talks about status or history ("not built yet", "previously").

Every rule check applies

Built for Claude Code

One command installs the plugin:

/plugin install docket-ship --marketplace tralk331/docket-ship

It adds four skills and a hook. The hook runs the checker after every doc edit and only speaks up when something is wrong, so Claude fixes it in the same turn.

You can also just say what happened. "We decided orders take no payment in v1" is enough for Claude to record it.

Using the plugin

/decide
Records a decision and updates every spec it affects in the same change.
/ticket
Opens, starts, assigns, closes and drops tickets. Before closing, it checks the "Done when" list against the code.
/docs-audit
Reads the specs against the code and reports what the checker can't see, such as a route that behaves differently from its spec.
/docs-migrate
Turns an existing docs folder, ADRs or a long README into specs, decisions and tickets.

The dashboard

A checkout shows one project. The dashboard reads all of your team's repos and answers four questions across them: what is open, what is in progress, what is blocked, and what was decided recently.

Leads and PMs see the state of every project without git or a terminal.

Read-only
It never writes to a repo, so it can't disagree with one.
Self-hosted
Run it on your own machine or server.
No accounts
Nothing to sign into, and no database of its own.

Open the demo dashboardHost your own

The demo shows your own repos. Sign in with GitHub and pick the ones to show. It only asks for read access.

The dashboard's overview: docket-ship's register with 2 open tickets, 1 in progress, 0 blocked, the check passing, and its latest decisions and changed tickets.
The overview of docket-ship's own docs, read from this repo.

Install

In Claude Code

/plugin install docket-ship --marketplace tralk331/docket-ship

The plugin downloads the binary it needs and checks it against published SHA-256 sums.

Anywhere else

One binary with no dependencies, for macOS, Linux and Windows. Download it from the latest release, or build it with cargo install docket-ship.

Then, in a project:

docket-ship init
docket-ship new decision "Use Postgres" --affects storage
docket-ship check

Read the getting started guide