重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
blueprint-init by laurigates/claude-plugins
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-init在此项目中初始化 Blueprint 开发。
步骤:
* 查找 `docs/blueprint/manifest.json`
* 如果存在,读取版本并询问用户:
使用 AskUserQuestion:
问题:"Blueprint 已初始化 (v{version})。您希望做什么?"
选项:
- "检查更新" → 运行 /blueprint:upgrade
- "重新初始化 (将重置清单)" → 继续步骤 2
- "取消" → 退出
2. 询问关于功能跟踪 (使用 AskUserQuestion):
问题:"您希望启用功能跟踪吗?"
选项:
- 标签:"是 - 根据需求跟踪实现进度"
描述:"创建 feature-tracker.json 以跟踪来自需求文档的功能需求代码"
- 标签:"否 - 跳过功能跟踪"
描述:"稍后可通过 /blueprint:feature-tracker-sync 添加"
如果选择"是": a. 在项目中搜索包含需求、功能或用户故事的 Markdown 文件 b. 基于内容分析自动检测最可能的源文档 c. 使用检测到的源文档从模板创建 docs/blueprint/feature-tracker.json d. 在清单中设置 has_feature_tracker: true
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
询问关于文档迁移 (使用 AskUserQuestion):在项目中搜索现有的 Markdown 文档文件(排除标准文件如 README.md, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md, CODE_OF_CONDUCT.md, SECURITY.md)。
find . -name '*.md' -not -path '*/node_modules/*' -not -path '*/.git/*' | grep -viE '(README|CHANGELOG|CONTRIBUTING|LICENSE|CODE_OF_CONDUCT|SECURITY)\.md$'
如果找到文档文件 (例如,REQUIREMENTS.md, ARCHITECTURE.md, DESIGN.md, 位于非标准位置的文档):
使用 AskUserQuestion:
问题:"发现现有文档:{file_list}。是否将这些迁移到 Blueprint 管理的路径下?(强烈推荐)"
选项:
- 标签:"是,迁移文档(推荐)"
描述:"根据内容类型将文档移动到 docs/prds/, docs/adrs/, docs/prps/。防止文档过时和孤立。"
- 标签:"否,保持原位置"
描述:"警告:未迁移的文档可能会在 Blueprint 创建自己的文档时变得过时或重复"
如果选择"是": a. 分析每个文件以确定类型:
* 包含需求、功能、用户故事 → `docs/prds/`
* 包含架构决策、权衡 → `docs/adrs/`
* 包含实施计划 → `docs/prps/`
* 通用文档 → `docs/` b. 将文件移动到适当的 `docs/` 子目录 c. 如果需要,重命名为 kebab-case (REQUIREMENTS.md → requirements.md) d. 报告迁移结果:
已迁移文档:
- REQUIREMENTS.md → docs/prds/requirements.md
- ARCHITECTURE.md → docs/adrs/0001-initial-architecture.md
如果未找到文档文件: 静默跳过此步骤。
询问关于维护任务调度 (使用 AskUserQuestion):
问题:"Blueprint 维护任务应如何运行?" 选项:
存储选择以设置 task_registry 默认值:
* **提示** : 所有 `auto_run: false`,默认计划
* **自动运行安全** : 只读任务 (`adr-validate`, `feature-tracker-sync`, `sync-ids`) 获得 `auto_run: true`;写入任务获得 `false`
* **完全自动** : 所有任务获得 `auto_run: true`,默认计划
* **仅手动** : 所有 `auto_run: false`,所有计划设置为 `on-demand`
5. 询问关于决策检测 (使用 AskUserQuestion):
问题:"您希望启用自动决策检测吗?"
选项:
- 标签:"是 - 检测值得记录的决策"
描述:"Claude 会注意到对话中何时包含应作为 ADR/PRD/PRP 文档捕获的架构决策、功能需求或实施计划"
- 标签:"否 - 仅手动命令"
描述:"当您想要创建文档时,显式使用 /blueprint:derive-prd, /blueprint:derive-adr, /blueprint:prp-create"
根据响应在清单中设置 has_document_detection。
如果启用: 将 document-management-rule.md 模板复制到 .claude/rules/document-management.md。此规则指示 Claude 监视:
* 讨论中做出的架构决策 → 提示创建 ADR
* 正在讨论或细化的功能需求 → 提示创建/更新 PRD
* 正在制定的实施计划 → 提示创建 PRP
6. 创建目录结构:
Blueprint 结构 (位于 docs/blueprint/):
docs/
├── blueprint/
│ ├── manifest.json # 版本跟踪和配置
│ ├── feature-tracker.json # 进度跟踪(如果启用)
│ ├── work-orders/ # 子代理的任务包
│ │ ├── completed/
│ │ └── archived/
│ ├── ai_docs/ # 精选文档(按需)
│ │ ├── libraries/
│ │ └── project/
│ └── README.md # Blueprint 文档
├── prds/ # 产品需求文档
├── adrs/ # 架构决策记录
└── prps/ # 产品需求提示
Claude 配置 (位于 .claude/):
.claude/
├── rules/ # 模块化规则(包括生成的)
│ ├── development.md # 开发工作流规则
│ ├── testing.md # 测试要求
│ └── document-management.md # 文档组织规则(如果检测启用)
└── skills/ # 自定义技能覆盖(可选)
7. 创建 manifest.json (v3.2.0 模式):
{
"format_version": "3.2.0",
"created_at": "[ISO 时间戳]",
"updated_at": "[ISO 时间戳]",
"created_by": {
"blueprint_plugin": "3.2.0"
},
"project": {
"name": "[从 package.json/pyproject.toml 或目录名检测]",
"detected_stack": []
},
"structure": {
"has_prds": true,
"has_adrs": true,
"has_prps": true,
"has_work_orders": true,
"has_ai_docs": false,
"has_modular_rules": true,
"has_feature_tracker": "[基于用户选择]",
"has_document_detection": "[基于用户选择]",
"claude_md_mode": "both"
},
"feature_tracker": {
"file": "feature-tracker.json",
"source_document": "[自动检测]",
"sync_targets": ["TODO.md"]
},
"generated": {
"rules": {},
"commands": {}
},
"custom_overrides": {
"skills": [],
"commands": []
},
"task_registry": {
"derive-prd": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-demand",
"stats": {},
"context": {}
},
"derive-plans": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"derive-rules": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"generate-rules": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"adr-validate": {
"enabled": true,
"auto_run": "[基于维护任务选择:如果自动运行安全则为 true,否则为 false]",
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"feature-tracker-sync": {
"enabled": true,
"auto_run": "[基于维护任务选择:如果自动运行安全则为 true,否则为 false]",
"last_completed_at": null,
"last_result": null,
"schedule": "daily",
"stats": {},
"context": {}
},
"sync-ids": {
"enabled": true,
"auto_run": "[基于维护任务选择:如果自动运行安全则为 true,否则为 false]",
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"claude-md": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"curate-docs": {
"enabled": false,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-demand",
"stats": {},
"context": {}
}
}
}
注意:仅当启用功能跟踪时才包含 feature_tracker 部分。注意:从 v3.2.0 开始,进度跟踪已整合到 feature-tracker.json 中(移除了 work-overview.md)。
* `development.md`: TDD 工作流,提交约定
* `testing.md`: 测试要求,覆盖率期望
* `document-management.md`: 文档组织规则(如果启用决策检测)
9. 处理 .gitignore:
* 始终提交 `CLAUDE.md` 和 `.claude/rules/`(共享项目说明)
* 将 `docs/blueprint/work-orders/` 添加到 `.gitignore`(任务特定,可能包含敏感细节)
* 如果在 `.claude/` 中检测到密钥,警告用户并建议 `.gitignore` 条目
10. 报告 :
Blueprint 开发已初始化!(v3.2.0)
已创建 Blueprint 结构:
- docs/blueprint/manifest.json
- docs/blueprint/work-orders/
- docs/blueprint/ai_docs/
- docs/blueprint/README.md
[- docs/blueprint/feature-tracker.json (如果启用了功能跟踪)]
项目文档:
- docs/prds/ (产品需求文档)
- docs/adrs/ (架构决策记录)
- docs/prps/ (产品需求提示)
Claude 配置:
- .claude/rules/ (模块化规则,包括生成的)
- .claude/skills/ (自定义技能覆盖)
配置:
- 规则模式:both (CLAUDE.md + .claude/rules/)
[- 功能跟踪:已启用]
[- 决策检测:已启用 (Claude 将在讨论应成为 ADR/PRD/PRP 时提示)]
[- 任务调度:{提示|自动运行安全|完全自动|仅手动}]
[已迁移文档:]
[- {原始文件} → {目标路径} (对于每个迁移的文件)]
架构:
- 插件层:来自 blueprint-plugin 的通用命令(自动更新)
- 生成层:可从 docs/prds/ 重新生成的规则/命令
- 自定义层:您在 .claude/skills/ 中的覆盖
11. 提示下一步操作 (使用 AskUserQuestion):
问题:"Blueprint 已初始化。您接下来希望做什么?"
选项:
- 标签:"从 git 历史推导计划(推荐)"
描述:"分析提交历史、PR 和问题,从现有项目决策构建 PRD、ADR 和 PRP"
- 标签:"从代码库推导规则"
描述:"分析提交模式和代码约定以生成 .claude/rules/"
- 标签:"更新 CLAUDE.md"
描述:"生成或更新 CLAUDE.md,包含项目上下文和 blueprint 集成"
- 标签:"我现在完成了"
描述:"退出 - 您可以随时运行 /blueprint:status 查看选项"
根据选择:
* "从 git 历史推导计划" → 运行 `/blueprint:derive-plans`
* "从代码库推导规则" → 运行 `/blueprint:derive-rules`
* "更新 CLAUDE.md" → 运行 `/blueprint:claude-md`
* "我现在完成了" → 显示快速参考并退出
快速参考 (如果用户选择"我现在完成了"则显示):
管理命令:
- /blueprint:status - 检查版本和配置
- /blueprint:upgrade - 升级到最新格式版本
- /blueprint:derive-prd - 从现有文档推导 PRD
- /blueprint:derive-adr - 从代码库分析推导 ADR
- /blueprint:derive-plans - 从 git 历史推导文档
- /blueprint:derive-rules - 从 git 提交决策推导规则
- /blueprint:prp-create - 创建产品需求提示
- /blueprint:generate-rules - 从 PRD 生成规则
- /blueprint:sync - 检查过时的生成内容
- /blueprint:promote - 将生成的内容移动到自定义层
- /blueprint:rules - 管理模块化规则
- /blueprint:claude-md - 更新 CLAUDE.md
- /blueprint:feature-tracker-status - 查看功能完成统计
- /blueprint:feature-tracker-sync - 将跟踪器与项目文件同步
每周安装数
47
仓库
GitHub 星标
23
首次出现
2026年2月9日
安全审计
安装于
opencode47
gemini-cli47
github-copilot47
codex47
amp47
cline47
Initialize Blueprint Development in this project.
Steps :
Check if already initialized :
Look for docs/blueprint/manifest.json
If exists, read version and ask user:
Use AskUserQuestion:
question: "Blueprint already initialized (v{version}). What would you like to do?" options:
Ask about feature tracking (use AskUserQuestion):
question: "Would you like to enable feature tracking?" options:
If "Yes" selected: a. Search for markdown files in the project that contain requirements, features, or user stories b. Auto-detect the most likely source document based on content analysis c. Create docs/blueprint/feature-tracker.json from template using the detected source d. Set has_feature_tracker: true in manifest
Ask about document migration (use AskUserQuestion): Search for existing markdown documentation files across the project (excluding standard files like README.md, CHANGELOG.md, CONTRIBUTING.md, LICENSE.md, CODE_OF_CONDUCT.md, SECURITY.md).
find . -name '*.md' -not -path '*/node_modules/*' -not -path '*/.git/*' | grep -viE '(README|CHANGELOG|CONTRIBUTING|LICENSE|CODE_OF_CONDUCT|SECURITY)\.md$'
If documentation files found (e.g., REQUIREMENTS.md, ARCHITECTURE.md, DESIGN.md, docs in non-standard locations):
Use AskUserQuestion:
question: "Found existing documentation: {file_list}. Migrate these to Blueprint-managed paths? (Strongly recommended)"
options:
- label: "Yes, migrate documents (Recommended)"
description: "Move docs into docs/prds/, docs/adrs/, docs/prps/ based on content type. Prevents stale and orphaned documents."
- label: "No, leave them in place"
description: "Warning: unmigrated docs may become stale or duplicated as Blueprint creates its own documents"
If "Yes" selected: a. Analyze each file to determine type:
* Contains requirements, features, user stories → `docs/prds/`
* Contains architecture decisions, trade-offs → `docs/adrs/`
* Contains implementation plans → `docs/prps/`
* General documentation → `docs/` b. Move files to appropriate `docs/` subdirectory c. Rename to kebab-case if needed (REQUIREMENTS.md → requirements.md) d. Report migration results:
Migrated documentation:
- REQUIREMENTS.md → docs/prds/requirements.md
- ARCHITECTURE.md → docs/adrs/0001-initial-architecture.md
If no documentation files found: Skip this step silently.
Ask about maintenance task scheduling (use AskUserQuestion):
question: "How should blueprint maintenance tasks run?" options:
Store selection for task_registry defaults:
* **Prompt** : all `auto_run: false`, default schedules
* **Auto-run safe** : read-only tasks (`adr-validate`, `feature-tracker-sync`, `sync-ids`) get `auto_run: true`; write tasks get `false`
* **Fully automatic** : all tasks get `auto_run: true`, default schedules
* **Manual only** : all `auto_run: false`, all schedules set to `on-demand`
5. Ask about decision detection (use AskUserQuestion):
question: "Would you like to enable automatic decision detection?"
options:
- label: "Yes - Detect decisions worth documenting"
description: "Claude will notice when conversations contain architecture decisions, feature requirements, or implementation plans that should be captured as ADR/PRD/PRP documents"
- label: "No - Manual commands only"
description: "Use /blueprint:derive-prd, /blueprint:derive-adr, /blueprint:prp-create explicitly when you want to create documents"
Set has_document_detection in manifest based on response.
If enabled: Copy document-management-rule.md template to .claude/rules/document-management.md. This rule instructs Claude to watch for:
* Architecture decisions being made during discussion → prompt to create ADR
* Feature requirements being discussed or refined → prompt to create/update PRD
* Implementation plans being formulated → prompt to create PRP
6. Create directory structure :
Blueprint structure (in docs/blueprint/):
docs/
├── blueprint/
│ ├── manifest.json # Version tracking and configuration
│ ├── feature-tracker.json # Progress tracking (if enabled)
│ ├── work-orders/ # Task packages for subagents
│ │ ├── completed/
│ │ └── archived/
│ ├── ai_docs/ # Curated documentation (on-demand)
│ │ ├── libraries/
│ │ └── project/
│ └── README.md # Blueprint documentation
├── prds/ # Product Requirements Documents
├── adrs/ # Architecture Decision Records
└── prps/ # Product Requirement Prompts
Claude configuration (in .claude/):
.claude/
├── rules/ # Modular rules (including generated)
│ ├── development.md # Development workflow rules
│ ├── testing.md # Testing requirements
│ └── document-management.md # Document organization rules (if detection enabled)
└── skills/ # Custom skill overrides (optional)
7. Createmanifest.json (v3.2.0 schema):
{
"format_version": "3.2.0",
"created_at": "[ISO timestamp]",
"updated_at": "[ISO timestamp]",
"created_by": {
"blueprint_plugin": "3.2.0"
},
"project": {
"name": "[detected from package.json/pyproject.toml or directory name]",
"detected_stack": []
},
"structure": {
"has_prds": true,
"has_adrs": true,
"has_prps": true,
"has_work_orders": true,
"has_ai_docs": false,
"has_modular_rules": true,
"has_feature_tracker": "[based on user choice]",
"has_document_detection": "[based on user choice]",
"claude_md_mode": "both"
},
"feature_tracker": {
"file": "feature-tracker.json",
"source_document": "[auto-detected]",
"sync_targets": ["TODO.md"]
},
"generated": {
"rules": {},
"commands": {}
},
"custom_overrides": {
"skills": [],
"commands": []
},
"task_registry": {
"derive-prd": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-demand",
"stats": {},
"context": {}
},
"derive-plans": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"derive-rules": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"generate-rules": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"adr-validate": {
"enabled": true,
"auto_run": "[based on maintenance task choice: true if auto-run safe, false otherwise]",
"last_completed_at": null,
"last_result": null,
"schedule": "weekly",
"stats": {},
"context": {}
},
"feature-tracker-sync": {
"enabled": true,
"auto_run": "[based on maintenance task choice: true if auto-run safe, false otherwise]",
"last_completed_at": null,
"last_result": null,
"schedule": "daily",
"stats": {},
"context": {}
},
"sync-ids": {
"enabled": true,
"auto_run": "[based on maintenance task choice: true if auto-run safe, false otherwise]",
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"claude-md": {
"enabled": true,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-change",
"stats": {},
"context": {}
},
"curate-docs": {
"enabled": false,
"auto_run": false,
"last_completed_at": null,
"last_result": null,
"schedule": "on-demand",
"stats": {},
"context": {}
}
}
}
Note: Include feature_tracker section only if feature tracking is enabled. Note: As of v3.2.0, progress tracking is consolidated into feature-tracker.json (work-overview.md removed).
Create initial rules :
development.md: TDD workflow, commit conventionstesting.md: Test requirements, coverage expectationsdocument-management.md: Document organization rules (if decision detection enabled)Handle.gitignore:
CLAUDE.md and .claude/rules/ (shared project instructions)docs/blueprint/work-orders/ to .gitignore (task-specific, may contain sensitive details)Blueprint Development initialized! (v3.2.0)
Blueprint structure created:
- docs/blueprint/manifest.json
- docs/blueprint/work-orders/
- docs/blueprint/ai_docs/
- docs/blueprint/README.md
[- docs/blueprint/feature-tracker.json (if feature tracking enabled)]
Project documentation:
- docs/prds/ (Product Requirements Documents)
- docs/adrs/ (Architecture Decision Records)
- docs/prps/ (Product Requirement Prompts)
Claude configuration:
- .claude/rules/ (modular rules, including generated)
- .claude/skills/ (custom skill overrides)
Configuration:
- Rules mode: both (CLAUDE.md + .claude/rules/)
[- Feature tracking: enabled]
[- Decision detection: enabled (Claude will prompt when discussions should become ADR/PRD/PRP)]
[- Task scheduling: {prompt|auto-run safe|fully automatic|manual only}]
[Migrated documentation:]
[- {original} → {destination} (for each migrated file)]
Architecture:
- Plugin layer: Generic commands from blueprint-plugin (auto-updated)
- Generated layer: Rules/commands regeneratable from docs/prds/
- Custom layer: Your overrides in .claude/skills/
11. Prompt for next action (use AskUserQuestion):
question: "Blueprint initialized. What would you like to do next?"
options:
- label: "Derive plans from git history (Recommended)"
description: "Analyze commit history, PRs, and issues to build PRDs, ADRs, and PRPs from existing project decisions"
- label: "Derive rules from codebase"
description: "Analyze commit patterns and code conventions to generate .claude/rules/"
- label: "Update CLAUDE.md"
description: "Generate or update CLAUDE.md with project context and blueprint integration"
- label: "I'm done for now"
description: "Exit - you can run /blueprint:status anytime to see options"
Based on selection:
* "Derive plans from git history" → Run `/blueprint:derive-plans`
* "Derive rules from codebase" → Run `/blueprint:derive-rules`
* "Update CLAUDE.md" → Run `/blueprint:claude-md`
* "I'm done for now" → Show quick reference and exit
Quick Reference (show if user selects "I'm done for now"):
Management commands:
- /blueprint:status - Check version and configuration
- /blueprint:upgrade - Upgrade to latest format version
- /blueprint:derive-prd - Derive PRD from existing documentation
- /blueprint:derive-adr - Derive ADRs from codebase analysis
- /blueprint:derive-plans - Derive docs from git history
- /blueprint:derive-rules - Derive rules from git commit decisions
- /blueprint:prp-create - Create a Product Requirement Prompt
- /blueprint:generate-rules - Generate rules from PRDs
- /blueprint:sync - Check for stale generated content
- /blueprint:promote - Move generated content to custom layer
- /blueprint:rules - Manage modular rules
- /blueprint:claude-md - Update CLAUDE.md
- /blueprint:feature-tracker-status - View feature completion stats
- /blueprint:feature-tracker-sync - Sync tracker with project files
Weekly Installs
47
Repository
GitHub Stars
23
First Seen
Feb 9, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode47
gemini-cli47
github-copilot47
codex47
amp47
cline47
文档查找工具:实时获取库、框架和API最新文档,替代训练数据
1,300 周安装
AWS 无服务器与事件驱动架构指南:Lambda、Step Functions 最佳实践
180 周安装
GitHub代码安全审计工具 - 自动化查找缺陷、安全漏洞与代码质量问题
181 周安装
TDD工作流与红绿重构周期指南:测试驱动开发最佳实践与自动化配置
181 周安装
Idea Validator:创业想法评估框架 - 结构化验证工具,节省开发时间
179 周安装
高级项目管理专家技能:企业软件与SaaS战略项目组合管理、定量风险分析及高管报告
188 周安装
SwiftUI 布局 API 参考:ViewThatFits、AnyLayout、Layout协议等自适应界面开发指南
183 周安装
.claude/, warn user and suggest .gitignore entriesReport :