blueprint-init
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-init
Agent 安装分布
Skill 文档
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: - "Check for upgrades" â run /blueprint:upgrade - "Reinitialize (will reset manifest)" â continue with step 2 - "Cancel" â exit
- Look for
-
Ask about modular rules:
question: "How would you like to organize project instructions?" options: - "Single CLAUDE.md file" â traditional approach - "Modular rules (.claude/rules/)" â create rules directory structure - "Both" â CLAUDE.md for overview, rules/ for specifics allowMultiSelect: false -
Ask about feature tracking (use AskUserQuestion):
question: "Would you like to enable feature tracking?" options: - label: "Yes - Track implementation against requirements" description: "Creates feature-tracker.json to track FR codes from a requirements document" - label: "No - Skip feature tracking" description: "Can be added later with /blueprint-feature-tracker-sync"If “Yes” selected: a. Ask for source document:
question: "Which document contains your feature requirements?" options: - label: "REQUIREMENTS.md" description: "Standard requirements document (most common)" - label: "README.md" description: "Use README as requirements source" - label: "Other" description: "Specify a different document"b. Create
docs/blueprint/feature-tracker.jsonfrom template c. Sethas_feature_tracker: truein manifest -
Ask about document detection (use AskUserQuestion):
question: "Would you like to enable automatic document detection?" options: - label: "Yes - Detect PRD/ADR/PRP opportunities" description: "Claude will prompt when conversations should become documents" - label: "No - Manual commands only" description: "Use /blueprint:derive-prd, /blueprint:derive-adr, /blueprint:prp-create explicitly"Set
has_document_detectionin manifest based on response.If modular rules enabled and document detection enabled: Copy
document-management-rule.mdtemplate to.claude/rules/document-management.md -
Check for root documentation to migrate:
# Find markdown files in root that look like documentation (not standard files) fd -d 1 -e md . | grep -viE '^\./(README|CHANGELOG|CONTRIBUTING|LICENSE|CODE_OF_CONDUCT|SECURITY)'If documentation files found in root (e.g., REQUIREMENTS.md, ARCHITECTURE.md, DESIGN.md):
Use AskUserQuestion: question: "Found documentation files in root directory: {file_list}. Would you like to organize them?" options: - label: "Yes, move to docs/" description: "Migrate existing docs to proper structure (recommended)" - label: "No, leave them" description: "Keep files in current location"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 appropriatedocs/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 - Contains requirements, features, user stories â
-
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 PromptsClaude 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) -
Create
manifest.json(v3.1.0 schema):{ "format_version": "3.1.0", "created_at": "[ISO timestamp]", "updated_at": "[ISO timestamp]", "created_by": { "blueprint_plugin": "3.1.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": "[based on user choice]", "has_feature_tracker": "[based on user choice]", "has_document_detection": "[based on user choice]", "claude_md_mode": "[single|modular|both]" }, "feature_tracker": { "file": "feature-tracker.json", "source_document": "[user selection]", "sync_targets": ["TODO.md"] }, "generated": { "rules": {}, "commands": {} }, "custom_overrides": { "skills": [], "commands": [] } }Note: Include
feature_trackersection only if feature tracking is enabled. Note: As of v3.1.0, progress tracking is consolidated into feature-tracker.json (work-overview.md removed). -
Create initial rules (if modular rules selected):
development.md: TDD workflow, commit conventionstesting.md: Test requirements, coverage expectationsdocument-management.md: Document organization rules (if document detection enabled)
-
Handle
.gitignore:- Always commit
CLAUDE.mdand.claude/rules/(shared project instructions) - Add
docs/blueprint/work-orders/to.gitignore(task-specific, may contain sensitive details) - If secrets detected in
.claude/, warn user and suggest.gitignoreentries
- Always commit
-
Report:
Blueprint Development initialized! (v3.1.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: [single|modular|both]
[- Feature tracking: enabled (source: {source_document})]
[- Document detection: enabled (Claude will prompt for PRD/ADR/PRP creation)]
[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/
-
Prompt for next action (use AskUserQuestion):
question: "Blueprint initialized. What would you like to do next?" options: - label: "Create a PRD" description: "Write requirements for a feature (recommended first step)" - label: "Generate project commands" description: "Detect project type and create /project:continue, /project:test-loop" - label: "Add modular rules" description: "Create .claude/rules/ for domain-specific guidelines" - label: "I'm done for now" description: "Exit - you can run /blueprint:status anytime to see options"Based on selection:
- “Create a PRD” â Run
/blueprint:derive-prd - “Generate project commands” â Run
/blueprint:generate-commands - “Add modular rules” â Run
/blueprint:rules - “I’m done for now” â Show quick reference and exit
- “Create a PRD” â Run
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-skills - Generate skills from PRDs
- /blueprint:generate-commands - Create workflow commands
- /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