arena
Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.
- License 许可
- MIT
- 最近更新
- 2026-11-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- arena
- description
- Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.
03 SKILL.md 正文
Arena
Fan out N parallel attempts at the same task. Read every candidate end to end. Pick the strongest as the base. Graft the best ideas from the others into it. Verify the synthesized result.
Start
Open a todolist with one entry per phase before launching anything. The arena runs autonomously and the list keeps phases from silently disappearing.
- Frame
- Fan out
- Cross-judge
- Pick
- Graft
- Verify
Phase A: Frame
The N candidates will receive the same prompt, so the prompt is the contract. Get it right before spawning anything.
- State the artifact each candidate is producing.
- Derive the rubric. State what success looks like for this task, then turn it into 3-6 concrete gradeable criteria. Concrete:
Adds a --dry-run flag that skips writes. Vague:code is correct. The rubric is the picker's tool in Phase D; candidates only see the task. - Pick the runners. Use
arena runnersfrom~/.copilot/instructions/pstack-models.instructions.mdwhen present. Otherwise default to one each onclaude-opus-5@max,gpt-5.6-sol@max,grok-4.6@xhigh, andclaude-sonnet-5@high. Spawn more when the arena covers multiple design directions. Use the same pair N times when the work is generation-bound rather than judgment-sensitive. - Assign output paths. Each writing candidate gets its own local git worktree or branch. Put worktrees under the repository's parent directory or the active session workspace. N candidates writing to the same checkout is shared mutable state and fails the separate-before-serializing-shared-state principle skill test.
Phase B: Fan out
Read ../poteto-mode/references/task-contract.md. Issue all N independent task calls together. Writers use agent_type: general-purpose, their assigned worktree, and the configured pair split into model and reasoning_effort. Use the default sync mode; fan-out comes from issuing the calls together, not from background mode.
Each self-contained prompt includes the task, repository and worktree path, write boundary, shared grounding paths, acceptance checks, verification command, and instructions to produce both the artifact and a short rationale. Wait for every result before cross-judging.
The rationale is mandatory. Without it, the parent cannot tell whether a candidate's structure is principled or accidental, which makes Phase E grafting unreliable. Each rationale names the alternatives the candidate considered and what it rejected.
If a candidate fails to produce output, proceed with N-1 and note the dropout in the synthesis record.
Phase C: Cross-judge
After all Phase B candidates complete, choose one pair from the arena cross-judge pool in ~/.copilot/instructions/pstack-models.instructions.md when present. Otherwise choose from claude-opus-5@max, gpt-5.6-sol@max, grok-4.6@xhigh, and claude-sonnet-5@high. Prefer a different model family from the parent's.
Spawn one judge with agent_type: general-purpose and an explicit no-writes constraint. Its self-contained prompt includes the rubric, every candidate path and label, and the required scoring format. mode: background is allowed here only because the parent immediately reads every completed candidate in Phase D. Wait for the judge before picking the base. Never start the judge while candidates are still writing.
Phase D: Pick a base
Read every candidate end to end before picking. Skimming N candidates surfaces only the candidate whose surface looks most familiar.
Score each candidate against the rubric criterion by criterion, not on holistic feel. Compare against the cross-judge. Agreement on the base confirms the pick. Disagreement means one of you is biased or the rubric was ambiguous. Read both rationales before deciding.
Pick the base on which candidate a future maintainer can extend most easily without breaking invariants. Prefer the cleaner boundary or smaller surface area when two feel tied, per the Laziness Protocol.
Record the pick and the reason in a short synthesis note alongside the base artifact, including the cross-judge's verdict.
Phase E: Graft
Walk each losing candidate once more and identify what is worth porting into the base. The signal is usually one or two things per candidate, not most of it.
Fold each graft in by hand, per the redesign-from-first-principles principle skill. Don't paste mechanically. The result has to remain coherent under one mental model.
Record what was grafted, from which candidate, and what was rejected and why. The rejection notes are the highest-signal part of the record. Future readers learn from what you considered and dropped, not just what you kept.
When N candidates converge on the same shape, that is a strong agreement signal. Note the convergence in the record and ship the consensus shape. No graft is needed. When N candidates wildly diverge, Phase A was under-specified. Reframe and re-run rather than averaging the divergence.
Phase F: Verify
The synthesized artifact has to hold up under the same scrutiny as any other output, per the prove-it-works principle skill. The arena does not earn you a pass.
If verification surfaces a problem the arena did not catch, either Phase A was wrong (re-frame and re-run) or one candidate caught it and you missed the graft (go back to Phase E). Don't paper over.
Outputs
One synthesized artifact. One short synthesis note alongside, naming the base, the grafts (with source candidate), the rejections, the dropouts if any, and the verification result.
04 同仓库更多 Skills
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
unslop
Cut AI tells from any writing. Must always apply.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
technical-writing
Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.
teach
Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.
tdd
Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.