Agent skill
sync-templates
Sync workspace content to template repos via manifest
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/sync-templates-daemn256-workspace-repo-templ-2
SKILL.md
Sync Templates
Uses Workspace Configurator agent. Run the manifest-driven sync to propagate workspace content to template repositories, then validate the results.
Prerequisites: template-manifest.yaml exists, template repos cloned under repos/
Phase 1: Preview
Dry Run
- Run
tools/sync-to-templates.sh --dry-runto preview what will change - Review the output — look for:
- Copy operations: files copied verbatim from workspace to template
- Scaffold operations: files sourced from
scaffolds/<target>/orscaffolds/common/ - Skipped files: ignored by manifest (consumer-only content)
- Flag any unexpected results (files that shouldn't propagate, missing scaffold sources)
Output
## Context Anchors
- **Phase:** 1 — Preview
## Dry Run Summary
| Target | Copies | Scaffolds | Skipped |
| ------ | ------ | --------- | ------- |
| root | <n> | <n> | <n> |
| repo | <n> | <n> | <n> |
## Observations
<any unexpected results or concerns>
## Next Step
Approve sync execution.
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Do not proceed until human approves sync execution.
Phase 2: Execute
Sync
- Run
tools/sync-to-templates.sh(without--dry-run) - Run
tools/validate-templates.shto verify template health - Report validation results
Output
## Context Anchors
- **Phase:** 2 — Execute
## Sync Results
<output summary from sync>
## Validation Results
| Check | Errors | Warnings |
| ------------ | ------ | -------- |
| Completeness | <n> | <n> |
| Drift | <n> | <n> |
| Scaffold | <n> | <n> |
| Leakage | <n> | <n> |
| Structure | <n> | <n> |
## Issues Found
<any errors or warnings that need attention>
## Next Step
<commit template changes, fix issues, or re-sync>
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Do not commit template changes without human approval.
Phase 3: Commit
Stage and Commit
- For each template repo that changed:
cd repos/<template-repo>/git add -A && git status -s- Commit with message:
chore: sync from workspace via manifest
- Return to workspace root
Output
## Context Anchors
- **Phase:** 3 — Commit
## Commits
| Template Repo | Commit | Files Changed |
| ------------- | ------ | ------------- |
| <name> | <hash> | <n> |
## Next Step
Push template repos when ready.
**Approval Required:** Yes
Error Handling
| Error | Recovery |
|---|---|
| Sync script fails | Check template-manifest.yaml for syntax errors |
| Validation reports drift | Review and resolve drift before committing |
| Repo has uncommitted | Stash or commit existing changes first |
| Missing scaffold source | Create scaffold via /scaffold-file |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?