Command Palette

Search for a command to run...

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

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от 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:

  1. .agents/skills/*/SKILL.md (already canonical)
  2. .claude/commands/*.md (Claude flat commands)
  3. .claude/skills/*/SKILL.md (Claude directory skills) Also check for a lowercase claude.md — Claude Code requires CLAUDE.md (uppercase) for discovery. Use command ls -1 | grep '^claude\.md$' to detect the wrong casing (a plain test -f is 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.md exists → git mv to AGENTS.md and add CLAUDE.md symlink
  • AGENTS-only — only AGENTS.md exists → add CLAUDE.md symlink
  • Both, identical — cmp -s CLAUDE.md AGENTS.md returns 0 → drop CLAUDE.md, replace with symlink
  • Both, divergent — content differs → merge required (see Step 7 validation rules)
  • Symlink already — CLAUDE.md is a symlink to AGENTS.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:

  1. Create .agents/skills/<name>/ directory
  2. Read the source file
  3. If the file has YAML frontmatter (starts with ---):
    • Add name: <name> after the opening --- if not already present
    • Preserve all existing frontmatter fields
  4. If the file has no frontmatter:
    • Add frontmatter with name: and description: (derive description from the first heading or paragraph)
  5. Write to .agents/skills/<name>/SKILL.md

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

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

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

Сравнить cross-agent с