with one click
bootstrap
// Bootstrap a new project or upgrade an existing one to match the canonical CLAUDE.md template. Handles fresh scaffolding, version upgrades, and unversioned adoptions.
// Bootstrap a new project or upgrade an existing one to match the canonical CLAUDE.md template. Handles fresh scaffolding, version upgrades, and unversioned adoptions.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | bootstrap |
| description | Bootstrap a new project or upgrade an existing one to match the canonical CLAUDE.md template. Handles fresh scaffolding, version upgrades, and unversioned adoptions. |
| disable-model-invocation | true |
| argument-hint | [fresh | upgrade — optional, auto-detected if omitted] |
Mode: $ARGUMENTS
${CLAUDE_SKILL_DIR}/CLAUDE.template.md and ${CLAUDE_SKILL_DIR}/WORKFLOW.md — read both before any action.<!-- CONFLICT: ... --> and move on — do not resolve silently.judge: delegation).${CLAUDE_SKILL_DIR}/CLAUDE.template.md and ${CLAUDE_SKILL_DIR}/WORKFLOW.md.AGENTS.md and CLAUDE.md if they exist.CLAUDE.md exists. Scaffold from template.CLAUDE.md exists with <!-- Template Version: vNNNN -->. Apply items where version > current.CLAUDE.md exists without version tag. Follow v0031 rules: audit v0001–latest against project state, apply what's missing.CLAUDE.md, stripping the <!-- MIGRATION: ... --> setup block.[PROJECT_NAME], [Rule name], [Description]).ai-docs/ structure per the MIGRATION block in the template:
ai-docs/_index.md (with memory-policy comment, skeleton headings)ai-docs/_index.local.md (stub, add to .gitignore)ai-docs/tickets/ with status subdirectories: idea/, todo/, ready/, .done/, .dropped/ai-docs/mental-model/, ai-docs/ref/${CLAUDE_SKILL_DIR}/WORKFLOW.md to ai-docs/WORKFLOW.md.ai-docs/_index.local.md to .gitignore if not present.<!-- Template Version: vNNNN --> to latest version from template.ai-docs/spec/ absent → suggest /forge-spec to build the spec baseline.ai-docs/mental-model/ absent → suggest /forge-mental-model to build the mental-model baseline./forge-spec first, then /forge-mental-model.<!-- Template Version: vNNNN -->.[obsoleted by vNNNN], skip.<!-- Template Version: vNNNN --> in the canonical managed context (AGENTS.md after v0034, otherwise CLAUDE.md).CLAUDE.md as the @AGENTS.md shim.<!-- Template Version: vNNNN --> at the bottom of the canonical managed context (AGENTS.md if present, otherwise CLAUDE.md) set to latest.ai-docs/spec/ and ai-docs/mental-model/; suggest forge skills as needed (output-only).Delegate aggressively — only handle strategic judgment directly.
When syncing a template section (e.g., Response Discipline) with the project's version:
<!-- CONFLICT: ... -->.When a migration item's condition is ambiguous (e.g., "If tickets lack X" but no tickets exist):
Bootstrap optimizes for idempotent correctness: every run produces the same result regardless of how many times it executes, and project-specific content is never lost. When a rule is ambiguous, apply whichever interpretation more reliably preserves both idempotency and project content.