arena
它能做什么
让智能体为同一任务生成多个候选方案,对它们进行评判,并组合其中最好的部分。适合面临困难设计或构建决策的开发者。
适用场景
- ✓当某个非简单产物的一次尝试可能锁定错误结构的时候。
- ✓当你希望在选择之前比较相互竞争的方案的时候。
- ✓当你要求把某件事放进竞技场,或尝试多个版本的时候。
技能链接
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/arena/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这份迁移计划放进竞技场,并把最强的想法合并成一个最终版本。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为所有候选方案编写一个共享的提示词和评分标准,在不同模型上并行运行多个候选,让它们互相评判,选出基础方案,嫁接最好的部分,然后进行验证。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Arena
In Claude Code, read the Claude Code adapter once per session before you follow this skill. It maps the Cursor names in pstack skills to Claude Code.
Open a todolist with one entry per phase (Frame, Fan out, Cross-judge, Pick, Graft, Verify) before launching anything.
Phase A: Frame
Every candidate gets the same prompt, so the prompt is the contract.
- State the artifact each candidate is producing.
- Derive the rubric, 3-6 concrete gradeable criteria for what success looks like on this task. It is the picker's tool in Phase D. Candidates only see the task.
- Pick the runners. Use the
arena runnersline in~/.cursor/rules/pstack-models.mdc. If the rule or that line is missing, default to one each onclaude-opus-5-5-xhighandgrok-4.7-xhigh-fast. Anautoorinherit-parententry in this line means the parent model, so omitmodelfor it. If the Task tool rejects a configured entry, run that seat on its family's default and say so. Families go by prefix:claude-*, andgrok-*withcursor-grok-*andcomposer-*. A refusedcomposer-*entry runs ongrok-4.7-xhigh-fast. If the family has no default, or the Task tool rejects that default, use the closest valid slug of the same family from its error message, or drop the seat and say so when there is none. If dropped seats leave fewer than two runners, add runners until there are two, or one when the line has one entry. Run each added runner on a remaining runner's model, or omitmodelso it runs on the parent model when none remain, and say so. Spawn more runners when the arena covers multiple design directions. Use the same model N times when the work is generation-bound rather than judgment-sensitive. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the poteto-mode skill. - Give each candidate its own output location (a git worktree where possible, otherwise
/tmp/arena-<slug>/candidate-<n>/), per the separate-before-serializing-shared-state principle skill.
Phase B: Fan out
Spawn all N subagents in one message with run_in_background: true, each with the task, the path to the shared grounding, its own output path, and instructions to produce the artifact and a short rationale naming the alternatives it considered and what it rejected.
If a candidate produces no output, proceed with N-1 and note the dropout.
Phase C: Cross-judge
After all Phase B candidates complete, choose one model from the arena cross-judge pool line in ~/.cursor/rules/pstack-models.mdc. If the rule or that line is missing, choose from claude-opus-5-5-xhigh and grok-4.7-xhigh-fast. Spawn one readonly judge subagent. The judge is never from the parent's family, as Phase A step 3 defines families. Try only the entries from another family, in pool order. An auto or inherit-parent entry is the parent model, so it never judges. With the default pool, a Claude parent gets grok-4.7-xhigh-fast. A parent from any other family gets claude-opus-5-5-xhigh first. If the Task tool rejects an entry, use a valid slug of the same model at the closest level or speed from the error message, or move to the next entry when there is none. If no entry from another family runs, try the default pool's entries from another family the same way. If none of those runs, skip the judge, pick the base alone in Phase D, and say so. If you do not know the parent's model, try the pool's real slugs in pool order and say that the family check did not run. The judge sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with your reading in Phase D. Don't spawn it while candidates are still writing.
Phase D: Pick a base
Read every candidate end to end before picking. Score each against the rubric criterion by criterion, not on holistic feel, and compare with the cross-judge when Phase C ran one. 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 a future maintainer can extend most easily without breaking invariants. When two feel tied, prefer the cleaner boundary or smaller API, per the Laziness Protocol.
Phase E: Graft
Walk each losing candidate once more for what is worth porting into the base, usually one or two things per candidate, not most of it. Fold each graft in b
常见问题
候选方案之间能看到彼此的工作吗?
不能。每个候选方案都收到相同的任务提示,因此每次尝试都是独立的。
评分标准有什么用?
它是一组具体的标准,用于评判各个候选方案。
如果某个模型不可用怎么办?
该技能会退回到同一系列中的默认模型,或者去掉该席位并说明这一点。
详情
作者的原始描述
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.
repo: cursor/plugins
热度
- GitHub 星标
- 15k
- 排名
- #10955
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。