blueprint-sync
1
总安装量
1
周安装量
#46660
全站排名
安装命令
npx skills add https://github.com/laurigates/claude-plugins --skill blueprint-sync
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
windsurf
1
zencoder
1
Skill 文档
Check the status of generated content and offer options for modified or stale files.
Flags
| Flag | Description |
|---|---|
--dry-run |
Preview sync status report without interactive prompts or file modifications |
Purpose:
- Detect when generated skills/commands have been manually modified
- Detect when source PRDs have changed (making generated content stale)
- Offer appropriate actions: regenerate, promote to custom, or keep as-is
Steps:
-
Read manifest:
cat docs/blueprint/manifest.json- Extract
generated.rulessection - If no generated content, report “Nothing to sync”
- Extract
-
Check each generated rule: For each rule in
manifest.generated.rules:a. Verify file exists:
test -f .claude/rules/{name}.mdb. Hash current content:
sha256sum .claude/rules/{name}.md | cut -d' ' -f1c. Compare hashes:
- If
content_hashmatches â status:current - If
content_hashdiffers â status:modified
d. Check source freshness (for rules from PRDs):
- Hash current PRD content
- Compare with
source_hashin manifest - If differs â status:
stale
- If
-
Display sync report:
Generated Content Sync Status Rules (.claude/rules/): â architecture-patterns.md: Current â ï¸ testing-strategies.md: Modified locally ð implementation-guides.md: Stale (PRDs changed) â quality-standards.md: Current Summary: - Current: 3 files - Modified: 1 file (user edited) - Stale: 1 file (source changed) -
If
--dry-run: Output the sync report from Step 3 and exit. Skip all remaining steps. -
For modified content, offer options:
question: "{name} has been modified locally. What would you like to do?" options: - label: "Keep modifications" description: "Mark as acknowledged, preserve your changes" - label: "Discard modifications (regenerate)" description: "Overwrite with fresh generation from PRDs" - label: "View diff" description: "See what changed before deciding" - label: "Skip this file" description: "Leave as-is for now"Based on selection:
- “Keep modifications” â Update
content_hashto current, mark as acknowledged - “Regenerate” â Regenerate this rule from PRDs
- “View diff” â Show diff then re-ask
- “Skip” â Continue to next file
- “Keep modifications” â Update
-
For stale content, offer options:
question: "{name} is stale (PRDs have changed). What would you like to do?" options: - label: "Regenerate from PRDs (Recommended)" description: "Update with latest patterns from docs/prds/" - label: "Keep current version" description: "Mark as current without regenerating" - label: "View what changed in PRDs" description: "See PRD changes before deciding" - label: "Skip this file" description: "Leave stale for now"Based on selection:
- “Regenerate” â Regenerate this rule from PRDs
- “Keep” â Update
source_hashto current, mark as current - “View” â Show PRD diff then re-ask
- “Skip” â Continue to next file
-
Update manifest after changes:
- Update
content_hashfor regenerated files - Update
source_hashif PRD changes acknowledged - Update
statusfield appropriately
- Update
-
Final report:
Sync Complete Actions taken: - testing-strategies.md: Modifications acknowledged - implementation-guides.md: Regenerated from PRDs Current state: - 4 generated rules (all current) Manifest updated.
Tips:
- Run
/blueprint:syncperiodically to check for drift - Acknowledge modifications you want to keep
- Regenerating will overwrite local changes
- Stale content still works, but may miss new patterns from PRDs