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
SKILL.md
Sync Templates
The Workspace Configurator drives this workflow. 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 the sync to preview changes.
Steps
- Run
tools/sync-to-templates.sh --dry-run - Review output for copy, scaffold, and skip counts
- Flag unexpected results (files that shouldn't propagate, missing scaffold sources)
Output
## Context Anchors
- **Phase:** Preview
## Dry Run Summary
| Target | Copies | Scaffolds | Skipped |
| ------ | ------ | --------- | ------- |
| root | <n> | <n> | <n> |
| repo | <n> | <n> | <n> |
## Next Step
Approve sync execution.
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Do not execute sync without human approval.
Phase 2: Execute
Run the sync and validate.
Steps
- Run
tools/sync-to-templates.sh - Run
tools/validate-templates.sh - Report validation results — errors, warnings, checks passed
Output
## Context Anchors
- **Phase:** Execute
## Validation Results
| Check | Errors | Warnings |
| ------------ | ------ | -------- |
| Completeness | <n> | <n> |
| Drift | <n> | <n> |
| Scaffold | <n> | <n> |
| Leakage | <n> | <n> |
| Structure | <n> | <n> |
## Next Step
Commit template changes or fix issues.
**Approval Required:** Yes
⛔ CHECKPOINT
STOP. Do not commit without human approval.
Phase 3: Commit
Stage and commit template repo changes.
Steps
- For each template repo that changed:
- Navigate to
repos/<template-repo>/ - Stage all changes:
git add -A - Commit:
chore: sync from workspace via manifest
- Navigate to
- Return to workspace root
Output
## Context Anchors
- **Phase:** Commit
## Commits
| Repo | Commit | Files |
| ------ | ------ | ----- |
| <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 /skill: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?