[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K2P6BG74TYGXV6DGNYCZY6":3,"skill-same:01M6K2P6BG74TYGXV6DGNYCZY6":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":6,"updatedAt":42,"install":43,"resources":55},"01M6K2P6BG74TYGXV6DGNYCZY6","sync-template",null,"Pull latest repo-of-repos template updates into this workspace","raffertyuy\u002Frepo-of-repos","raffertyuy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1037626?v=4","01M6C1GYN0JM5VYG11TJKXT93V","Rafferty Uy","01M6K2N4HPNKC2PW34BM3BFDHK",18,"MIT","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsync-template\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"sync","template","sync template","repos","pull","workspace","repo","true","latest","updates","2026-11-10 10:12:30",false,"---\nname: sync-template\ndescription: Pull latest repo-of-repos template updates into this workspace\nuser-invocable: true\norigin: template\n---\n\n# Sync Template\n\nPull the latest repo-of-repos template changes into this workspace without overwriting project-specific content.\n\n## Overview\n\nThis workspace was created from the [repo-of-repos](https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos) template. The template evolves — new skills, improved agents, better docs. This skill brings those updates into your workspace while preserving your project-specific configuration.\n\n## Arguments\n\nThe user may optionally specify:\n- `\u002Fsync-template` — use default upstream (`raffertyuy\u002Frepo-of-repos`, branch `main`)\n- `\u002Fsync-template \u003Cgithub-org\u002Frepo>` — use a custom upstream fork\n- `\u002Fsync-template --branch \u003Cbranch>` — use a specific branch\n\n## Order of Operations\n\n1. **Check versions** — compare local vs upstream\n2. **Fetch upstream** — clone template to a temp directory\n3. **Read changelog** — understand what changed and why\n4. **Copy safe files** — framework files that have no project-specific content\n5. **Smart-merge mixed files** — files with both template and project content\n6. **Update version** — write the new `TEMPLATE_VERSION`\n7. **Report** — summarize what changed\n\n## Step 1: Check Versions\n\n1. Read the local `TEMPLATE_VERSION` file at the project root. If it doesn't exist, assume `0.0.0` (pre-versioned workspace).\n2. Fetch only the upstream `TEMPLATE_VERSION` file:\n   ```bash\n   gh api repos\u002F\u003Cupstream>\u002Fcontents\u002FTEMPLATE_VERSION --jq '.content' | base64 -d\n   ```\n3. Compare versions. If already up to date, inform the user and stop.\n4. If the upstream is newer, continue.\n\n## Step 2: Fetch Upstream\n\nClone the upstream template to a temporary directory:\n\n```bash\ngit clone --depth 1 --branch \u003Cbranch> https:\u002F\u002Fgithub.com\u002F\u003Cupstream>.git \u002Ftmp\u002Frepo-of-repos-upstream\n```\n\nClean up this directory when done (in the final step).\n\n## Step 3: Read Changelog\n\nRead `TEMPLATE_CHANGELOG.md` from the upstream clone. Identify all versions between the local version and the upstream version. This tells you:\n- **What files changed** and why\n- **Migration notes** — special handling needed (e.g., `.gitignore` strategy change)\n- **New files** that need to be created locally\n\nPresent a summary to the user before proceeding: which versions will be applied and what the key changes are.\n\n## Step 4: Copy Safe Files\n\nThese are framework files with no project-specific content. Copy them directly from the upstream clone, overwriting local versions:\n\n| Path | What |\n|------|------|\n| `.agents\u002Fskills\u002F*\u002FSKILL.md` | All skill definitions (canonical) |\n| `.claude\u002Fskills\u002F*\u002FSKILL.md` | Skill stubs (frontmatter + `@` pointer to canonical) |\n| `.claude\u002Fagents\u002F*.md` | Agent definitions (read by Claude Code and Copilot) |\n| `.claude\u002Fprompt-snippets\u002F*.md` | Shared prompt snippets |\n| `.claude\u002Frules\u002F*.md` | Auto-applied rules (read by Claude Code and VS Code Copilot) |\n| `CLAUDE.md` | One-line `@AGENTS.md` pointer (template-owned, copy as-is) |\n| `_plans\u002FREADME.md` | Plan system docs |\n| `docs\u002F*.md` | Reference documentation |\n\n**New files**: If the upstream has new skills, agents, rules, or prompt snippets that don't exist locally, create them (including any new directories). When creating skill or agent files, ensure the `origin: template` frontmatter field is present (copy it from upstream as-is).\n\n**Removed template files**: Some skills or agents may have been removed from the template (e.g., `\u002Fcreate-task` and `\u002Flist-tasks` were removed in v0.5.0). To detect these:\n\n1. Scan local `.agents\u002Fskills\u002F*\u002FSKILL.md` and `.claude\u002Fagents\u002F*.md` for files that have `origin: template` in their frontmatter\n2. For each such file, check if the corresponding path exists in the upstream clone\n3. If a local `origin: template` file is **NOT** present in upstream → it was intentionally removed from the template\n4. Show the user a list of these orphaned template files and ask for confirmation before deleting:\n   ```\n   The following template-owned skills\u002Fagents no longer exist in the upstream template:\n   - .agents\u002Fskills\u002Fcreate-task\u002FSKILL.md\n   - .agents\u002Fskills\u002Flist-tasks\u002FSKILL.md\n   Delete these? [y\u002FN]\n   ```\n5. If confirmed, delete the files and their parent directories (only if the directory contains no other files). When removing a skill, delete BOTH the canonical `.agents\u002Fskills\u002F\u003Cname>\u002F` directory AND its stub `.claude\u002Fskills\u002F\u003Cname>\u002F` directory\n6. Local skills\u002Fagents **without** `origin: template` are project-custom — never touch them\n\n## Step 5: Smart-Merge Mixed Files\n\nThese files contain both template content and project-specific content. You (the agent) are the merge tool. For each file:\n\n1. Read the **upstream version** (from temp clone)\n2. Read the **local version** (from workspace)\n3. Read the relevant **changelog entries** for context on what changed and why\n4. **Intelligently merge** — apply the template updates while preserving project-specific content\n\n### AGENTS.md\n\nAGENTS.md (the canonical instruction file — `CLAUDE.md` is just a one-line `@AGENTS.md` pointer) is the most complex merge target. Live projects customize it heavily — different persona, project-specific architecture, custom coding standards, additional sections. The template evolves its framework sections independently.\n\n**Pre-0.6.0 workspaces**: if the local workspace still has full instructions in `CLAUDE.md` and no `AGENTS.md`, migrate first — treat the local `CLAUDE.md` content as the local `AGENTS.md` for merging purposes, write the merged result to `AGENTS.md`, and replace `CLAUDE.md` with the one-line pointer.\n\n**Classify every section as one of:**\n\n| Classification | What it means | Merge strategy |\n|----------------|---------------|----------------|\n| **Template-owned** | Section exists in both template and local, content is purely framework | Replace with upstream version |\n| **Template-seeded, project-customized** | Section originated from template but the project has modified it | Three-way merge (see below) |\n| **Project-only** | Section exists only in the local file | Preserve as-is, keep in its current position |\n\n**Template-owned sections** (replace with upstream):\n\n- Project Structure (intro paragraph, bullet list of git repos \u002F local folders)\n- Per-Repo Instructions (table of `AGENTS.md` \u002F `CLAUDE.md` \u002F `copilot-instructions.md`)\n- Workspace Manifest (the `repos.yaml` description paragraph)\n- Git vs Local Entries (comparison table)\n- Read\u002FWrite Separation\n- Plan System\n- Prompt Snippets (the explanation paragraph)\n- Cross-Tool Compatibility (table + rules)\n- Self-Improvement\n\n**Template-seeded sections that projects commonly customize** (three-way merge):\n\n- **Persona \u002F Voice & Personality** — The template ships a default persona (Tony Stark). Projects may keep it, modify it, or replace it entirely. If the local version differs from the template default, **preserve the local persona**. Only apply upstream changes if the template's persona section gained new structural elements (e.g., new `Do NOT` rules) — append those to the local version.\n- **Writing Style** — Projects may add style rules. Preserve local additions, update template-originated rules.\n- **Coding Standards** — The template references a prompt snippet. Projects may add inline standards. Preserve local additions.\n- **Commit Message Style** — Same as above.\n\n**Three-way merge procedure:**\n\n1. Read the **upstream** section\n2. Read the **local** section\n3. Identify what the local version **added, removed, or changed** relative to what the template would have had\n4. Apply the upstream update as the new base\n5. Re-apply the local modifications on top\n6. If a local modification conflicts with an upstream change (both changed the same content), **prefer the local version** and add a comment: `\u003C!-- sync-template: upstream also changed this section — review manually -->`\n\n**Project-only sections** — Anything in the local AGENTS.md that has no counterpart in the upstream template. Common examples:\n\n- Architecture notes, system diagrams\n- Data flow descriptions\n- API contracts, schema references\n- Team conventions, on-call notes\n- Environment-specific setup\n- Custom rules or overrides\n\nThese must be **preserved in their current position** in the file. If an upstream update adds a new template section, insert it in the correct position relative to other template sections, but never displace project-only sections.\n\n**Section ordering:** Follow the upstream's section order for template sections. Project-only sections stay where the user placed them. If a project-only section is between two template sections, keep it between them (or at the end if the surrounding template sections were reordered).\n\n**First-line \u002F title:** The local AGENTS.md may have a different title or opening line (e.g., `# aws-mk0` instead of `# AGENTS.md`). Preserve the local title.\n\n### README.md\n\nREADME.md is the public face of the project. Live projects replace the template description, customize the project tree, add project-specific sections, and may remove template sections that don't apply.\n\n**Classify every section as one of:**\n\n| Classification | What it means | Merge strategy |\n|----------------|---------------|----------------|\n| **Template-owned** | Pure framework documentation | Replace with upstream version |\n| **Template-seeded, project-customized** | Originated from template, modified by project | Three-way merge |\n| **Project-only** | Exists only in the local file | Preserve as-is |\n| **Template-removed** | Exists in template but project intentionally deleted it | Do NOT re-add |\n\n**Template-owned sections** (replace with upstream):\n\n- Plan-Implement Workflow\n- Slash Commands (tables)\n- Agents (table + read\u002Fwrite separation explanation)\n- MCP Servers\n- Keeping Up to Date\n- Further Reading\n- Customization\n- Prior Art & Inspiration\n- License\n\n**Template-seeded sections that projects commonly customize** (three-way merge):\n\n- **Project title and description** — The very top of the README. Projects replace the template name, description, and \"The Problem \u002F The Solution\" with their own. **Always preserve the local version.** If the upstream added an \"upstream template link\" line and the local doesn't have it, suggest adding it but don't force it.\n- **Project Structure (tree)** — Projects add their own repos, remove example entries, add non-repo directories. Preserve the local tree structure. Only update the **template framework entries** (`.claude\u002F`, `.github\u002F`, `_plans\u002F`, `docs\u002F`, etc.) if the upstream added new files or directories to those paths. Never remove project-specific tree entries.\n- **Getting Started** — Projects may simplify or customize setup steps. Preserve local modifications. Update only if the upstream changed core workflow (e.g., new required step, changed command syntax).\n- **Slash Commands** — The tables of available commands. **Regenerate from upstream** but preserve any project-specific skills the local version added. Check: if the local table has a skill not in the upstream, keep it. If upstream added a new skill, add it.\n- **Agents** — Same strategy as Slash Commands — merge table, preserve local additions.\n- **MCP Servers** — Preserve the local table (projects add their own servers). Only add new entries from upstream if the template introduced a new default MCP server.\n\n**Detecting intentionally removed sections:**\n\nIf a template section exists in the upstream but NOT in the local README, the project likely removed it intentionally. **Do NOT re-add it.** Instead, note it in the sync report:\n\n```\n| Further Reading | Skipped (not present locally — likely intentionally removed) |\n```\n\nIf unsure whether removal was intentional, ask the user before re-adding.\n\n**Three-way merge procedure:** Same as AGENTS.md (see above).\n\n**Section ordering:** Follow the local file's ordering. If upstream introduces a new section, insert it in a logical position relative to existing sections.\n\n### .gitignore\n\n- Apply the template's ignore strategy (e.g., per-repo entries vs blanket glob)\n- Preserve any project-specific ignore entries\n- If the strategy changed (e.g., blanket `repos\u002F*\u002F` → per-repo entries), generate the correct entries based on the current `repos\u002Frepos.yaml`\n\n### repos\u002Frepos.yaml\n\n- Update **header comments only** (field documentation)\n- **NEVER** touch actual repo entries — those are entirely project-specific\n\n### TEMPLATE_CHANGELOG.md\n\n- Copy directly from upstream (this file is template-owned)\n\n## Step 6: Update Version\n\nWrite the upstream version string to the local `TEMPLATE_VERSION` file.\n\n## Step 7: Cleanup and Report\n\n1. Remove the temp clone directory: `rm -rf \u002Ftmp\u002Frepo-of-repos-upstream`\n2. Report a summary:\n\n```\n## Template Sync: v0.2.0 → v0.3.0\n\n### Files updated\n| File | Action |\n|------|--------|\n| `.agents\u002Fskills\u002Fpull-all-repos\u002FSKILL.md` | Copied from upstream |\n| `AGENTS.md` | Merged (added \"Git vs Local Entries\" section) |\n| `.gitignore` | Merged (switched to per-repo entries) |\n| ... | ... |\n\n### New files\n- `.agents\u002Fskills\u002Fsync-template\u002FSKILL.md` (+ stub in `.claude\u002Fskills\u002Fsync-template\u002F`)\n\n### Removed files\n- `.agents\u002Fskills\u002Fcreate-task\u002F` *(template skill removed in v0.5.0)*\n- `.agents\u002Fskills\u002Flist-tasks\u002F` *(template skill removed in v0.5.0)*\n\n### Key changes\n- Local source folder support (see TEMPLATE_CHANGELOG.md for details)\n\n### Next steps\n- Review the changes with `git diff`\n- Commit when satisfied: `\u002Fcommit`\n```\n\n## Notes\n\n- **Never delete local files** unless they have `origin: template` in frontmatter AND are absent from upstream (and even then, always confirm with user first)\n- Local skills\u002Fagents without `origin: template` are project-custom — ignore them entirely during sync\n- When copying any skill or agent file from upstream, preserve the `origin: template` frontmatter field (it will already be there — don't strip it)\n- When copying a skill, keep the canonical file and its stub consistent: the stub's frontmatter must match the canonical frontmatter, followed only by `@..\u002F..\u002F..\u002F.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n- **Never touch** `repos\u002Frepos.md`, `repos\u002F*\u002F`, `_plans\u002F*.plan.md` (user plans), `.claude\u002Fsettings*.json`, `.mcp.json`, `.codex\u002Fconfig.toml`\n- **Always preserve** project-specific content in mixed files — when in doubt, keep both\n- If the merge is ambiguous, show both versions to the user and ask which to keep\n- The changelog is your guide — read it before merging to understand intent, not just diffs\n","# Sync Template\n\nPull the latest repo-of-repos template changes into this workspace without overwriting project-specific content.\n\n## Overview\n\nThis workspace was created from the [repo-of-repos](https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos) template. The template evolves — new skills, improved agents, better docs. This skill brings those updates into your workspace while preserving your project-specific configuration.\n\n## Arguments\n\nThe user may optionally specify:\n- `\u002Fsync-template` — use default upstream (`raffertyuy\u002Frepo-of-repos`, branch `main`)\n- `\u002Fsync-template \u003Cgithub-org\u002Frepo>` — use a custom upstream fork\n- `\u002Fsync-template --branch \u003Cbranch>` — use a specific branch\n\n## Order of Operations\n\n1. **Check versions** — compare local vs upstream\n2. **Fetch upstream** — clone template to a temp directory\n3. **Read changelog** — understand what changed and why\n4. **Copy safe files** — framework files that have no project-specific content\n5. **Smart-merge mixed files** — files with both template and project content\n6. **Update version** — write the new `TEMPLATE_VERSION`\n7. **Report** — summarize what changed\n\n## Step 1: Check Versions\n\n1. Read the local `TEMPLATE_VERSION` file at the project root. If it doesn't exist, assume `0.0.0` (pre-versioned workspace).\n2. Fetch only the upstream `TEMPLATE_VERSION` file:\n   ```bash\n   gh api repos\u002F\u003Cupstream>\u002Fcontents\u002FTEMPLATE_VERSION --jq '.content' | base64 -d\n   ```\n3. Compare versions. If already up to date, inform the user and stop.\n4. If the upstream is newer, continue.\n\n## Step 2: Fetch Upstream\n\nClone the upstream template to a temporary directory:\n\n```bash\ngit clone --depth 1 --branch \u003Cbranch> https:\u002F\u002Fgithub.com\u002F\u003Cupstream>.git \u002Ftmp\u002Frepo-of-repos-upstream\n```\n\nClean up this directory when done (in the final step).\n\n## Step 3: Read Changelog\n\nRead `TEMPLATE_CHANGELOG.md` from the upstream clone. Identify all versions between the local version and the upstream version. This tells you:\n- **What files changed** and why\n- **Migration notes** — special handling needed (e.g., `.gitignore` strategy change)\n- **New files** that need to be created locally\n\nPresent a summary to the user before proceeding: which versions will be applied and what the key changes are.\n\n## Step 4: Copy Safe Files\n\nThese are framework files with no project-specific content. Copy them directly from the upstream clone, overwriting local versions:\n\n| Path | What |\n|------|------|\n| `.agents\u002Fskills\u002F*\u002FSKILL.md` | All skill definitions (canonical) |\n| `.claude\u002Fskills\u002F*\u002FSKILL.md` | Skill stubs (frontmatter + `@` pointer to canonical) |\n| `.claude\u002Fagents\u002F*.md` | Agent definitions (read by Claude Code and Copilot) |\n| `.claude\u002Fprompt-snippets\u002F*.md` | Shared prompt snippets |\n| `.claude\u002Frules\u002F*.md` | Auto-applied rules (read by Claude Code and VS Code Copilot) |\n| `CLAUDE.md` | One-line `@AGENTS.md` pointer (template-owned, copy as-is) |\n| `_plans\u002FREADME.md` | Plan system docs |\n| `docs\u002F*.md` | Reference documentation |\n\n**New files**: If the upstream has new skills, agents, rules, or prompt snippets that don't exist locally, create them (including any new directories). When creating skill or agent files, ensure the `origin: template` frontmatter field is present (copy it from upstream as-is).\n\n**Removed template files**: Some skills or agents may have been removed from the template (e.g., `\u002Fcreate-task` and `\u002Flist-tasks` were removed in v0.5.0). To detect these:\n\n1. Scan local `.agents\u002Fskills\u002F*\u002FSKILL.md` and `.claude\u002Fagents\u002F*.md` for files that have `origin: template` in their frontmatter\n2. For each such file, check if the corresponding path exists in the upstream clone\n3. If a local `origin: template` file is **NOT** present in upstream → it was intentionally removed from the template\n4. Show the user a list of these orphaned template files and ask for confirmation before deleting:\n   ```\n   The following template-owned skills\u002Fagents no longer exist in the upstream template:\n   - .agents\u002Fskills\u002Fcreate-task\u002FSKILL.md\n   - .agents\u002Fskills\u002Flist-tasks\u002FSKILL.md\n   Delete these? [y\u002FN]\n   ```\n5. If confirmed, delete the files and their parent directories (only if the directory contains no other files). When removing a skill, delete BOTH the canonical `.agents\u002Fskills\u002F\u003Cname>\u002F` directory AND its stub `.claude\u002Fskills\u002F\u003Cname>\u002F` directory\n6. Local skills\u002Fagents **without** `origin: template` are project-custom — never touch them\n\n## Step 5: Smart-Merge Mixed Files\n\nThese files contain both template content and project-specific content. You (the agent) are the merge tool. For each file:\n\n1. Read the **upstream version** (from temp clone)\n2. Read the **local version** (from workspace)\n3. Read the relevant **changelog entries** for context on what changed and why\n4. **Intelligently merge** — apply the template updates while preserving project-specific content\n\n### AGENTS.md\n\nAGENTS.md (the canonical instruction file — `CLAUDE.md` is just a one-line `@AGENTS.md` pointer) is the most complex merge target. Live projects customize it heavily — different persona, project-specific architecture, custom coding standards, additional sections. The template evolves its framework sections independently.\n\n**Pre-0.6.0 workspaces**: if the local workspace still has full instructions in `CLAUDE.md` and no `AGENTS.md`, migrate first — treat the local `CLAUDE.md` content as the local `AGENTS.md` for merging purposes, write the merged result to `AGENTS.md`, and replace `CLAUDE.md` with the one-line pointer.\n\n**Classify every section as one of:**\n\n| Classification | What it means | Merge strategy |\n|----------------|---------------|----------------|\n| **Template-owned** | Section exists in both template and local, content is purely framework | Replace with upstream version |\n| **Template-seeded, project-customized** | Section originated from template but the project has modified it | Three-way merge (see below) |\n| **Project-only** | Section exists only in the local file | Preserve as-is, keep in its current position |\n\n**Template-owned sections** (replace with upstream):\n\n- Project Structure (intro paragraph, bullet list of git repos \u002F local folders)\n- Per-Repo Instructions (table of `AGENTS.md` \u002F `CLAUDE.md` \u002F `copilot-instructions.md`)\n- Workspace Manifest (the `repos.yaml` description paragraph)\n- Git vs Local Entries (comparison table)\n- Read\u002FWrite Separation\n- Plan System\n- Prompt Snippets (the explanation paragraph)\n- Cross-Tool Compatibility (table + rules)\n- Self-Improvement\n\n**Template-seeded sections that projects commonly customize** (three-way merge):\n\n- **Persona \u002F Voice & Personality** — The template ships a default persona (Tony Stark). Projects may keep it, modify it, or replace it entirely. If the local version differs from the template default, **preserve the local persona**. Only apply upstream changes if the template's persona section gained new structural elements (e.g., new `Do NOT` rules) — append those to the local version.\n- **Writing Style** — Projects may add style rules. Preserve local additions, update template-originated rules.\n- **Coding Standards** — The template references a prompt snippet. Projects may add inline standards. Preserve local additions.\n- **Commit Message Style** — Same as above.\n\n**Three-way merge procedure:**\n\n1. Read the **upstream** section\n2. Read the **local** section\n3. Identify what the local version **added, removed, or changed** relative to what the template would have had\n4. Apply the upstream update as the new base\n5. Re-apply the local modifications on top\n6. If a local modification conflicts with an upstream change (both changed the same content), **prefer the local version** and add a comment: `\u003C!-- sync-template: upstream also changed this section — review manually -->`\n\n**Project-only sections** — Anything in the local AGENTS.md that has no counterpart in the upstream template. Common examples:\n\n- Architecture notes, system diagrams\n- Data flow descriptions\n- API contracts, schema references\n- Team conventions, on-call notes\n- Environment-specific setup\n- Custom rules or overrides\n\nThese must be **preserved in their current position** in the file. If an upstream update adds a new template section, insert it in the correct position relative to other template sections, but never displace project-only sections.\n\n**Section ordering:** Follow the upstream's section order for template sections. Project-only sections stay where the user placed them. If a project-only section is between two template sections, keep it between them (or at the end if the surrounding template sections were reordered).\n\n**First-line \u002F title:** The local AGENTS.md may have a different title or opening line (e.g., `# aws-mk0` instead of `# AGENTS.md`). Preserve the local title.\n\n### README.md\n\nREADME.md is the public face of the project. Live projects replace the template description, customize the project tree, add project-specific sections, and may remove template sections that don't apply.\n\n**Classify every section as one of:**\n\n| Classification | What it means | Merge strategy |\n|----------------|---------------|----------------|\n| **Template-owned** | Pure framework documentation | Replace with upstream version |\n| **Template-seeded, project-customized** | Originated from template, modified by project | Three-way merge |\n| **Project-only** | Exists only in the local file | Preserve as-is |\n| **Template-removed** | Exists in template but project intentionally deleted it | Do NOT re-add |\n\n**Template-owned sections** (replace with upstream):\n\n- Plan-Implement Workflow\n- Slash Commands (tables)\n- Agents (table + read\u002Fwrite separation explanation)\n- MCP Servers\n- Keeping Up to Date\n- Further Reading\n- Customization\n- Prior Art & Inspiration\n- License\n\n**Template-seeded sections that projects commonly customize** (three-way merge):\n\n- **Project title and description** — The very top of the README. Projects replace the template name, description, and \"The Problem \u002F The Solution\" with their own. **Always preserve the local version.** If the upstream added an \"upstream template link\" line and the local doesn't have it, suggest adding it but don't force it.\n- **Project Structure (tree)** — Projects add their own repos, remove example entries, add non-repo directories. Preserve the local tree structure. Only update the **template framework entries** (`.claude\u002F`, `.github\u002F`, `_plans\u002F`, `docs\u002F`, etc.) if the upstream added new files or directories to those paths. Never remove project-specific tree entries.\n- **Getting Started** — Projects may simplify or customize setup steps. Preserve local modifications. Update only if the upstream changed core workflow (e.g., new required step, changed command syntax).\n- **Slash Commands** — The tables of available commands. **Regenerate from upstream** but preserve any project-specific skills the local version added. Check: if the local table has a skill not in the upstream, keep it. If upstream added a new skill, add it.\n- **Agents** — Same strategy as Slash Commands — merge table, preserve local additions.\n- **MCP Servers** — Preserve the local table (projects add their own servers). Only add new entries from upstream if the template introduced a new default MCP server.\n\n**Detecting intentionally removed sections:**\n\nIf a template section exists in the upstream but NOT in the local README, the project likely removed it intentionally. **Do NOT re-add it.** Instead, note it in the sync report:\n\n```\n| Further Reading | Skipped (not present locally — likely intentionally removed) |\n```\n\nIf unsure whether removal was intentional, ask the user before re-adding.\n\n**Three-way merge procedure:** Same as AGENTS.md (see above).\n\n**Section ordering:** Follow the local file's ordering. If upstream introduces a new section, insert it in a logical position relative to existing sections.\n\n### .gitignore\n\n- Apply the template's ignore strategy (e.g., per-repo entries vs blanket glob)\n- Preserve any project-specific ignore entries\n- If the strategy changed (e.g., blanket `repos\u002F*\u002F` → per-repo entries), generate the correct entries based on the current `repos\u002Frepos.yaml`\n\n### repos\u002Frepos.yaml\n\n- Update **header comments only** (field documentation)\n- **NEVER** touch actual repo entries — those are entirely project-specific\n\n### TEMPLATE_CHANGELOG.md\n\n- Copy directly from upstream (this file is template-owned)\n\n## Step 6: Update Version\n\nWrite the upstream version string to the local `TEMPLATE_VERSION` file.\n\n## Step 7: Cleanup and Report\n\n1. Remove the temp clone directory: `rm -rf \u002Ftmp\u002Frepo-of-repos-upstream`\n2. Report a summary:\n\n```\n## Template Sync: v0.2.0 → v0.3.0\n\n### Files updated\n| File | Action |\n|------|--------|\n| `.agents\u002Fskills\u002Fpull-all-repos\u002FSKILL.md` | Copied from upstream |\n| `AGENTS.md` | Merged (added \"Git vs Local Entries\" section) |\n| `.gitignore` | Merged (switched to per-repo entries) |\n| ... | ... |\n\n### New files\n- `.agents\u002Fskills\u002Fsync-template\u002FSKILL.md` (+ stub in `.claude\u002Fskills\u002Fsync-template\u002F`)\n\n### Removed files\n- `.agents\u002Fskills\u002Fcreate-task\u002F` *(template skill removed in v0.5.0)*\n- `.agents\u002Fskills\u002Flist-tasks\u002F` *(template skill removed in v0.5.0)*\n\n### Key changes\n- Local source folder support (see TEMPLATE_CHANGELOG.md for details)\n\n### Next steps\n- Review the changes with `git diff`\n- Commit when satisfied: `\u002Fcommit`\n```\n\n## Notes\n\n- **Never delete local files** unless they have `origin: template` in frontmatter AND are absent from upstream (and even then, always confirm with user first)\n- Local skills\u002Fagents without `origin: template` are project-custom — ignore them entirely during sync\n- When copying any skill or agent file from upstream, preserve the `origin: template` frontmatter field (it will already be there — don't strip it)\n- When copying a skill, keep the canonical file and its stub consistent: the stub's frontmatter must match the canonical frontmatter, followed only by `@..\u002F..\u002F..\u002F.agents\u002Fskills\u002F\u003Cname>\u002FSKILL.md`\n- **Never touch** `repos\u002Frepos.md`, `repos\u002F*\u002F`, `_plans\u002F*.plan.md` (user plans), `.claude\u002Fsettings*.json`, `.mcp.json`, `.codex\u002Fconfig.toml`\n- **Always preserve** project-specific content in mixed files — when in doubt, keep both\n- If the merge is ambiguous, show both versions to the user and ask which to keep\n- The changelog is your guide — read it before merging to understand intent, not just diffs\n",{"name":5,"origin":20,"description":7,"user-invocable":34},true,"main","d61a9b45ec87d3012948c2fe0577a97a792c2e09",".agents\u002Fskills\u002Fsync-template",1,"https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos","https:\u002F\u002Fgithub.com\u002Fraffertyuy","https:\u002F\u002Fwww.raffertyuy.com","2026-09-25 11:16:16",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":34},[45,48,51],{"tool":46,"command":47},"npx","npx skills add raffertyuy\u002Frepo-of-repos --skill sync-template",{"tool":49,"command":50},"bunx","bunx skills add raffertyuy\u002Frepo-of-repos --skill sync-template",{"tool":52,"command":53},"pnpm","pnpm dlx skills add raffertyuy\u002Frepo-of-repos --skill sync-template","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsync-template\u002FSKILL.md",[],[57,70,75,89,102,116],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":29},"01M6K2QCY5ZCT02PDH39458D0H","update-all-md-docs","Review and update all markdown docs in the repo-of-repos (excluding cloned repos)","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fupdate-all-md-docs\u002FSKILL.md",[],[64,65,66,67,68,22,69,20,25,26],"update all md docs","md docs","update","docs","review","markdown",{"skillNo":71,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":29},"01M6K2QB1HGT2Q0WHGWP4S0WZR","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsync-template\u002FSKILL.md",[],[21,20,19,22,23,24,25,26,27,28],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":29},"01M6K2Q8Z3CK5X4AHX50V4NX6B","remove-repository","Remove a repo or local folder from repos\u002F, updating repos.yaml, repos.md, and .gitignore","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fremove-repository\u002FSKILL.md",[],[82,83,84,85,26,86,87,22,88,20,25],"remove repository","remove","repository","folder","gitignore","local","yaml",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":29},"01M6K2Q5MMKJQP36K8J9XX4093","pull-all-repos","Clone\u002Fpull git repos, verify local folders, auto-register orphans, and regenerate repos.md","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpull-all-repos\u002FSKILL.md",[],[96,23,22,97,98,99,20,100,87,26,101],"pull all repos","register","git","verify","auto","clone",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":29},"01M6K2Q1XFJT1YC860YMNJV5D4","pr-all-repos","Create PRs in all sub-repos with uncommitted branches, then link them as siblings","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr-all-repos\u002FSKILL.md",[],[109,110,22,111,112,113,114,26,115,20],"pr all repos","pr","branches","as","link","with","create",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":29},"01M6K2PZR8RM2XRHCH3YJ07MVV","implement-plan","Execute a plan from _plans\u002F, implementing steps, checking off tasks, running tests, and documenting fixes","https:\u002F\u002Fgithub.com\u002Fraffertyuy\u002Frepo-of-repos\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplement-plan\u002FSKILL.md",[],[123,124,125,20,126,127,128,129,130,131,132,26],"implement","implement plan","plan","plans","tests","execute","running tests","tasks","fixes","implementing"]