docket-ship
Contents

The Claude Code plugin

Four skills and a hook that checks docs after every edit, with the binary downloaded and verified for you.

The plugin gives Claude the docket-ship workflow. It adds four skills and a hook that runs the checker after every edit to a doc. You don't need to install anything else: it downloads the binary of its own version and checks it before use.

Install

/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; project scope only in the current one.

If a project has no docket-ship.cfg yet, the skills offer to run docket-ship init before doing anything else.

The skills

Claude picks a skill from what you say, so you rarely name one. You can also call them directly, as /decide, /ticket, /docs-audit and /docs-migrate.

Skill Claude uses it when What it does
/decide You make or change a design decision: "let's use Postgres", "we decided", "change of plan" Writes the decision, supersedes the old one if there is one, and updates every spec it affects in the same change, citing the new id
/ticket You ask to track work, say something is done or abandoned, or ask what is left Opens, starts, assigns, closes, drops or lists tickets. Before closing, it checks the "Done when" list against the code
/docs-audit You ask whether the docs are current, or before a release Reads each spec against the code and reports drift the checker can't see, such as a route that behaves differently from its spec. It changes no code
/docs-migrate You adopt docket-ship in a project that already has docs Sorts existing docs into specs, decisions and tickets, after you confirm the plan. See moving existing docs

The hook

After every successful Edit or Write on a markdown file under a docs/ folder, the hook runs docket-ship check --fix on the project. --fix regenerates docs/INDEX.md, so the index never falls behind.

When the check is clean, the hook adds nothing and Claude carries on. When it isn't, the report goes into the tool result, so Claude sees the problem in the same turn and fixes it:

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 binary

The plugin runs the docket-ship binary whose version matches its own, from the GitHub release of that version.

  • When Claude Code starts, the plugin checks its cache and, if the binary for your platform is missing, downloads it in the background.
  • It compares the download's SHA-256 with the sums committed in the plugin. A binary that doesn't match is never written to the cache, so it never runs.
  • The cache is docket-ship/<version>/ in your system's cache folder: ~/.cache (or XDG_CACHE_HOME) on Linux, ~/Library/Caches on macOS and %LOCALAPPDATA% on Windows.

Until the download finishes, or where GitHub can't be reached, the plugin uses a docket-ship on your PATH if its version matches. If neither is available, the skills say the binary isn't ready instead of editing docs by hand.

Updating

Update the plugin from Claude Code's plugin menu. The new version downloads its own binary on the next start.

Each project keeps a copy of the rules in docs/CONVENTIONS.md. When a new version changes them, docket-ship check warns that the copy differs. Run this in the project to refresh it:

docket-ship init --update

Edit this page on GitHub