Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

sync-template

БесплатноБез исполняемых скриптовНе проверен

Pull latest repo-of-repos template updates into this workspace

raffertyuyот 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, branch main)
  • /sync-template <github-org/repo> — use a custom upstream fork
  • /sync-template --branch <branch> — use a specific branch

Order of Operations

  1. Check versions — compare local vs upstream
  2. Fetch upstream — clone template to a temp directory
  3. Read changelog — understand what changed and why
  4. Copy safe files — framework files that have no project-specific content
  5. Smart-merge mixed files — files with both template and project content
  6. Update version — write the new TEMPLATE_VERSION
  7. Report — summarize what changed

Step 1: Check Versions

  1. Read the local TEMPLATE_VERSION file at the project root. If it doesn't exist, assume 0.0.0 (pre-versioned workspace).
  2. Fetch only the upstream TEMPLATE_VERSION file:
    gh api repos/<upstream>/contents/TEMPLATE_VERSION --jq '.content' | base64 -d
    
  3. Compare versions. If already up to date, inform the user and stop.
  4. 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., .gitignore strategy 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:

  1. Scan local .agents/skills/*/SKILL.md and .claude/agents/*.md for files that have origin: template in their frontmatter
  2. For each such file, check if the corresponding path exists in the upstream clone
  3. If a local origin: template file is NOT present in upstream → it was intentionally removed from the template
  4. 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]
    
  5. 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
  6. Local skills/agents without origin: template are 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:

  1. Read the upstream version (from temp clone)
  2. Read the local version (from workspace)
  3. Read the relevant changelog entries for context on what changed and why
  4. 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

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить sync-template с