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★ 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.mdfound. 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.mdfiles. For each, record the filename,applyTofrontmatter glob (if present), and body content..github/agents/— any*.agent.mdfiles. 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 aSKILL.mdfile. For each skill, record the directory name, the completeSKILL.mdfrontmatter (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.mdfile, 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.mdor 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
Установить sync-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic