/cartonaut:design-decisionsfrom cartonaut
Use 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.
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 each time a task's review passes and its completion is in the ledger, and once more when all tasks are done or the user asks you to wrap up, before the plan's workspace is deleted. When there is no ledger, still run it: the decisions are in the conversation. An earlier request to hold off on writing decision records, or other documentation, while implementing was about the implementation; wrapping up is the later moment it deferred to, so run it then. The finish call is unconditional: the caller does not judge whether there is anything to record, this skill does, so it runs even after a clean final review with no new rulings. It moves decisions out of the workspace, which is temporary, into the project's design-decision record, which is permanent.
Ruling: line in the ledger of the plan workspace the executing skill is using.Read the record (step 4 finds it) and drop each candidate it already covers. Compare meaning, not wording.
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, not why, what it costs, or what was rejected. A ruling's reason and the alternative it ruled out are not recoverable from the code, so a ruling that carries them is kept even when the code plainly implements it. Only an item whose whole content the code or documents already state is dropped.
Drop process-only rulings, such as commit trailers and review bookkeeping. Say which candidates you dropped and why, one line each.
When no candidates are left, because there were none or every one was dropped, write nothing and commit nothing: say "nothing to add to the record" with one line on why, skip steps 4 and 5 (step 6 still applies), and go to step 7, which still decides whether to hand off. Never create an empty commit or a duplicate entry.
Use the first of these that applies:
The project's instructions say where design decisions are recorded: 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 (for example an ADR directory): use them, matching their split and format.
Otherwise, ask the user where to keep the record, and do not write anything until they answer. Offer candidates:
docs/.Create one file each. Never put the record at the workspace root. cartonaut never picks a default location by itself.
When step 4 settled the location by (1) or (2), write the record now; do not stop to ask for confirmation. This holds for decisions that come only from the conversation, too.
Write in the record's existing format. If the record is a directory of numbered documents (an ADR directory, say), add one new file per decision with the next number; do not edit the earlier ones. Keep flag names, argument positions, and values exactly as the ledger or conversation states them. When the record has no format yet, use this entry, one per decision:
## <title>
Decision: <what was decided>
Reason: <why>
Rejected: <the alternatives, and why not>
Commit it in the repository that holds the record, with the message docs: record design decisions.
Never delete the workspace or the ledger. Deleting it is the executing skill's job, after this skill has run.
When you were invoked at finish, after the final review, do not hand off, whether or not you wrote anything and even if spec has not run in this session (a resumed session may not have run it). When you were invoked after a single task, do not hand off. Otherwise, when you were invoked because all tasks are complete and spec has not run yet in this session, continue by invoking spec next.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yatsu/cartonaut --plugin cartonaut5 skills in this plugin
/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./review-guideUse when plan execution completes, after cartonaut:spec and before the final code review (or before reporting the work done when there is none), to tell the human which parts of the change they should read themselves and why./setupUse the first time cartonaut is used in a project, or when the project's CLAUDE.md or AGENTS.md has no "## cartonaut" section, or when the user asks to set up or check cartonaut. Checks that the required Superpowers skills are installed, asks which skill runs the final review, and proposes the instruction-file text cartonaut needs.Other plugins' skills for the same job