🔄
DevOpsHTML

Template Sync

by mattgierhart

Template Sync is a DevOps skill for Claude Code, published by mattgierhart in PRD-driven-context-engineering.

182 stars10 forkson mattgierhart/PRD-driven-context-engineeringAdded 2026/09/07Repository updated 2026/08/31
agent-skillsagentic-codingai-agentsai-assistedclaudeclaude-codeclaude-code-skillscontext-engineeringdeveloper-toolsprdproduct-developmentproduct-managementproductivityspec-driven-developmenttemplatesworkflow
Install in seconds
Install Template Sync
Copy Template Sync into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/mattgierhart/PRD-driven-context-engineering/tree/main/.claude/skills/ghm-template-sync ~/.claude/skills/ghm-template-sync

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/mattgierhart/PRD-driven-context-engineering.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/ghm-template-sync/SKILL.md in mattgierhart/PRD-driven-context-engineering
Installs to
~/.claude/skills/ghm-template-sync
Collection
One of 25 skills cataloged from this repository
Category
DevOps1044 skills

What Template Sync does

Template Sync detects when a repo is behind its template version and prepares a safe migration plan. It checks for missing, stale, and structurally outdated files while protecting product-specific content.

Template Sync is cataloged under DevOps on DirSkills. Template Sync comes from a repository tagged agent-skills, agentic-coding, ai-agents, ai-assisted and claude.

Documentation

README

Template Sync

Detect template version drift and migrate to the latest template version.

Workflow

Phase 1: Detect Current State

  1. Read .claude/VERSION (if it exists) to get current template version
  2. If no VERSION file, check CLAUDE.md frontmatter for template_version
  3. If neither exists, assume v1.0.0 (pre-versioning)
  4. Report: "Your repo is on template v{X}. Latest is v{Y}."

Phase 2: Diff Against Template

Compare 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.sh
  • CHANGELOG.md
  • MIGRATION.md

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Template Sync

  • What else does mattgierhart publish alongside Template Sync?

    Template Sync is one of 25 skills that DirSkills catalogs from mattgierhart/PRD-driven-context-engineering, the repository it ships in. Its siblings there include Architecture Design, Competitive Landscape Mapping and Environment Setup. Each one is a separate skill with its own page in this directory, installs the same way Template Sync does, and is maintained by mattgierhart in that same repository. The rest of the collection is listed on the mattgierhart/PRD-driven-context-engineering page.

  • How does Template Sync compare to other DevOps skills?

    Template Sync ranks #949 by stars among the 1044 DevOps skills in this catalog. The most-starred ones next to it are Backend Patterns, API Connector Builder and Migration. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Template Sync against them. Open each page to compare what they document and how they install.

More from mattgierhart/PRD-driven-context-engineering

Template Sync is one of 25 skills cataloged on DirSkills from mattgierhart/PRD-driven-context-engineering.

See all 25 skills
🏗️
2h ago

Architecture Design

Architecture Design defines how system components connect and where boundaries, integrations, and constraints belong. Use it when turning stack choices, risks, and features into architecture decisions and system diagrams.
AI Engineering
18210
🔎
2h ago

Competitive Landscape Mapping

Competitive Landscape Mapping documents current user workarounds, competitor options, and gaps before positioning a product. Use it when moving from problem framing into market definition and competitive analysis.
SEO
18210
🛠️
2h ago

Environment Setup

Environment Setup documents the local tools, packages, config files, and verification steps needed for consistent development. It also records CI/CD and production environment requirements when those are part of the project.
DevOps
18210
🧭
2h ago

Feature Value Planning

Feature Value Planning defines and prioritizes features with traceability to outcomes, moat, and pricing tiers. Use it when scoping an MVP, mapping parity vs. delta features, or deciding which capabilities belong in each tier.
AI Engineering
18210
🚦
2h ago

Gate Check

Gate Check validates whether a PRD stage is ready to advance by reading readiness scores and reporting PASS, WARN, or BLOCK with top blockers. Use it before moving from v0.X to v0.Y or when running /ghm-gate-check.
Automation
18210
🗂️
2h ago

Harvest

Harvest extracts durable insights from temp files into source-of-truth documents during EPIC Phase E. Use it when an EPIC finishes or when you explicitly run /ghm-harvest to create new entries and an archive manifest.
Automation
18210