port-agent-configlisted
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