/blueprint-plugin:blueprint-upgrade [--non-interactive|-y]from blueprint-plugin
Upgrades blueprint structure to the latest format version. Handles migration between format versions, monorepo workspace setup, and batch upgrades across repos.
Ships in blueprint-plugin. 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.
Upgrade the blueprint structure to the latest format version.
| Use this skill when... | Use blueprint-init instead when... |
|---|---|
| The project has a manifest at v1.x, v2.x, v3.0, v3.1, or v3.2 | The project has no docs/blueprint/manifest.json at all |
| You want the user-facing upgrade entry point with prompts | Use blueprint-migration instead when implementing version-specific logic |
| You're adding the v3.2 task registry or v3.3 monorepo workspaces | Use blueprint-execute instead when you want auto-detection of next step |
You're running batch upgrades across repos with --non-interactive/-y | Use blueprint-status instead to first audit current version |
Current Format Version: 3.5.0
This command delegates version-specific migration logic to the blueprint-migration skill.
Parse $ARGUMENTS for flags before running any step:
--non-interactive, --yes, -y: Skip every AskUserQuestion prompt and apply the defaults in references/non-interactive-defaults.md. Intended for batch runs across many repos.Set an internal $NONINTERACTIVE flag to true when any of those tokens appear in $ARGUMENTS; otherwise false. Reference this flag at every AskUserQuestion call site in the Execution steps.
When $NONINTERACTIVE is true, never discard user-edited content: the v2.x → v3.0 modification-preservation prompt defaults to "Keep modifications", never "Cancel migration". If a migration step would require a prompt that the defaults file does not list, abort the upgrade with a clear message rather than guessing. The caller can re-run interactively for those repos.
Execute this upgrade workflow. Step numbers are stable: the reference files and the non-interactive defaults cite them.
Run the snippet in Step 2. It resolves $MANIFEST (if no manifest exists, suggest /blueprint:init instead) and reads the current format_version, defaulting to "1.0.0" when the field is missing.
# Resolve manifest path once — use $MANIFEST in all subsequent jq commands.
# Same order as blueprint-plugin/scripts/get-validation-config.sh.
if [[ -f docs/blueprint/manifest.json ]]; then
MANIFEST=docs/blueprint/manifest.json # v3.0+ canonical (what /blueprint:init writes)
elif [[ -f docs/blueprint/.manifest.json ]]; then
MANIFEST=docs/blueprint/.manifest.json # v3.0 dot-prefixed variant from early migrations
elif [[ -f .claude/blueprints/.manifest.json ]]; then # v1.x/v2.x location
MANIFEST=.claude/blueprints/.manifest.json
else
echo "ERROR: no blueprint manifest found. Run /blueprint:init first."
exit 1
fi
current=$(jq -r '.format_version // "1.0.0"' "$MANIFEST")
target="3.5.0"
Important: Use the resolved $MANIFEST in every jq call here and in delegated migration steps — a hard-coded filename fails silently.
Version compatibility matrix:
| From Version | To Version | Migration Document |
|---|---|---|
| 1.0.x | 1.1.x | migrations/v1.0-to-v1.1.md |
| 1.x.x | 2.0.0 | migrations/v1.x-to-v2.0.md |
| 2.x.x | 3.0.0 | migrations/v2.x-to-v3.0.md |
| 3.0.x | 3.1.0 | migrations/v3.0-to-v3.1.md |
| 3.1.x | 3.2.0 | inline (Step 3a) |
| 3.2.x | 3.3.0 | migrations/v3.2-to-v3.3.md |
| 3.3.x | 3.4.0 | migrations/v3.3-to-v3.4.md |
| 3.4.x | 3.5.0 | migrations/v3.4-to-v3.5.md |
| 3.5.0 | 3.5.0 | Already up to date |
Detect skills/commands left by the deprecated /blueprint:generate-commands and offer to remove them (auto-"Yes" when $NONINTERACTIVE) per references/deprecated-commands.md. If none are found, continue to Step 4.
If task_registry is missing: ask the scheduling question ("Prompt before running" when $NONINTERACTIVE), add the registry, and bump format_version to 3.2.0 per references/v3.1-to-v3.2-task-registry.md.
Delegate to skills/blueprint-migration/migrations/v3.2-to-v3.3.md (summary: references/v3.2-to-v3.3-summary.md).
Delegate to skills/blueprint-migration/migrations/v3.3-to-v3.4.md (summary: references/v3.3-to-v3.4-summary.md). In $NONINTERACTIVE mode take the suggested autonomy_level, never higher.
generated.rules lacking .md; delete retired structure keys (any version, #2868, #3610)The same script also reports structure.has_ai_docs, which older templates wrote and the closed manifest schema rejects, as TYPE=retired_structure_key; applying it deletes the key. Dry-run only; nothing is written before Step 5:
bash "${CLAUDE_SKILL_DIR}/../../scripts/migrate-generated-rules-keys.sh" --manifest "$MANIFEST" --dry-run
List its ISSUES: in the Step 4 plan; Step 6 applies it.
Delegate to skills/blueprint-migration/migrations/v3.4-to-v3.5.md. It reconciles id_registry once with blueprint-autorun.sh --registry-reconcile (show the --check output in the Step 4 plan), re-copies .github/blueprint/blueprint-autorun.sh when autonomy level 3 is installed, and bumps format_version. Nothing to ask in $NONINTERACTIVE mode.
Print the upgrade plan in references/upgrade-plan.md.
If $NONINTERACTIVE is true, skip this confirmation and proceed directly to Step 6.
Otherwise, use AskUserQuestion:
question: "Ready to upgrade blueprint from v{current} to v3.5.0?"
options:
- "Yes, upgrade now" → proceed
- "Show detailed migration steps" → display migration document
- "Create backup first" → run git stash or backup then proceed
- "Cancel" → exit
blueprint-migration skillmigrations/v1.x-to-v2.0.md (overview: Step 7)migrations/v2.x-to-v3.0.md (overview: Step 8)migrations/v3.0-to-v3.1.mdmigrations/v3.2-to-v3.3.md (see Step 3b summary)migrations/v3.3-to-v3.4.md (see Step 3c summary)migrations/v3.4-to-v3.5.md (see Step 3e)--dry-run; report MIGRATED=, RETIRED_REMOVED= and ISSUES: in Step 10Sub-steps a–g, including the 7f/7g prompts and their $NONINTERACTIVE defaults, are in references/v1.x-to-v2.0-overview.md.
Sub-steps a–f are in references/v2.x-to-v3.0-overview.md.
Write the manifest using the v3.0.0 schema template in REFERENCE.md. Preserve created_at, project.name, project.type, structure.has_modular_rules, and structure.claude_md_mode from the previous manifest. Set updated_at to now, created_by.blueprint_plugin to the plugin version (jq -r .version "${CLAUDE_SKILL_DIR}/../../.claude-plugin/plugin.json", never the format version, issue #2950), and generated.rules from the migrated skills→rules conversion.
Print the upgrade report using the standard template in REFERENCE.md, substituting {previous} with the prior format_version and {n} placeholders with the actual counts.
If $NONINTERACTIVE is true, skip this prompt entirely — print the report from Step 10 and return. The batch caller owns follow-up (status checks, commits, etc.).
Otherwise, ask with the prompt in references/next-action-prompt.md, and act on the selection as that file maps it.
Post-migration assertion: after any version bump, run the format_version check in REFERENCE.md. Rollback: if the upgrade fails, follow REFERENCE.md.
REFERENCE.md (opens in a new tab)references/deprecated-commands.md (opens in a new tab)references/next-action-prompt.md (opens in a new tab)references/non-interactive-defaults.md (opens in a new tab)references/upgrade-plan.md (opens in a new tab)references/v1.x-to-v2.0-overview.md (opens in a new tab)references/v2.x-to-v3.0-overview.md (opens in a new tab)references/v3.1-to-v3.2-task-registry.md (opens in a new tab)references/v3.2-to-v3.3-summary.md (opens in a new tab)references/v3.3-to-v3.4-summary.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub laurigates/claude-plugins --plugin blueprint-plugin35 skills in this plugin
/adr-relationshipsDomain analysis, conflict detection, and relationship validation for Architecture Decision Records. Use when creating or validating ADRs to ensure consistency./blueprint-adr-listList ADRs as a markdown table with title, status, date, domain. Use when generating an ADR index, auditing ADR status, or reviewing all architecture decisions./blueprint-adr-validateValidate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links, cycles, or number collisions./blueprint-autonomy-level3Install blueprint autonomy level 3 (ADR-0020): scheduled-autorun + approved-work-order-execution GitHub workflows. Use when enabling out-of-band blueprint automation in a repo./blueprint-autopilotRun due blueprint maintenance ambiently at autonomy level 2+. Use when a drift nudge reports blueprint tasks due or suggests /blueprint:autopilot./blueprint-claude-mdCLAUDE.md and CLAUDE.local.md from blueprint artifacts. Use when editing CLAUDE.md team instructions, converting inline content to @imports, or setting up CLAUDE.local.md.Other plugins' skills for the same job