/prd-ce:ghm-template-syncfrom PRD-Driven Context Engineering
Detects template version drift and guides migration by comparing repo structure against expected template, identifying missing/stale files, and automating safe updates while protecting product-specific content.
Ships in PRD-Driven Context Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Detect template version drift and migrate to the latest template version.
.claude/VERSION (if it exists) to get current template versionCLAUDE.md frontmatter for template_versionCompare your repo structure against what the current template version expects:
Check for missing files:
.claude/VERSION.claude/domain-profile.yaml.claude/hooks/HOOK_CONTRACT.md.claude/hooks/context-validation.sh.claude/hooks/context-density-gate.sh.claude/hooks/sot-update-trigger.shCHANGELOG.mdMIGRATION.mdCheck for stale files (should be removed):
.claude/hooks/context-validation.py.claude/hooks/context-density-gate.py.claude/hooks/sot-update-trigger.py.claude/agents/HORIZON.md (replaced by subdirectory).claude/agents/STUDIO.md.claude/agents/DEVLAB.md.claude/agents/METRO.mdCheck for structure issues:
settings.json: Does it use 3-level nesting? Are timeouts in seconds?horizon/, studio/, devlab/, metro/ subdirectories exist with AGENT.md + MEMORY.md?template_version?Output a table:
| File | Status | Action | Risk |
|---|---|---|---|
.claude/VERSION | Missing | Copy from template | None |
.claude/hooks/*.py | Stale | Delete (replaced by .sh) | None |
.claude/agents/HORIZON.md | Stale | Split into horizon/AGENT.md + MEMORY.md | Preserve MEMORY.md content |
settings.json | Outdated | Update hook nesting + commands | Check for custom hooks |
CLAUDE.md | Missing frontmatter | Add template_version: "3.0.0" | None |
Auto-safe (do without asking):
.claude/VERSION with current template versiontemplate_version frontmatter to files that lack itConfirm first (show diff, ask user):
settings.json hook configurationNever touch (product-specific):
PRD.md content (only add frontmatter)SoT/*.md contentepics/EPIC-*.md content (only update headers on closed EPICs).claude/agents/*/MEMORY.md contentREADME.md contentAfter all changes:
settings.json uses correct nesting| From | To | Key Changes |
|---|---|---|
| v1.0.0 | v2.0.0 | Add skills, hooks, agents, SoT standardization |
| v2.0.0 | v3.0.0 | Shell hooks, agent subdirs, semantic EPICs, versioning, domain-profile |
| v1.0.0 | v3.0.0 | All of the above (cumulative) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
template-sync, version-drift, migration, repo-maintenance, safe-updates
npx claudepluginhub mattgierhart/prd-driven-context-engineering --plugin prd-ce50 skills in this plugin
/ghm-gate-checkValidates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py). Returns a graduated PASS / WARN / BLOCK verdict with top blockers and their causal chain. Triggers before advancing from v0.X to v0.Y or explicit `/ghm-gate-check`.
/ghm-harvestExtracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest` invocation. Outputs new SoT entries and archive manifest.
/ghm-id-registerValidates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX entries. Outputs formatted SoT entry with validated cross-references.
/ghm-self-installInstall the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative to forking the whole repo. Runs an interactive wizard that seeds the framework (.claude/ hooks, skills, agents, rules, scripts) without clobbering product content. Triggers on "install the methodology", "adopt this into my repo", "self-install", "set up PRD lifecycle here", "onboard existing project". Outputs an installed framework + a verification report.
/ghm-sot-builderCreates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT file, add a new artifact type, or when user says "I need to track [X] but there's no SoT for it", "create SoT", "new source of truth". Outputs a properly structured SoT.*.md file with ID prefix, frontmatter, and update protocol.
/ghm-status-syncSynchronizes README.md Command Center with current project state. Triggers on gate changes, EPIC status changes, or explicit `/ghm-status-sync` invocation. Outputs updated README.md dashboard with current lifecycle stage, blockers, and metrics.
Other plugins' skills for the same job