blueprint-claude-md
1
总安装量
1
周安装量
#43629
全站排名
安装命令
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-claude-md
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
windsurf
1
zencoder
1
Skill 文档
Generate or update the project’s CLAUDE.md file based on blueprint artifacts, PRDs, and project structure.
Steps:
-
Check current state:
- Look for existing
CLAUDE.mdin project root - Read
docs/blueprint/manifest.jsonfor configuration - Determine
claude_md_mode(single, modular, or both)
- Look for existing
-
Determine action (use AskUserQuestion):
{If CLAUDE.md exists:} question: "CLAUDE.md already exists. What would you like to do?" options: - "Update with latest project info" â merge updates - "Regenerate completely" â overwrite (backup first) - "Add missing sections only" â append new content - "Convert to modular rules" â split into .claude/rules/ - "View current structure" â analyze and display {If CLAUDE.md doesn't exist:} question: "No CLAUDE.md found. How would you like to create it?" options: - "Generate from project analysis" â auto-generate - "Generate from PRDs" â use blueprint PRDs - "Start with template" â use starter template - "Use modular rules instead" â skip CLAUDE.md, use rules/ -
Gather project context:
- Project structure: Detect language, framework, build tools
- PRDs: Read
docs/prds/*.mdfor requirements - Work overview: Current phase and progress
- Existing rules: Content from
.claude/rules/if present - Git history: Recent patterns and conventions
- Dependencies: Package managers, key libraries
-
Generate CLAUDE.md sections:
Standard sections:
# Project: {name} ## Overview {Brief project description from PRDs or detection} ## Tech Stack - Language: {detected} - Framework: {detected} - Build: {detected} - Test: {detected} ## Development Workflow ### Getting Started {Setup commands} ### Running Tests {Test commands} ### Building {Build commands} ## Architecture {Key architectural decisions from PRDs} ## Conventions ### Code Style {Detected or from PRDs} ### Commit Messages {Conventional commits if detected} ### Testing Requirements {From PRDs or rules} ## Current Focus {From work-overview.md} ## Key Files {Important files and their purposes} ## See Also {If modular rules enabled:} - `.claude/rules/` - Detailed rules by domain - `docs/prds/` - Product requirements -
If modular rules mode = “both”:
- Keep CLAUDE.md as high-level overview
- Reference
.claude/rules/for details:## Detailed Rules See `.claude/rules/` for domain-specific guidelines: - `development.md` - Development workflow - `testing.md` - Testing requirements - `frontend/` - Frontend-specific rules - `backend/` - Backend-specific rules
-
If modular rules mode = “modular”:
- Create minimal CLAUDE.md with references
- Move detailed content to
.claude/rules/
-
Smart update (for existing CLAUDE.md):
- Parse existing sections
- Identify outdated content (compare with PRDs, structure)
- Offer section-by-section updates:
question: "Found outdated sections. Which would you like to update?" options: [list of sections] allowMultiSelect: true
-
Sync with modular rules:
- If rules exist in
.claude/rules/ - Detect duplicated content
- Offer to deduplicate:
question: "Found duplicate content between CLAUDE.md and rules/. How to resolve?" options: - "Keep in CLAUDE.md, remove from rules" - "Keep in rules, reference from CLAUDE.md" - "Keep both (may cause confusion)"
- If rules exist in
-
Update manifest:
- Record CLAUDE.md generation/update
- Track which PRDs contributed
- Update timestamp
-
Report:
â CLAUDE.md updated! {Created | Updated}: CLAUDE.md Sections: - Overview â - Tech Stack â - Development Workflow â - Architecture â - Conventions â - Current Focus â Sources used: - PRDs: {list} - Rules: {list} - Project detection: {what was detected} {If modular mode:} Note: Detailed rules are in .claude/rules/ CLAUDE.md serves as overview and quick reference. Run `/blueprint-status` to see full configuration.
CLAUDE.md Best Practices:
- Keep it concise (< 500 lines ideally)
- Focus on “what Claude needs to know”
- Reference modular rules for details
- Update when PRDs change significantly
- Include current focus/phase for context
-
Prompt for next action (use AskUserQuestion):
question: "CLAUDE.md updated. What would you like to do next?" options: - label: "Check blueprint status (Recommended)" description: "Run /blueprint:status to verify configuration" - label: "Manage modular rules" description: "Add or edit rules in .claude/rules/" - label: "Continue development" description: "Run /project:continue to work on next task" - label: "I'm done for now" description: "Exit - CLAUDE.md is saved"Based on selection:
- “Check blueprint status” â Run
/blueprint:status - “Manage modular rules” â Run
/blueprint:rules - “Continue development” â Run
/project:continue - “I’m done” â Exit
- “Check blueprint status” â Run
Template Sections (customize per project type):
| Project Type | Key Sections |
|---|---|
| Python | Virtual env, pytest, type hints |
| Node.js | Package manager, test runner, build |
| Rust | Cargo, clippy, unsafe usage rules |
| Monorepo | Workspace structure, shared deps |
| API | Endpoints, auth, error handling |
| Frontend | Components, state, styling |