/senate:invoke-agentfrom senate
Playbook for invoking non-interactive coding-agent CLIs (codex, gemini, cursor, kimi, claude, antigravity) as subprocesses. Use this skill inside a moderate-debate per-turn subagent, or when any skill needs to shell out to another AI CLI with a prompt and capture the reply — covers install checks, exact non-interactive invocation, input/output conventions, budget flags, and known per-CLI quirks.
Ships in senate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill is a reference library, not a flow. When you need to call another AI CLI, read the relevant file below for the exact command, flags, input conventions, output parsing rules, and known quirks.
Where this is read from: moderate-debate does not call CLIs from its own context. Each turn is dispatched into a fresh subagent (Agent / Task tool, isolated context) that loads the playbook for one CLI, runs the call, validates the contract, and returns a small structured result. See ../moderate-debate/SKILL.md § "Per-turn subagent" for the contract between moderator and subagent. If you find yourself reading these playbooks from a long-lived debate context, you are in the wrong place — dispatch a subagent.
| CLI | File | Typical use |
|---|---|---|
| codex | references/codex.md | OpenAI Codex CLI |
| gemini | references/gemini.md | Google Gemini CLI |
| cursor | references/cursor.md | Cursor Agent CLI (cursor-agent) |
| kimi | references/kimi.md | Moonshot Kimi CLI |
| claude | references/claude.md | Anthropic Claude Code CLI |
| antigravity | references/antigravity.md | Google Antigravity CLI (agy) |
Every CLI playbook follows the same schema so you can read them interchangeably:
{prompt}, {model}, {system}.-p / exec flag. Never spawn an interactive shell.codex exec - <<'PROMPT'
<prompt body>
PROMPT
.senate/runs/<id>/stages/<n>-<name>/turns/<NNN>-<cli>-<role>/{stdout,stderr}.log (the moderator mints this directory before dispatching the per-turn subagent; <NNN> is the monotonic turn number from transcript.jsonl). Always keep stdout.log, even if empty on a hard failure — the workspace contract uses it as the stable raw-output slot, and the moderator records its path on the transcript line. Delete stderr.log only when it ends up empty ([ -s "$TURN_DIR/stderr.log" ] || rm -f "$TURN_DIR/stderr.log").../moderate-debate/references/failures.md; retry only for that file's retryable cases (rate_limit, timeout, and the documented exit-0 empty-stdout unknown case), sharing the same single r1 retry budget as contract re-prompts.sed 's/\x1b\[[0-9;]*m//g' if the CLI emits color codes even when stdout is a pipe.../moderate-debate/references/budget.md (use GNU timeout when available, gtimeout on Homebrew/Coreutils macOS installs, otherwise the Perl fallback). Do not assume bare timeout exists on macOS.Copy one of the existing files as a template, fill in the six sections above, and add it to the table. No code changes needed anywhere else.
Per-CLI playbooks (load only the file matching the CLI you're about to invoke this turn):
references/codex.mdreferences/gemini.mdreferences/cursor.mdreferences/kimi.mdreferences/claude.mdreferences/antigravity.mdCross-cutting reference (load only on demand):
references/skill-authoring.md — Agent Skills spec & best practices. Load only when the prompt being sent to a CLI is asking it to author or revise an Agent Skill (otherwise it is dead weight in context).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub sebastianelvis/senate --plugin senate5 skills in this plugin
/debate-agendaPlans the agenda for a multi-agent debate — picks the format, picks the roster, sequences stages, resolves sub-debate composition, and asks the user for clarification when the request is ambiguous. Use this skill when the senate orchestrator needs an agenda before debating, when the user asks "which format should I use for X?" or "how should we structure this debate?", or when the user describes a multi-step decision (e.g., "draft an RFC, have it reviewed, then vote") that needs stages laid out./meeting-noteConsolidates a finished debate run into a single user-facing notes.md — reads the agenda, transcript, shared context, and per-stage verdicts (multi-stage), and writes the canonical user-facing summary that merges what was decided (verdict) with what happened (meeting notes). Use this skill when moderate-debate has finished a run and the user needs a clean summary of what happened, what was decided, and what to do next, or when the user asks for "the notes", "the summary", or "the verdict" of a past debate run./moderate-debateDrives a multi-agent debate from a planned agenda — builds prompts, dispatches each CLI turn into a standalone subagent, commits the shared transcript and context, handles budget/failure/checkpoint policy, and adapts the agenda mid-run when the situation diverges from the plan. Use this skill when senate has an `agenda.md` ready and needs the actual turns run, or when resuming a paused or stalled debate run./senateTop-level orchestrator for multi-agent debates between coding CLIs (codex, gemini, cursor, kimi, claude). Routes a request through three sub-skills — debate-agenda (plan), moderate-debate (run), meeting-note (consolidate) — and returns a single user-facing notes.md summary. Use this skill when the user wants a debate, second opinion, adversarial review, or cross-model agreement on a non-trivial question — even if they don't say "debate" — and especially when they say "debate", "parliament", "court", "peer-review", "red-team", "committee", "senate", "have X and Y argue", or "ask multiple models".