sync-template
Installation
SKILL.md
Skill: sync-template
Purpose
Synchronize structural and template improvements between the current project and the master template repository https://github.com/Rheinmir/setup.git.
When to use
- Upstream: After improving a template file locally and wanting to save it to Master.
- Downstream: When the Master repo has newer features or fixes that you want to bring into the current project.
Steps
Step 1: Load Manifest
Read .template-manifest.json for the inclusion list and remote URL.
Step 2: Fetch Master Repo & Branch Audit
- CRITICAL: Always list all remote branches via
gh api repos/<owner>/<repo>/branches. - Check latest commit date on each branch — do not assume
master/mainis most up-to-date. - Ask user which branch to use if unclear.
- Use
gh api+curlto fetch files directly — no need togit clone.