cross-agent
БесплатноБез исполняемых скриптовНе проверенSet up cross-agent skill infrastructure so skills work across Claude Code, OpenAI Codex, and GitHub Copilot. Use for multi-agent compatibility, skill…
от drn★ 23 звезды на GitHubОб этом скилле
Cross-Agent Skill Setup
Migrate a repository's skills to the Agent Skills open standard so they work across Claude Code, Codex, and Copilot.
Arguments
$ARGUMENTS- Optional: path to target repo (defaults to current working directory)
Context
- Existing .agents/skills: !
find .agents/skills -maxdepth 2 -name SKILL.md 2>/dev/null | head -30 - Existing .claude/commands: !
find .claude/commands -maxdepth 1 -name "*.md" 2>/dev/null | head -30 - Existing .claude/skills: !
find .claude/skills -maxdepth 2 -name SKILL.md 2>/dev/null | head -30 - AGENTS.md exists: !
find . -maxdepth 1 -name AGENTS.md 2>/dev/null | head -1 - CLAUDE.md type: !
file CLAUDE.md 2>/dev/null | head -1 - claude.md (lowercase) exists: !
find . -maxdepth 1 -type f 2>/dev/null | grep '/claude\.md$' | head -1 - Copilot instructions: !
find .github -maxdepth 1 -name copilot-instructions.md 2>/dev/null | head -1 - Subtree CLAUDE.md files: !
find . -mindepth 2 -maxdepth 4 -name CLAUDE.md -not -path './.git/*' 2>/dev/null | head -20 - Subtree AGENTS.md files: !
find . -mindepth 2 -maxdepth 4 -name AGENTS.md -not -path './.git/*' 2>/dev/null | head -20 - Git root: !
git rev-parse --show-toplevel 2>/dev/null | head -1
Instructions
Step 0: Pre-flight
Verify this is a git repository. If not, stop and report.
If $ARGUMENTS contains a path, cd to it first.
Step 1: Discover Repo State
Scan for existing skills in all locations:
.agents/skills/*/SKILL.md(already canonical).claude/commands/*.md(Claude flat commands).claude/skills/*/SKILL.md(Claude directory skills) Also check for a lowercaseclaude.md— Claude Code requiresCLAUDE.md(uppercase) for discovery. Usecommand ls -1 | grep '^claude\.md$'to detect the wrong casing (a plaintest -fis unreliable on case-insensitive filesystems).
Classify the repo:
- GREENFIELD: No skills anywhere. Create infrastructure only.
- CLAUDE-ONLY: Skills in
.claude/but no.agents/skills/. Full migration needed. - PARTIAL:
.agents/skills/exists but missing infrastructure (no AGENTS.md, no Copilot instructions, no sync scripts). - COMPLETE:
.agents/skills/exists with all infrastructure. Run validation only.
Subtree scan (monorepos)
Also scan for subtree-level CLAUDE.md / AGENTS.md files (any depth ≥ 2 inside the repo, excluding .git). For each subtree directory, classify:
- CLAUDE-only — only
CLAUDE.mdexists →git mvtoAGENTS.mdand addCLAUDE.mdsymlink - AGENTS-only — only
AGENTS.mdexists → addCLAUDE.mdsymlink - Both, identical —
cmp -s CLAUDE.md AGENTS.mdreturns 0 → dropCLAUDE.md, replace with symlink - Both, divergent — content differs → merge required (see Step 7 validation rules)
- Symlink already —
CLAUDE.mdis a symlink toAGENTS.md→ skip
Treat subtrees as a first-class migration target, not an "out of scope" observation. The user expects cross-agent to migrate the entire monorepo in one pass.
Step 2: Present Migration Plan
Show the user:
## Cross-Agent Migration Plan
State: [GREENFIELD/CLAUDE-ONLY/PARTIAL/COMPLETE]
### Skills to migrate
| Source | Name | Destination |
|--------|------|-------------|
| .claude/commands/review.md | review | .agents/skills/review/SKILL.md |
| .claude/skills/pdf/ | pdf | .agents/skills/pdf/ |
### Infrastructure to create
- [ ] .agents/skills/ directory
- [ ] AGENTS.md (cross-agent contract)
- [ ] CLAUDE.md symlink to AGENTS.md
- [ ] .claude/skills symlink to .agents/skills
- [ ] .github/copilot-instructions.md
### Per-Subtree Migration (omit this section if no subtree CLAUDE.md / AGENTS.md found)
| Subtree | State | Action |
|---|---|---|
| `engine/` | CLAUDE-only | git mv CLAUDE.md AGENTS.md; symlink CLAUDE.md → AGENTS.md |
| `services/admin/` | Both, divergent | merge CLAUDE.md + AGENTS.md → AGENTS.md (verify both); symlink CLAUDE.md |
| `services/api/` | Both, identical | rm CLAUDE.md; symlink CLAUDE.md → AGENTS.md |
| `services/web/` | AGENTS-only | symlink CLAUDE.md → AGENTS.md |
Proceed? (waiting for confirmation)
Wait for confirmation before making changes. The subtree table must show the action per subtree, not a passive observation. The user should be able to approve subtree migration in one step alongside the root migration.
Step 3: Create Directory Structure
Create directories if they do not exist:
.agents/skills/
Step 4: Migrate Skills
From .claude/commands/<name>.md (flat commands)
For each file:
- Create
.agents/skills/<name>/directory - Read the source file
- If the file has YAML frontmatter (starts with
---):- Add
name: <name>after the opening---if not already present - Preserve all existing frontmatter fields
- Add
- If the file has no frontmatter:
- Add frontmatter with
name:anddescription:(derive description from the first heading or paragraph)
- Add frontmatter with
- Write to
.agents/skills/<name>/SKILL.md
Установить cross-agent в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cross-agent?
Set up cross-agent skill infrastructure so skills work across Claude Code, OpenAI Codex, and GitHub Copilot. Use for multi-agent compatibility, skill migration, cross-agent sync.
Как установить скилл cross-agent?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cross-agent запускает скрипты?
Нет, скилл состоит только из инструкций (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