sync-template
БесплатноБез исполняемых скриптовНе проверенPull latest repo-of-repos template updates into this workspace
от raffertyuy★ 19 звёзд на GitHubОб этом скилле
Sync Template
Pull the latest repo-of-repos template changes into this workspace without overwriting project-specific content.
Overview
This workspace was created from the repo-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.
Arguments
The user may optionally specify:
/sync-template— use default upstream (raffertyuy/repo-of-repos, branchmain)/sync-template <github-org/repo>— use a custom upstream fork/sync-template --branch <branch>— use a specific branch
Order of Operations
- Check versions — compare local vs upstream
- Fetch upstream — clone template to a temp directory
- Read changelog — understand what changed and why
- Copy safe files — framework files that have no project-specific content
- Smart-merge mixed files — files with both template and project content
- Update version — write the new
TEMPLATE_VERSION - Report — summarize what changed
Step 1: Check Versions
- Read the local
TEMPLATE_VERSIONfile at the project root. If it doesn't exist, assume0.0.0(pre-versioned workspace). - Fetch only the upstream
TEMPLATE_VERSIONfile:gh api repos/<upstream>/contents/TEMPLATE_VERSION --jq '.content' | base64 -d - Compare versions. If already up to date, inform the user and stop.
- If the upstream is newer, continue.
Step 2: Fetch Upstream
Clone the upstream template to a temporary directory:
git clone --depth 1 --branch <branch> https://github.com/<upstream>.git /tmp/repo-of-repos-upstream
Clean up this directory when done (in the final step).
Step 3: Read Changelog
Read TEMPLATE_CHANGELOG.md from the upstream clone. Identify all versions between the local version and the upstream version. This tells you:
- What files changed and why
- Migration notes — special handling needed (e.g.,
.gitignorestrategy change) - New files that need to be created locally
Present a summary to the user before proceeding: which versions will be applied and what the key changes are.
Step 4: Copy Safe Files
These are framework files with no project-specific content. Copy them directly from the upstream clone, overwriting local versions:
| Path | What |
|---|---|
.agents/skills/*/SKILL.md |
All skill definitions (canonical) |
.claude/skills/*/SKILL.md |
Skill stubs (frontmatter + @ pointer to canonical) |
.claude/agents/*.md |
Agent definitions (read by Claude Code and Copilot) |
.claude/prompt-snippets/*.md |
Shared prompt snippets |
.claude/rules/*.md |
Auto-applied rules (read by Claude Code and VS Code Copilot) |
CLAUDE.md |
One-line @AGENTS.md pointer (template-owned, copy as-is) |
_plans/README.md |
Plan system docs |
docs/*.md |
Reference documentation |
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).
Removed template files: Some skills or agents may have been removed from the template (e.g., /create-task and /list-tasks were removed in v0.5.0). To detect these:
- Scan local
.agents/skills/*/SKILL.mdand.claude/agents/*.mdfor files that haveorigin: templatein their frontmatter - For each such file, check if the corresponding path exists in the upstream clone
- If a local
origin: templatefile is NOT present in upstream → it was intentionally removed from the template - Show the user a list of these orphaned template files and ask for confirmation before deleting:
The following template-owned skills/agents no longer exist in the upstream template: - .agents/skills/create-task/SKILL.md - .agents/skills/list-tasks/SKILL.md Delete these? [y/N] - 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/skills/<name>/directory AND its stub.claude/skills/<name>/directory - Local skills/agents without
origin: templateare project-custom — never touch them
Step 5: Smart-Merge Mixed Files
These files contain both template content and project-specific content. You (the agent) are the merge tool. For each file:
- Read the upstream version (from temp clone)
- Read the local version (from workspace)
- Read the relevant changelog entries for context on what changed and why
- Intelligently merge — apply the template updates while preserving project-specific content
AGENTS.md
AGENTS.md (the canonical instruction file — CLAUDE.md is just a one-line @AGENTS.md pointer) is the most complex merge target. Live projects c
Установить sync-template в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл sync-template?
Pull latest repo-of-repos template updates into this workspace
Как установить скилл sync-template?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sync-template запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic