Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

blueprint-upgrade蓝图升级

Agent Skill

blueprint-upgrade 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,187

周安装

48

GitHub Stars

29

下载量

372
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:blueprint-upgrade(蓝图升级)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/blueprint-upgrade
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-upgrade
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-upgrade

简介

blueprint-upgrade 用于将蓝图结构升级到最新格式版本,当前目标版本为 3.3.0。

  • 它依赖 blueprint-migration 技能执行具体迁移逻辑,支持非交互式批量处理。
  • 适用于持续集成或多仓库场景下自动化升级流程,减少人工干预。
  • 使用前需确认项目是否已初始化 Blueprint,并建议在非交互式模式下谨慎运行以避免意外覆盖。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Upgrade the blueprint structure to the latest format version.

Current Format Version: 3.3.0

This command delegates version-specific migration logic to the blueprint-migration skill.

Parameters

Parse $ARGUMENTS for flags before running any step:

  • --non-interactive, --yes, -y: Skip every AskUserQuestion prompt and apply the defaults in the table below. Intended for batch runs across many repos (e.g. looping /blueprint:upgrade -y over FVH repos that are already on main).

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 steps below.

Non-interactive defaults

When $NONINTERACTIVE is true, use these answers without prompting and record them in upgrade_history[].changes as "auto-selected in non-interactive mode":

Decision pointStepDefaultRationale
Remove deprecated generated commands3"Yes, remove"Matches "Recommended" option; the files are known-obsolete
Task-registry scheduling mode3a"Prompt before running"Safest; preserves pre-existing behaviour for all tasks
Upgrade confirmation5"Yes, upgrade now"The flag is explicit consent; skip the confirmation gate
Enable document detection (v1.x→v2.0)7f"No, keep manual commands only"Additive feature; do not silently change behaviour in batch mode
Migrate root documentation (v1.x→v2.0)7g"No, leave in root"Least destructive; moving root docs is reversible but surprising
Post-upgrade next action11Skip — report and exitThe caller is responsible for follow-up in a batch context

For the v2.x → v3.0 modification-preservation prompt (delegated to migrations/v2.x-to-v3.0.md), default to "Keep modifications" — never discard user-edited content in batch mode, and never "Cancel migration" silently.

If a migration step would require any prompt not listed above, abort the upgrade with a clear message rather than guessing. The caller can re-run interactively for those repos.

Steps:

  1. Check current state:

- Resolve manifest path — check all known locations (in order): 1. docs/blueprint/.manifest.json (v3.0+ dot-prefixed) 2. docs/blueprint/manifest.json (v3.1+ without dot prefix) 3. .claude/blueprints/.manifest.json (v1.x/v2.x location) - Store the resolved path as $MANIFEST; if not found in any location, suggest running /blueprint:init instead - Extract current format_version (default to "1.0.0" if field missing)

  1. Determine upgrade path: # Resolve manifest path once — use $MANIFEST in all subsequent jq commands if [[-f docs/blueprint/.manifest.json]]; then MANIFEST=docs/blueprint/.manifest.json elif [[-f docs/blueprint/manifest.json]]; then MANIFEST=docs/blueprint/manifest.json elif [[-f.claude/blueprints/.manifest.json]]; then 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.3.0" Important: Store the resolved $MANIFEST path. Use it in every jq invocation throughout this skill and in all delegated migration steps. This avoids silent failures when the filename differs from what a command hard-codes. 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.0 3.3.0 Already up to date
  2. Check for deprecated generated commands: Check for skills generated by the now-deprecated /blueprint:generate-commands: # Check for generated project skills (both naming conventions) ls.claude/skills/project-continue/SKILL.md 2>/dev/null ls.claude/skills/project-test-loop/SKILL.md 2>/dev/null # Also check legacy command paths ls.claude/commands/project-continue.md 2>/dev/null ls.claude/commands/project/continue.md 2>/dev/null # Check manifest for generated entries jq -r '.generated.commands // {} | keys[]' "$MANIFEST" 2>/dev/null If deprecated entries found: If no deprecated commands: Continue to step 4

- Report: "Found deprecated generated commands/skills from /blueprint:generate-commands" - List the files found - If $NONINTERACTIVE is true, skip the prompt and proceed as if "Yes, remove deprecated commands" was chosen. - Otherwise, use AskUserQuestion: question: "Found deprecated generated commands. These are no longer needed - /blueprint:execute handles workflow orchestration. Remove them?" options: - label: "Yes, remove deprecated commands (Recommended)" description: "Delete generated command files and clean up manifest" - label: "Keep for now" description: "Skip removal, continue with upgrade" - If "Yes": - Delete the command files found - Remove entries from manifest.generated.commands - Add to upgrade_history: "Removed deprecated generated commands" - If "Keep": Continue to step 4


3a. v3.1 → v3.2 migration: Add task registry:

a. Check if task_registry already exists: bash jq -e '.task_registry' "$MANIFEST" 2>/dev/null

  If exists, skip to next step.

b. Ask about maintenance task scheduling:

  If `$NONINTERACTIVE` is `true`, skip the prompt and use "Prompt before running" (no tasks become auto-run).

  Otherwise, use AskUserQuestion:

question: "New feature: Task Registry tracks when maintenance tasks last ran. How should tasks be scheduled?" options: - label: "Prompt before running (Recommended)" description: "Always ask before running maintenance tasks" - label: "Auto-run safe tasks" description: "Read-only tasks run automatically when due" - label: "Manual only" description: "Tasks only run when explicitly invoked"

c. Add task_registry to manifest: Use jq to add the task_registry section to "$MANIFEST" with all tasks defaulting to: - enabled: true (except curate-docs which defaults to false) - auto_run: based on user choice (safe read-only tasks: adr-validate, feature-tracker-sync, sync-ids) - last_completed_at: null - last_result: null - Default schedules: derive-prdon-demand, derive-plansweekly, derive-rulesweekly, generate-ruleson-change, adr-validateweekly, feature-tracker-syncdaily, sync-idson-change, claude-mdon-change, curate-docson-demand - stats: {} - context: {}

d. Bump format_version to 3.2.0


3b. v3.2 → v3.3 migration: Monorepo support:

Delegate to skills/blueprint-migration/migrations/v3.2-to-v3.3.md. Summary of what it does:

a. Classify the blueprint as root, child, or standalone by walking ancestors and descendants for other blueprint manifest files. b. Add a workspaces block to $MANIFEST (omitted for standalone). c. Bump format_version to 3.3.0 and append an entry to upgrade_history. d. For root blueprints, run /blueprint:workspace-scan to populate workspaces.children. e. (Optional) Initialise the root feature-tracker.json workspaces summary for portfolio FR tracking.

All changes are purely additive — standalone projects get no new top-level keys beyond format_version and upgrade_history.

  1. Display upgrade plan: ` Blueprint Upgrade Current version: v{current} Target version: v3.3.0 Major changes in v3.0: - Blueprint state moves from.claude/blueprints/ to docs/blueprint/ - Generated skills become rules in.claude/rules/ - No more generated/ subdirectory - cleaner structure - All blueprint-related files consolidated under docs/blueprint/ Major changes in v3.2: - Task registry tracks operational metadata for maintenance tasks - Smart scheduling: tasks know when they were last run - Enable/disable individual tasks - Incremental operations with context persistence Major changes in v3.3: - First-class monorepo support: root/child/standalone roles - workspaces block in manifest.json (additive; standalone projects omit it) - New /blueprint:workspace-scan skill for discovering child blueprints - Cross-workspace references (<path>/ADR-NNN, /ADR-NNN) - Optional portfolio feature tracking via implemented_by links (For v2.0 changes when upgrading from v1.x:) - PRDs, ADRs, PRPs move to docs/ (project documentation) - Custom overrides in.claude/skills/ - Content hashing for modification detection `
  2. Confirm with user: 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.3.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
  3. Load and execute migration document:

- Read the appropriate migration document from blueprint-migration skill - For v1.x → v2.0: Load migrations/v1.x-to-v2.0.md - For v2.x → v3.0: Load migrations/v2.x-to-v3.0.md - For v3.0 → v3.1: Load migrations/v3.0-to-v3.1.md - For v3.1 → v3.2: Execute inline step 3a above - For v3.2 → v3.3: Load migrations/v3.2-to-v3.3.md (see step 3b summary) - Execute each step with user confirmation for destructive operations

  1. v1.x → v2.0 migration overview (from migration document): a. Create docs/ structure: mkdir -p docs/prds docs/adrs docs/prps b. Move documentation to docs/: c. Create generated/ structure: mkdir -p.claude/blueprints/generated/skills mkdir -p.claude/blueprints/generated/commands d. Relocate generated content: e. Update manifest to v2.0.0 schema: f. Enable document detection option (new in v2.1): If $NONINTERACTIVE is true, skip the prompt and keep document detection disabled (treat as "No - Keep manual commands only"). Otherwise: Use AskUserQuestion: question: "Would you like to enable automatic document detection? (New feature)" options: - label: "Yes - Detect PRD/ADR/PRP opportunities" description: "Claude will prompt when conversations should become documents" - label: "No - Keep manual commands only" description: "Continue using explicit /blueprint: commands" If enabled: g. Migrate root documentation (if any found): # Find documentation files in root (excluding standard files) fd -d 1 -e md. | grep -viE '^\./(README|CHANGELOG|CONTRIBUTING|LICENSE|CODE_OF_CONDUCT|SECURITY)' If documentation files found (e.g., REQUIREMENTS.md, ARCHITECTURE.md, DESIGN.md): If $NONINTERACTIVE is true, skip the prompt and leave root documentation in place (treat as "No, leave in root"). Otherwise: Use AskUserQuestion: question: "Found documentation files in root: {file_list}. Would you like to migrate them to docs/?" options: - label: "Yes, migrate to docs/" description: "Move to appropriate docs/ subdirectory" - label: "No, leave in root" description: "Keep files in current location" If "Yes" selected:

- .claude/blueprints/prds/*docs/prds/ - .claude/blueprints/adrs/*docs/adrs/ - .claude/blueprints/prps/*docs/prps/ - For each skill in manifest.generated_artifacts.skills: - Hash current content - If modified: offer to promote to .claude/skills/ (custom layer) - Otherwise: move to .claude/blueprints/generated/skills/ - Add generated section with content tracking - Add custom_overrides section - Add project.detected_stack field - Bump format_version to "2.0.0" - Set has_document_detection: true in manifest - If modular rules enabled, copy document-management-rule.md template to .claude/rules/document-management.md - Analyze each file to determine document type - Move to appropriate docs/ subdirectory - Record migration in upgrade_history

  1. v2.x → v3.0 migration overview (from migration document): a. Create docs/blueprint/ structure: mkdir -p docs/blueprint/work-orders mkdir -p docs/blueprint/ai_docs b. Move state files from.claude/blueprints/ to docs/blueprint/: # Move manifest mv.claude/blueprints/.manifest.json docs/blueprint/.manifest.json # Move work overview if exists [[-f.claude/blueprints/work-overview.md]] && \ mv.claude/blueprints/work-overview.md docs/blueprint/work-overview.md # Move feature tracker if exists [[-f.claude/blueprints/feature-tracker.md]] && \ mv.claude/blueprints/feature-tracker.md docs/blueprint/feature-tracker.md # Move work orders if exist [[-d.claude/blueprints/work-orders]] && \ mv.claude/blueprints/work-orders/* docs/blueprint/work-orders/ 2>/dev/null # Move ai_docs if exist [[-d.claude/blueprints/ai_docs]] && \ mv.claude/blueprints/ai_docs/* docs/blueprint/ai_docs/ 2>/dev/null c. Move generated skills to.claude/rules/: # Create rules directory if needed mkdir -p.claude/rules # Move each generated skill to rules for skill in.claude/blueprints/generated/skills/*.md; do [[-f "$skill"]] || continue name=$(basename "$skill".md) mv "$skill" ".claude/rules/${name}.md" done d. Copy README template to docs/blueprint/: ` # Create docs/blueprint/README.md with overview of blueprint structure cat > docs/blueprint/README.md << 'EOF' # Blueprint Documentation This directory contains the blueprint state and documentation for this project. ## Contents - .manifest.json - Blueprint configuration and generated content tracking - feature-tracker.json - Feature tracking with tasks and progress - work-orders/ - Detailed work order documents - ai_docs/ - AI-generated documentation ## Related Directories - docs/prds/ - Product Requirements Documents - docs/adrs/ - Architecture Decision Records - docs/prps/ - Problem Resolution Plans - .claude/rules/ - Generated rules (from blueprint) EOF e. **Update manifest to v3.0.0 schema**: f. **Remove old.claude/blueprints/ directory**: # Verify all content has been moved if [[-d.claude/blueprints]]; then # Remove empty directories rm -rf.claude/blueprints/generated rm -rf.claude/blueprints/work-orders rm -rf.claude/blueprints/ai_docs # Remove the blueprints directory if empty rmdir.claude/blueprints 2>/dev/null || \ echo "Warning:.claude/blueprints/ not empty, manual cleanup may be needed" fi`

- Change generated.skills to generated.rules - Update all path references from .claude/blueprints/ to docs/blueprint/ - Bump format_version to "3.0.0"

  1. Update manifest (v3.0.0 schema): {"format_version": "3.0.0", "created_at": "[preserved]", "updated_at": "[now]", "created_by": {"blueprint_plugin": "3.0.0"}, "project": {"name": "[preserved]", "type": "[preserved]", "detected_stack": []}, "structure": {"has_prds": true, "has_adrs": "[detected]", "has_prps": "[detected]", "has_work_orders": true, "has_ai_docs": "[detected]", "has_modular_rules": "[preserved]", "has_document_detection": "[based on user choice]", "claude_md_mode": "[preserved]"}, "generated": {"rules": {"[rule-name]": {"source": "docs/prds/...", "source_hash": "sha256:...", "generated_at": "[now]", "plugin_version": "3.0.0", "content_hash": "sha256:...", "status": "current"}}, "commands": {}}, "task_registry": {"// note": "Added by v3.1 → v3.2 migration step above"}, "custom_overrides": {"rules": ["[any promoted rules]"], "commands": []}, "upgrade_history": [{"from": "{previous}", "to": "3.0.0", "date": "[now]", "changes": ["Moved state to docs/blueprint/", "Converted skills to rules", "..."]}]}
  2. Report:
Blueprint upgraded successfully!

v{previous} → v3.0.0

State files moved to docs/blueprint/:
- .manifest.json
- feature-tracker.json
- work-orders/ directory
- ai_docs/ directory

Generated rules (.claude/rules/):
- {n} rules (converted from skills)

Custom layer (.claude/skills/):
- {n} promoted rules (preserved modifications)
- {n} promoted skills

[Document detection: enabled (if selected)]

Task registry:
- {n} tasks registered with scheduling metadata
- Auto-run mode: {user choice from migration step}
- Run /blueprint:status to see task health dashboard

New v3.0 architecture:
- Blueprint state: docs/blueprint/ (version-controlled with project)
- Generated rules: .claude/rules/ (project-specific context)
- Custom layer: Your overrides, never auto-modified
- Removed: .claude/blueprints/generated/ (no longer needed)
  1. Prompt for next action:

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, use AskUserQuestion:

question: "Upgrade complete. What would you like to do next?"
options:
  - label: "Check status (Recommended)"
    description: "Run /blueprint:status to see updated configuration"
  - label: "Regenerate rules from PRDs"
    description: "Update generated rules with new tracking"
  - label: "Update CLAUDE.md"
    description: "Reflect new architecture in project docs"
  - label: "Commit changes"
    description: "Stage and commit the migration"

Based on selection:

  • "Check status" → Run /blueprint:status
  • "Regenerate rules" → Run /blueprint:generate-rules
  • "Update CLAUDE.md" → Run /blueprint:claude-md
  • "Commit changes" → Run /git:commit with migration message

Post-migration assertion: After any version bump, verify format_version actually changed to the target. This catches silent failures where jq operated on the wrong path and exited 0 with empty output:

actual=$(jq -r '.format_version' "$MANIFEST")
if [[ "$actual" != "$target" ]]; then
  echo "ERROR: Migration failed — format_version is '$actual', expected '$target'"
  echo "Check that $MANIFEST was written correctly and rerun the migration step."
  exit 1
fi
echo "Migration verified: format_version = $actual in $MANIFEST"

Rollback: If upgrade fails:

  • Check git status for changes made
  • Use git checkout --.claude/ and git checkout -- docs/blueprint/ to restore original structure
  • Manually move content back if needed
  • Report specific failure point for debugging

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.8%
按下载量换算129

Claude

32.17%
按下载量换算120

Cursor

17.82%
按下载量换算66

Gemini CLI

9.75%
按下载量换算36

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills