/cartonaut:setupfrom cartonaut
Use 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.
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.
Read when SKILL.md points to them.
Check that cartonaut can work in this project, and propose the project instruction text it needs. Change nothing without the user's agreement.
The skills available in this session must include all of these from Superpowers, matched by name with any plugin: prefix removed: brainstorming, writing-plans, subagent-driven-development, executing-plans, using-git-worktrees, requesting-code-review.
If any is missing, stop. List each missing skill with its install command, and do nothing else: do not read or propose instruction-file changes, and do not edit any file.
claude plugin install superpowers@claude-plugins-officialThe review skill is not a prerequisite, but check now, in the same scan, whether ce-code-review is available, and remember the result and the exact name it has in the session's skill list (for example ce-code-review:ce-code-review). Its absence is never a reason to stop. Section 3 asks which review skill to use.
Read the project's instruction files: CLAUDE.md, AGENTS.md, and any file they import with @.
Claude Code does not always load AGENTS.md. Count AGENTS.md as loaded only when there is no CLAUDE.md, or when CLAUDE.md (or a file it imports with @) contains @AGENTS.md.
If a ## cartonaut section exists in a loaded file, report that it is present and which review skill it names (the skill in its final-review step). Then say whether that skill is available in this session; for ce-code-review, use the section 1 check. When it is not available, say so, give the install command for ce-code-review from section 3 (claude plugin install ce-code-review@cartonaut, with the marketplace handling described there), and say that until it is installed the final review falls back to requesting-code-review. When the section still holds the unfilled <review-skill> or names no skill, say that too, and that the final review then falls back to requesting-code-review. This is information, not a missing prerequisite: do not stop. Propose no rewrite of the section and do not offer to change which skill it names; skip section 3. If the section exists only in an AGENTS.md that is not loaded, report that it is not loaded, say which review skill it names (and whether it is available, as above), and propose adding @AGENTS.md to CLAUDE.md. Write it only after the user agrees. Skip section 3 in this case too.
Otherwise go on to section 3.
The final review of a finished branch runs a review skill that the human chooses. Ask for the choice before showing any text.
List the review skills available in this session, judged by name and description, always including requesting-code-review (Superpowers). Use the result of the section 1 check for ce-code-review instead of judging again. When it was found, list it first, mark it as recommended, and give the exact name found in the session. When it was not found, do not put it among the choices at all; the choices are only skills that can be used now. Instead, below the choices, say that it is recommended but not installed, give its install command, and say the user can install it and rerun setup, or pick another skill now:
claude plugin install ce-code-review@cartonaut. It comes from the cartonaut marketplace. Run claude plugin marketplace list (it changes nothing) to see whether cartonaut is listed and where it was added from. If it is not listed, put claude plugin marketplace add <source> first, where <source> is the git URL or local path of the cartonaut repository; if you cannot tell the source, say so and ask the user for it. Never invent a URL.Tell the user what a good review skill does, and accept whatever they pick:
Always ask, even when ce-code-review is the only candidate besides requesting-code-review. Do not pick for the user, and do not read a choice into silence.
When the user has chosen, fill the placeholder <review-skill> in the text of references/delegation.md with the chosen skill's name, without any plugin: prefix (for example ce-code-review, requesting-code-review). Never write the text with the placeholder left in. Show the full filled-in text and propose where to add it:
AGENTS.md exists and is loaded: add it to AGENTS.md.AGENTS.md exists but is not loaded: add it to AGENTS.md, and add @AGENTS.md to CLAUDE.md so that Claude Code loads it.AGENTS.md: add it to CLAUDE.md.Write it only after the user agrees.
If the instructions do not say where the spec and the decision record go, ask the user. Offer these candidates: in a single repository, its docs/; in a worktree set, the upstream repository named in the workspace instructions' repository list and dependencies. Propose adding one line for each location to the same instruction file, so later sessions do not ask again. Write the lines only after the user agrees.
Say what was checked (prerequisites, review skill, delegation text, locations), which review skill was chosen or is named in the existing section, and what changed, including "nothing" when that is the case.
What SKILL.md sets; muted values are Claude Code's defaults
5 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
npx claudepluginhub yatsu/cartonaut --plugin cartonaut