AGENT SKILL

booster-command

Run Claude Booster command protocols in Codex. Use when Dmitry invokes or asks to install/run Booster commands such as start, handover, fable, autopilot, consilium, audit, code-review, architecture, go, debt, phase, update, delegate, lead, agent-status, gantt, loop, verify-flow, verify-after-edit, audit-trace, or hackathon.

License 许可
MIT
最近更新
2026-09-16
Stars
★ 0
Forks
0

01 前言 Front Matter

name
booster-command
description
Run Claude Booster command protocols in Codex. Use when Dmitry invokes or asks to install/run Booster commands such as start, handover, fable, autopilot, consilium, audit, code-review, architecture, go, debt, phase, update, delegate, lead, agent-status, gantt, loop, verify-flow, verify-after-edit, audit-trace, or hackathon.

03 SKILL.md 正文

Booster Command Runner

This skill is the Codex compatibility layer for Claude Booster command specs.

Use it when the user invokes a Booster command by name, for example:

  • start
  • handover
  • fable <question> or natural-language "посоветуйся с Fable 5"
  • autopilot on <North Star>, autopilot status, or autopilot off
  • consilium <topic>
  • audit <topic>
  • code-review [model] [topic] [--model <model>] [--scope <path>] [--apply]
  • architecture [--update]
  • go [fable] <artifact contract>
  • debt <mode>
  • $agent-status (or legacy /prompts:agent-status)
  • gantt [detail] via $gantt (or legacy /prompts:gantt)
  • $loop INTERVAL --thread UUID, $loop status, or $loop stop (or legacy /prompts:loop)
  • $consilium <topic> or /prompts:consilium <topic>

Source Of Truth

Load the original command spec before executing. Resolve <command> from the alias skill name, prompt name, or the first argument after $booster-command.

Search in this order:

  1. ~/.claude/commands/<command>.md
  2. references/commands/<command>.md relative to this installed skill
  3. <repo-root>/templates/commands/<command>.md
  4. <repo-root>/.claude/commands/<command>.md

If the command spec is missing, say which paths were checked and stop.

Codex Adapters

Execute the command behavior, not the literal Claude Code tool names.

  • Read / Grep / Glob / Bash mean Codex file reads, rg, and shell tools.

  • EnterPlanMode / ExitPlanMode mean use Codex planning behavior or update_plan.

  • TaskCreate / TaskUpdate mean use update_plan and concise progress updates.

  • Claude Agent / Explore / general-purpose means Codex subagents when the command explicitly asks for independent agents. The command invocation itself is explicit permission to use those subagents. Evidence is the spawned agent ids or names plus their final messages. If no Codex subagent tool is available, state that full independent-agent parity is unavailable and run only a local second pass; do not label that fallback as a full Booster multi-agent result.

  • Pass the selected route's reasoning_effort explicitly: Luna uses low; Terra, Sol, and Astra use medium by default. high requires evidence that a medium attempt failed for lack of reasoning depth; never select xhigh automatically.

  • Exact local Codex route invariant. For every local Codex CLI delegation, invoke the routed worker below. It obtains model_balancer.py get CATEGORY, validates non-empty string provider, model, and reasoning_effort, rejects caller -m / --model and config model overrides, and forwards the exact returned model and reasoning_effort only when the provider is codex-cli. It sets CLAUDE_BOOSTER_ROUTE_SOURCE=balancer, CLAUDE_BOOSTER_TASK_CATEGORY=CATEGORY, and CODEX_REASONING_EFFORT for the child. Do not invent, normalize, shorten, or substitute model identifiers: in particular, gpt-5.6 is a family alias, never a model pin. Preserve the command's required read-only sandbox for read-only delegation.

    ~/.claude/scripts/codex_routed_worker.py CATEGORY --ephemeral --sandbox read-only < "$PROMPT_FILE"
    

    If lookup is unavailable, malformed, or nonzero, the worker emits one sanitized degraded routing diagnostic and invokes CODEX_BIN exec with no explicit model pin; it never guesses a model. A valid non-Codex provider route fails loud without launching local Codex.

  • Claude model names (haiku, sonnet, opus) are guidance only. Use Codex's available subagent defaults unless a model can be pinned safely.

  • PAL/GPT external review: PAL is runtime-available only when its tool call returns a usable opinion. Tool registration alone is insufficient. Treat 429 insufficient_quota, 401, 403, any 5xx, timeout, connection-closed, empty/error-only output, or tool exception as runtime unavailable; preserve sanitized evidence and continue Z.ai → Grok → Codex native second opinion. A successful PAL response remains primary. Use the Z.ai third-model runner when ZAI_API_KEY is present: printf '%s\n' '<review prompt>' | ZAI_API_KEY="$ZAI_API_KEY" ~/.claude/scripts/zai_cli.py review --budget 5. Label it exactly as "GLM-5.3 via Z.ai". A missing credential, non-zero exit, timeout, tool exception, or unusable response advances to Grok. Grok is available only when ~/.claude/scripts/grok_cli.py status exits 0 (127 = binary missing, 69 = not authenticated); that probe is the ONLY accepted availability test — never infer availability from env vars such as XAI_API_KEY. Then run: printf '%s\n' '<review prompt>' | ~/.claude/scripts/grok_cli.py review --model grok-4.6 --budget-turns 8. --budget-turns 8 is the default for diff-only reviews; for repo-reading audits (prompts that ask Grok to read files) use --budget-turns 24, and failure_type=max_turns in the failure log means the budget was too small, not that Grok is unavailable — retry once with a larger budget before labeling DEGRADED. Label it exactly as "Grok-4.6 via xAI". If PAL, Z.ai, and Grok are unavailable, spawn a separate Codex review subagent when subagents are available and label it clearly as "Codex second opinion", not as PAL/GPT or Z.ai, and mark it degraded_external_independence because it is same-provider. If none are available, mark the external-review step as unavailable with sanitized missing-tool/runtime evidence; never treat an error payload as an opinion. Any DEGRADED external-review label MUST name the concrete failure class per channel, e.g. PAL: 429 credit_balance_exhausted, Z.ai: 429 1113 insufficient_balance, Grok: grok_cli.py status exit 69 (not authenticated).

  • Runner rule. Categories the balancer routes to a non-Codex provider (audit_secondary, audit_tertiary, and hackathon_external when the route is grok-cli or zai-cli) MUST be executed with ~/.claude/scripts/grok_cli.py review or ~/.claude/scripts/zai_cli.py review, never with codex_routed_worker.py. A codex_routed_worker.py exit 65 means "wrong runner", NOT "provider unavailable" — do not record it as a degraded external channel. codex_routed_worker.py accepts only balancer categories: audit and code-review are not categories; use audit_external, audit_secondary, audit_tertiary, or medium.

  • Claude session JSONL paths under ~/.claude/projects/... become the newest relevant Codex session JSONL under ~/.codex/sessions/... when preparing a Codex handover. If a Claude session is relevant, mention both.

  • Claude hooks are not assumed to be active in Codex. Preserve the evidence discipline in assistant output even when no hook enforces it.

  • Fable usage visibility is shared across Claude CLI and Codex CLI via python3 ~/.claude/scripts/fable_usage.py. After $fable or code-review fable, run python3 ~/.claude/scripts/fable_usage.py refresh-display and include its output if non-empty. This refreshes the current UTC month from Claude/Codex transcript stores before printing. The wording is intentionally API-equivalent / credit-rate estimate language, not an actual billing ledger.

  • Fable autopilot parity is executable, not prose-only: preserve project-bound state scope and use the trusted fable_autopilot.py consult-decision runner for decisions and trusted checkpoint plan_complete|first_slice|final_diff runners. Only those runners invoke and bind fable_consult.sh output; no caller-supplied receipt may assert Fable provenance. They validate typed ON_COURSE|REFOCUS|REPLAN|ASK_USER verdicts and /go fable watchlist reconciliation. Codex must not fall back to ambient HOME autopilot state.

  • Autopilot activation is also goal activation on Codex. For on <North Star>, call get_goal first; retain a matching unfinished goal, or call create_goal without token_budget when none exists. Never replace an unrelated unfinished goal: surface the conflict. status and off do not create goals. A successful activation must immediately start the first autonomous North-Star step in the same turn, not end at setup confirmation.

  • Autopilot slice instrumentation is advisory. After its first artifact contract, prospectively call slice_calibration.py bootstrap (which records session-start), then use paired controls around installed slice_ledger.py acquire and slice_git.py capture. Session-start failure aborts managed slice work before acquire; control-end means success only, while failure records typed control-na --reason operation_failed. Bind verification/terminal/domain events only at real wrapper lifecycle points; unsupported native Codex is typed UNKNOWN, never backfill. Bootstrap prefers an explicit transcript and otherwise accepts only a unique top-level CODEX_THREAD_ID match in the documented Codex session store; subagent IDs are rejected. Its machine output contains only hashes, run ID, and a protected project-relative binding reference. Root identity is leading session_meta.payload.session_id, while payload.id is the possibly distinct thread identity. Validate the root join and persist hashes only. Parse only bootstrap's result.binding_path with a JSON parser (never shell evaluation), then pass it as --binding to telemetry status/record and calibration labels-template/record. These consumers securely derive and revalidate raw routing identities internally; never print or hand-copy them. Status reads only cached slice_telemetry.py status evidence and must say Claude hooks/wrappers advisory; native Codex observational/no enforcement; it never scans transcript stores. Directional autopilot state remains separate, and off neither deletes slice history nor fabricates closure.

Cross-provider stages (SHIP-1..4 in go and hackathon)

The go pipeline (Phase 1B Challenge, Phase 1C Prototype Gate, Phase 2 Verifier, Phase 3B Diff-review) and the hackathon evidence harvest require each verifying/reviewing role to run on a different provider than the Worker when that provider channel exists. The spec is written from the Claude-CLI viewpoint, where the native model is Claude and "the other provider" is Codex (codex_sandbox_worker.sh / codex_worker.sh). On Codex CLI the roles mirror — translate, do not execute literally:

  • The native orchestrator follows the active GPT-5.6 route, so "the other provider" is Claude; reach it via a Claude subagent/CLI channel if one is available.
  • The invariant that matters is Worker and Verifier/Challenger/Reviewer run on DIFFERENT providers — not which provider is native. Read the spec's WP=codex-cli → Verifier=Opus / WP=anthropic → Verifier=codex tables as "Worker on the native model → the other role on the other provider," and vice versa.
  • The Prototype Gate is evidence-first, read-only executable proof, not coding. Every non-trivial behavioral, data, runtime, external-system, incident-driven, or critical-component gate requires a Prototyper notebook before spawning Worker. The notebook is the investigation journal, not a synthetic test stand: every evidence-bearing cell records the direct authorized read-only command/query, source identity and environment, ISO timestamp or observation window, filters, counts/samples, expected versus actual, invariant result, candidate binding, and a raw-output reference. The notebook is durable only under notebooks/ or reports/prototypes/, never tempdir; large output is a repo-relative artifact with SHA-256. Notebook-only claims are not sufficient handoff evidence, but a paired probe script is not required; direct command output is enough. Notebook N/A is permitted only when the entire Prototype Gate is explicitly N/A for a pure docs/format/static-config task with no executable data/runtime hypothesis and a concrete reason.
  • If ZAI_API_KEY is present, GLM-5.3 via ~/.claude/scripts/zai_cli.py is a third-model read-only channel for Challenge, external audit, edge-harvest, and diff-review. It does not replace the exit-code Judge/Verifier unless a future audited command explicitly makes it write-capable.
  • If ~/.claude/scripts/grok_cli.py status exits 0 (127 = binary missing, 69 = not authenticated; never infer from XAI_API_KEY), Grok via ~/.claude/scripts/grok_cli.py is a fourth-model read-only review channel, and ~/.claude/scripts/grok_sandbox_worker.sh is a write-capable code-worker channel that must run in an isolated worktree and return a diff.
  • If the other-provider, Z.ai, or Grok channel is unavailable on this CLI, apply the spec's documented DEGRADATION: run a same-provider second pass and label the result cross-provider: DEGRADED (<reason>). NEVER claim cross-provider when it degraded. It is a quality optimization, not a safety gate — do not wedge the pipeline over it.
  • phase.py, model_balancer.py, and kpi_rework.py (the go Phase 4 KPI record/report) are plain python3 ~/.claude/scripts/<name>.py ... and run identically on both CLIs — invoke them verbatim, including the auto-record at the end of every go run.

Execution Rules

Business outcome comes first: define observable acceptance and domain invariants, deliver coherent reversible slices, and reuse current evidence with compact relevant context. Stop when acceptance passes and material risks are covered; reopen affected checks only for a new change, failure, or concrete unresolved material risk. Avoid repeated broad audits and microdelegation. Apply core.md proportionality precedence: reversible prompt/docs edits preserving safety controls need targeted existing checks plus one focused review, regardless of file count. Explicit full command contracts and production/data/auth/financial/incident controls remain binding.

  • Pre-Work Context Gate: before any command step that can lead to a code/config edit, deploy, migration, or coding subagent/worker spawn, build and state a Context Receipt:
    • Read ARCHITECTURE.md and docs/dep_manifest.json if they exist; extract touched components, critical flags, callers, feeds, and downstream consumers.
    • Run rolling memory start context for the project via MCP memory_start_context(scope=<repo root>) or python ~/.claude/scripts/rolling_memory.py start-context --scope "$(git rev-parse --show-toplevel 2>/dev/null || pwd)". If it lists === INCIDENT REGISTER === or === INCIDENT WARNINGS ===, read every incident source before planning and carry forward the production impact, trigger, mitigation, recurrence guard, and "do not repeat" constraints.
    • Read the latest handover ## Summary, ## Required reading, and ## First step sections when the command is starting a work session or continuing a prior thread; read every existing Required reading file before editing.
    • Cross-check architecture and memory claims against current code with rg or file reads before using them as facts.
    • Inject the relevant receipt lines into any subagent/worker prompt; subagents do not inherit the Lead's conversation memory automatically.
  • Spawn Check: immediately before delegation, classify every brief claim as direct evidence, inference, or assumption; preserve units, versions, and source paths; name callers, consumers, and integration boundaries; state the falsifier; and check whether all delegates share one unverified premise.
  • Give each role its own contract. A Worker implements the scoped artifact and is not called Lead. A Verifier is independent, actively seeks FAIL, and validates primary evidence and integration boundaries with direct read-only probes rather than confirming the Worker or creating a synthetic test stand. During implementation iterations it must not create or rewrite acceptance suites, tests, fixtures, mocks, synthetic datasets, verification stands, or harnesses. Once direct probes pass and the candidate is stable, the final deploy gate may create or update durable regression tests and then run the full existing suite; those tests preserve proven behavior and never replace the direct evidence. Evidence Receipt rows bind each PASS to artifact/tree-diff SHA-256 plus applicable process/build/deployment/version identity, classify the operation against the fail-closed read-only allowlist, and retain bounded raw output or a durable repo-relative SHA-256 reference. The final gate freezes the regression manifest and named test-file hashes before its first full-suite run.
  • Always perform RECON against current code/config before reports or opinions.
  • For consilium, audit, and architecture, build a Verified Facts Brief before spawning subagents.
  • For go, the Artifact Contract is incomplete unless it contains both Architecture Context:, Incident Warnings:, and Regression Loop Guard: fields. Architecture Context: and Incident Warnings: are populated from the Context Receipt; Regression Loop Guard: is populated from a fresh file-scoped preservation analysis and must name edited files, touched surfaces, consumers checked, relevant git/incident history, behaviors that must not regress, and the verification target. For broker/data/DB/financial/migration/ non-trivial behavioral/data/runtime/external-system/incident/critical-component work, the /go run must also produce a Prototype Handoff and mandatory investigation notebook before Worker: source-of-truth inputs, current-system comparison, first divergence, counts/samples, invariants proven, Worker facts, and direct-probe requirements for the Verifier. The final deploy gate alone may add durable regression assertions.
  • Save generated reports to the same repo paths the original command specifies, usually reports/.
  • Do not invent top-level Codex slash commands. If bare /consilium is intercepted by the UI, use /prompts:consilium or $consilium.
  • Keep outputs concise but include concrete evidence for verification steps.

04 同仓库更多 Skills