castmate
БесплатноЗапускает вложенные скриптыНе проверенWhen you want to pull in the right AI model for the right job: hand a task to another agent CLI (Codex, Claude, Gemini, Grok, Amp, OpenCode, Cursor, Kiro…
от coreyhaines31★ 965 звёзд на GitHubОб этом скилле
/castmate — the right model for the right job
You are the host agent. Castmates are other AI coding CLIs installed on this machine. A small script, scripts/castmate.py in this skill's folder, runs them. You decide who gets cast, write the prompt, read what comes back, and tell the user what it means.
Adapted from counselors by Aaron Francis (MIT). Discovery, prompt writing, and synthesis moved from code into this workflow, and the model list moved into config so it doesn't go stale.
python3 <skill-dir>/scripts/castmate.py list # castmates, groups, install + read-only status
python3 <skill-dir>/scripts/castmate.py test codex fable # each must reply "OK"
python3 <skill-dir>/scripts/castmate.py run -c codex-sol-high,fable-high -f prompt.md --json
<skill-dir> is this skill's install folder. In Claude Code it is the skill's base directory.
First run
Before the first cast in a session, run castmate.py test on the castmates you plan to use. It takes 5–15 seconds. list only shows that a CLI is installed, not that it's logged in or that the account has the model. If nothing is installed, or a test fails, set the user up first. references/cli-setup.md is the setup guide. Walk through it rather than reciting it:
- Ask which agent CLIs they already use. One logged-in CLI is enough to start. Suggest Codex if they have none: it's the only one that confines
--writeto--cwd. - Give the install and login commands for their pick. Login is interactive, so the user runs it in their own terminal (in Claude Code they can type
! codex loginin the prompt). Then restart the agent if PATH or the shell profile changed. - Run
castmate.py test <castmate>. Usegemini-flashfor a first Gemini check, since not every key hasgemini-argon. On failure, relay thehint:line it prints and the matching guide section. - Never ask the user to paste an API key into chat. For Gemini CLI, have them put
GEMINI_API_KEYin their shell profile and restart the agent, or enter it ingeminidirectly. If they already tried Google sign-in, the key alone won't work until the savedoauth-personalauth type is switched. Use the one-liner in the guide's Gemini step 2. If a key does get pasted, say so, tell them to rotate it, and point to the guide's rotation steps.
Mention the gotchas that apply before they hit them. Gemini CLI no longer accepts Google sign-in on personal accounts. Antigravity's installer edits shell profiles, and its read-only mode is best-effort.
Config (user state, outside the install folder)
CONFIG=${MAKERSKILLS_CONFIG:-$HOME/.config/makerskills}/castmate
$CONFIG/config.jsonuses the same shape asreferences/tools.jsonand is merged on top of it. Add a castmate alias, a group, or a new CLI adapter here.$CONFIG/casting.local.mdholds the user's own "use X for Y" rules. Read it beforereferences/casting.md.$CONFIG/runs/is the default output folder, one subfolder per run.
A new model needs no config at all. -c codex:gpt-5.7@high or -c claude:some-new-model passes the model ID straight to the CLI. Offer to save an alias in config.json once it proves useful:
{"castmates": {"sol7": {"tool": "codex", "model": "gpt-5.7", "effort": "high", "note": "GPT-5.7, high"}},
"groups": {"review": ["fable-high", "sol7"]}}
Step 1 — Pick the mode
| Mode | Castmates | Access | Use when |
|---|---|---|---|
| Delegate | 1 | read-only answer, or --write |
A job to hand off: "have codex write the migration," "get haiku to summarize these logs" |
| Fan-out | 2–4 | read-only | Independent second opinions on a plan, diff, or decision |
| Rounds | 2–4, 2–4 rounds | read-only | Broad hunts (bugs, security, performance) where later rounds build on earlier ones |
If the request is vague, default to fan-out with two castmates. A named castmate plus a task ("ask codex to…") means delegate.
Step 2 — Cast
- Run
castmate.py list. Show the user the castmates that matter for this job, not the whole table. - Read
$CONFIG/casting.local.md(if present), thenreferences/casting.md. Recommend a cast with a one-line reason for each. - Flag
unverifiedadapters andbest-effortread-only levels before dispatching. If an adapter has never been tested here, runcastmate.py test <name>first.enforcedmeans the CLI's own sandbox or permission settings stop file writes, shell commands, MCP tools, and repo-level config such as hooks. Claude, Codex, and Gemini have been tested against a repo that plants hooks and MCP servers.best-effortmeans the castmate is asked to stay read-only, but repo or user config can still give it more access. Don't castbest-effortcastmates on code the user didn't write (a cloned repo, a contributor's PR) without saying so first.
- Confirm the exact list before dispatch: "Casting: codex-sol-high, fable-high,
Установить castmate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл castmate?
When you want to pull in the right AI model for the right job: hand a task to another agent CLI (Codex, Claude, Gemini, Grok, Amp, OpenCode, Cursor, Kiro, Antigravity), or send one prompt to several at once for independent opinions, then synthesize. Delegate mode gives one castmate the job, optionally with write access ('have codex write the migration'). Fan-out mode runs read-only reviews in parallel. Rounds mode lets castmates build on and challenge each other's findings. Calls the official CLIs you already have installed and logged in (Gemini CLI needs an API key on personal accounts); no MCP. Triggers on '/castmate,' 'ask codex,' 'have gemini do this,' 'get a second opinion,' 'what would other models say,' 'fan this out,' 'cross-check this with another model,' 'delegate this to codex.' Advisor personas for founder questions go to maker-council. Personal models, casting rules, and run outputs live in ~/.config/makerskills/castmate/.
Как установить скилл castmate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл castmate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic