← ClaudeAtlas

port-agent-configlisted

Use when asked to port, migrate, or add equivalent agent instructions, skills, or custom sub-agents for a different coding tool than the one already configured — e.g. "add Cursor support from our CLAUDE.md", "we're switching from Cursor to Codex, port our rules", "make this work for Copilot too", "port our review subagent to Codex". Covers both agentharness-linked projects (use the real generators, don't hand-write) and plain projects with hand-authored config (port by hand, same principles).
andr-ca/agentharness · ★ 1 · AI & Automation · score 70
Install: claude install-skill andr-ca/agentharness
# Port Agent Config Move a project's agent instructions and skills to work with a different coding tool, without breaking what already works for the current one. Two situations, two procedures — check which one applies before doing anything. ## Step 0: which situation is this? Look for a **reachable agentharness checkout** with `tools/generate-*.sh` in it: - This repo itself (agentharness) — the scripts are right here. - A consumer project where `harness-link.sh init` ran: `readlink` a `.claude/skills/*` entry to find the harness's real path, or look for an `agentharness/` submodule, or a durable npm-mode copy. **Found one → Section A.** **Not found → Section B.** ## Section A — agentharness-linked: use the real generators Don't hand-write the target file. Each generator already reuses the exact same source (`CLAUDE.md` + the skill catalog), is CI-drift-checked against its committed output, and carries the correct caveats — reconstructing its shape by hand is strictly worse and will drift the next time `CLAUDE.md` changes. | Target tool | Generator | Produces | |---|---|---| | Codex CLI | `tools/generate-agents-md.sh --output AGENTS.md` | `AGENTS.md` | | Gemini CLI / Antigravity | `tools/generate-gemini-md.sh --output GEMINI.md` | `GEMINI.md` | | GitHub Copilot | `tools/generate-copilot-instructions.sh --output-dir .` | `.github/copilot-instructions.md` + `.github/instructions/*.instructions.md` | | Kilo Code | `tools/generate-kilo-rules.sh --output .kilo/rules/age