/blueprint-plugin:blueprint-sync --dry-run to preview sync status without modifying filesfrom blueprint-plugin
Detects stale or modified generated content in .claude/rules/ and offers regeneration, promotion, or keep options. Use after PRD changes or to reconcile drift.
Ships in blueprint-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Check the status of generated content and offer options for modified or stale files.
| Use this skill when... | Use blueprint-promote instead when... |
|---|---|
| You want to detect stale or modified generated rules/skills | You've decided to keep one specific edited rule (single artifact) |
You're reconciling drift between .claude/rules/ and the manifest | You want to acknowledge modifications and stop sync warnings |
| You want regenerate/promote/keep options for many files at once | Use blueprint-generate-rules instead to (re)generate from PRDs |
You preview status with --dry-run before changing anything | Use blueprint-sync-ids instead for ID assignment, not content drift |
| Flag | Description |
|---|---|
--dry-run | Preview sync status report without interactive prompts or file modifications |
Before any closing AskUserQuestion menu, resolve the automation config:
bash "${CLAUDE_SKILL_DIR}/../../scripts/get-automation-config.sh"
When EFFECTIVE_INTERACTION_MODE=quiet and this invocation was
automation-initiated (autopilot, session bookend, drift-nudge follow-up — not
a slash command the user typed), skip closing navigation menus ("what next?" /
"create another?" style): apply the safe default and end with a one-line
receipt instead. Quiet mode never skips confirmation gates that guard writes —
only navigation menus. A direct user invocation always behaves fully
interactively (explicit intent overrides quiet; see ADR-0020).
Execute this sync workflow:
Purpose:
cat docs/blueprint/manifest.json
generated.rules sectionManifests written by blueprint 3.0.0 key generated.rules without .md and
carry no content_hash, so Step 2 would report every rule missing. Check first:
bash "${CLAUDE_SKILL_DIR}/../../scripts/migrate-generated-rules-keys.sh" --dry-run
STATUS=OK → continue to Step 2.KEY_MISSING_EXTENSION or RECORD_MISSING_HASH above 0 → WARN in the
report with each key_missing_extension / record_missing_hash issue —
never list those rules as missing. With --dry-run, stop at the warning
and recommend /blueprint:sync. Otherwise run the script without
--dry-run: it re-keys to <key>.md and backfills content_hash from the
current file with status: "modified", never touching the rule files.key_unresolved / key_conflict issues → list them for the user; the
script leaves those records untouched.First resolve the rules directory from the manifest — never hardcode
.claude/rules/, or sync looks in the wrong place in every repo that chose
an isolated generated_rules_path in /blueprint:init Step 4a
(issues #1043, #1675, #2331):
RULES_DIR=$(jq -r '.structure.generated_rules_path // ".claude/rules/"' docs/blueprint/manifest.json)
RULES_DIR="${RULES_DIR%/}"
generated.rules is an object map keyed by filename (see
blueprint-plugin/schemas/manifest.schema.json), so iterate it with
to_entries[]:
jq -r '(.generated.rules // {}) | to_entries[] | [.key, (.value.content_hash // ""), (.value.source_hash // "")] | @tsv' docs/blueprint/manifest.json
For each entry, {key} is the rule's bare filename including the .md
extension, relative to $RULES_DIR. Resolve it as "$RULES_DIR/{key}" —
do not append .md, which would look for development.md.md and report
every registered rule as missing.
a. Verify file exists:
test -f "$RULES_DIR/{key}"
b. Hash current content (bare hex, matching the content_hash the
producers write — no sha256: prefix):
sha256sum "$RULES_DIR/{key}" | cut -d' ' -f1
c. Compare hashes:
content_hash matches → status: currentcontent_hash differs → status: modifiedd. Check source freshness (for rules from PRDs):
source_hash in manifeststalesource_hash (rules written by /blueprint:init) is
never stale — only modified appliesGenerated Content Sync Status
Rules ($RULES_DIR):
✅ 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)
--dry-run, stopOutput the sync report from Step 3 and exit. Skip all remaining steps.
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:
content_hash to current, mark as acknowledgedquestion: "{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:
source_hash to current, mark as currentcontent_hash for regenerated filessource_hash if PRD changes acknowledgedstatus field appropriatelySync Complete
Actions taken:
- testing-strategies.md: Modifications acknowledged
- implementation-guides.md: Regenerated from PRDs
Current state:
- 4 generated rules (all current)
Manifest updated.
Tips:
/blueprint:sync periodically to check for driftWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
blueprint-sync, generated-content, drift-detection, rules-sync
npx claudepluginhub laurigates/claude-plugins --plugin blueprint-plugin35 skills in this plugin
/adr-relationshipsDomain analysis, conflict detection, and relationship validation for Architecture Decision Records. Use when creating or validating ADRs to ensure consistency./blueprint-adr-listList ADRs as a markdown table with title, status, date, domain. Use when generating an ADR index, auditing ADR status, or reviewing all architecture decisions./blueprint-adr-validateValidate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links, cycles, or number collisions./blueprint-autonomy-level3Install blueprint autonomy level 3 (ADR-0020): scheduled-autorun + approved-work-order-execution GitHub workflows. Use when enabling out-of-band blueprint automation in a repo./blueprint-autopilotRun due blueprint maintenance ambiently at autonomy level 2+. Use when a drift nudge reports blueprint tasks due or suggests /blueprint:autopilot./blueprint-claude-mdCLAUDE.md and CLAUDE.local.md from blueprint artifacts. Use when editing CLAUDE.md team instructions, converting inline content to @imports, or setting up CLAUDE.local.md.Other plugins' skills for the same job