Синхронизация репозитория с GHM-шаблоном
★ 7.6 · vibe-coding
ghm-template-sync is a Claude Code skill that detects version drift between a repository and the ghm template and automates migration to the latest template version. It operates in five phases: reads the current template version from `.claude/VERSION` or `CLAUDE.md` frontmatter, diffs the repo structure against expectations (checking for files like `domain-profile.yaml`, `HOOK_CONTRACT.md`, shell hooks, and agent subdirectories), generates a risk-annotated migration plan, then applies changes — safe ones automatically, destructive ones only after user confirmation. The skill handles v1→v2, v2→v3, and v1→v3 upgrade paths, covering removal of stale Python hooks, restructuring agent flat files into subdirectories, and updating `settings.json` hook nesting. Product-specific content — `PRD.md`, `SoT/*.md`, `MEMORY.md`, and epic body text — is never modified, making it safe for teams maintaining forks of the ghm template who need to catch up on structural changes without losing domain-specific data.