/cartonaut:specfrom cartonaut
Use when plan execution completes (all tasks done, wrapping up or finishing up, with or without a ledger or a plan, even when the work was done inline), after the last task and before the review guide and the final review, to create or update the human-facing specification so a person can grasp the design and implementation quickly. Also use when the code and the spec disagree.
Ships in cartonaut. 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.
None: SKILL.md is the whole skill.
Run this when all tasks are done or the user asks you to wrap up or finish up, even when the work was done inline, with or without a ledger or a plan, before the review guide and the final whole-branch review, and whenever you notice the spec and the code disagree. It keeps the specification, the document a person reads to grasp what was built and how it fits together, in step with the code. Run it even when the change is small: the check in step 3 may conclude that nothing needs writing.
Use the first of these that applies:
The project's instructions say where the specification lives: use that. Read the instruction files of the work location yourself (the set directory in a worktree set, else the repository root): CLAUDE.md, AGENTS.md, and any file they import with @. Do not rely on what you remember of them.
Otherwise, existing spec or decision documents: use them, matching their split and format.
Otherwise, ask the user where to keep it, and do not write anything until they answer. Offer candidates:
docs/.Create one file each. Never put the spec at the workspace root. cartonaut never picks a default location by itself.
When the change alters nothing a reader of the overview needs (a comment fix, a rename inside one module, a refactor with no visible effect), say so in your reply, write nothing, and leave the spec file byte-for-byte as it is. Do not commit.
Update the spec in place, matching its existing structure. When there is none, write one. It covers:
Keep it short enough to read in a few minutes. Describe behavior in prose; do not paste code.
Selection rule: keep an item only if, without it, a future reader working from the current code and documents could not recover it and would be stuck. The code shows what was done, but not why or what was rejected, and not how the parts fit together at a glance. Leave out what the code shows plainly: signatures, option lists, constants, and the body of any function. A short account of what the program does and how its parts relate stays in, because a reader should not have to reverse-engineer it from the code.
The code wins. Correct the spec to say what the code does, whatever else the change touched. Do not change the code to match the spec. If you suspect the code is the mistake, tell the user instead of editing either.
Commit in the repository that holds the spec, with the message docs: update spec.
When you were invoked because all tasks are complete and review-guide has not run yet in this session, whether or not the spec changed, continue by invoking review-guide next. The review guide is not optional there and is not replaced by mentioning review points in a final summary. When the user asked for a spec update on its own, do not hand off: end after the commit or the "nothing to write" reply.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yatsu/cartonaut --plugin cartonaut5 skills in this plugin
/design-decisionsUse during plan execution each time a task's review passes, and once more when execution completes (all tasks done, wrapping up or finishing up, with or without a ledger, even when the user said earlier in the work not to write records yet) before the plan's workspace is deleted, to move the decisions made so far (rulings in the ledger or in the conversation) into the project's design-decision record. The finish call is unconditional, because this skill decides whether anything needs recording, so call it even when you think there is nothing to add./planUse right before brainstorming writes its design doc (the PLAN), to secure the work location and decide where the PLAN is saved, what it is named, and which sections it must have. Does not write the PLAN itself./Other plugins' skills for the same job