Command Palette

Search for a command to run...

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

sync-agents

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

Synchronize GitHub Copilot instructions, custom agents, and skills into detected AI coding agent configurations in this repository. Use when asked to mirror…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Sync Agent Instructions, Agents, and Skills

Mirror all GitHub Copilot customizations — instructions, custom agents, and agent skills — into every detected AI coding agent configuration found in this repository.

This skill supports 12 agent ecosystems. Rather than creating files for every agent unconditionally, it detects which agents are already configured in the repo and syncs only those.

Source locations (Copilot / source of truth):

  • .github/copilot-instructions.md — global instructions
  • .github/instructions/*.instructions.md — path-scoped instructions
  • .github/agents/*.agent.md — custom agent profiles
  • .github/skills/<name>/SKILL.md — agent skills (open standard)

Your Task

Execute the following steps in order, creating or overwriting files as needed. Never delete .github/copilot-instructions.md or anything inside .github/.


Step 1 — Read the source of truth

Read .github/copilot-instructions.md and store its full content.

If the file does not exist, stop and tell the user:

"No .github/copilot-instructions.md found. Please create this file first — it is the source of truth for all AI agent instructions."

Also scan and store the contents of:

  • .github/instructions/ — any *.instructions.md files. For each, record the filename, applyTo frontmatter glob (if present), and body content.
  • .github/agents/ — any *.agent.md files. For each, record the full filename, the complete YAML frontmatter block (name, description, model, tools, handoffs, etc.), and the body prompt.
  • .github/skills/ — any subdirectory containing a SKILL.md file. For each skill, record the directory name, the complete SKILL.md frontmatter (name, description, user-invokable, disable-model-invocation, etc.), the body content, and note any additional bundled asset files (scripts, examples, references) present in that directory.

Step 2 — Detect active agents

Scan the repository root for the presence of the following files and directories. For each one found, mark that agent as active and include it in subsequent sync steps. Do not create directories or files for agents that are not already present.

Agent Detection Signal(s) Category
Claude Code CLAUDE.md at repo root or .claude/ directory Full sync
Gemini CLI GEMINI.md at repo root or .gemini/ directory Full sync
OpenAI Codex AGENTS.md at repo root or .agents/ directory Full sync
OpenCode .opencode/ directory or .opencode.json Full sync
Cursor .cursor/ directory or .cursorrules file Full sync
Windsurf .windsurf/ directory or .windsurfrules file Full sync
Cline .clinerules file or .clinerules/ directory Full sync
Roo Code .roo/ directory or .roorules file Full sync
Kilo Code .kilocode/ directory Full sync
JetBrains Junie .junie/ directory Full sync
Zed .rules file at repo root Instructions only
Augment Code .augment/ directory Full sync

If no agents are detected, tell the user:

"No agent configuration directories or files were detected in this repository. To enable syncing, initialize at least one agent's configuration (e.g., create a CLAUDE.md file, a .cursor/ directory, etc.) and re-run this command."

List the detected agents before proceeding:

🔍 Detected agents: <comma-separated list of detected agent names>
   Skipping (not detected): <comma-separated list of undetected agent names>

Step 3 — Sync instructions to detected agents

For each agent marked as active in Step 2, sync the global instructions and any path-scoped instructions using the agent-specific format described below.

Every synced file must include a sync header (as a comment appropriate to the format) indicating:

  • The file is auto-synced and should not be edited directly
  • The source of truth path (.github/copilot-instructions.md or the specific instructions file)
  • How to re-sync (/sync-agents)

3A — Claude Code

Global instructions → CLAUDE.md

Create or overwrite CLAUDE.md at the repo root:

<!--
  ╔══════════════════════════════════════════════════════════════╗
  ║  AUTO-SYNCED — DO NOT EDIT THIS FILE DIRECTLY               ║
  ║  Source of truth: .github/copilot-instructions.md           ║
  ║  To update: run /sync-agents
Полный SKILL.md на GitHub

Установить sync-agents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл sync-agents?

Synchronize GitHub Copilot instructions, custom agents, and skills into detected AI coding agent configurations in this repository. Use when asked to mirror .github/copilot-instructions.md, .github/instructions, .github/agents, or .github/skills into Claude, Codex, Cursor, Gemini, Windsurf, and related tooling.

Как установить скилл sync-agents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл sync-agents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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