plan-arbiter
BuilderIO/skills
对来自多个代理的相互竞争的计划进行比较、交叉审查和合并,将其整合为一个可执行的方案,并明确交接流程。
...展开全部计划仲裁者
将相互竞争的方案整合为一个可执行的方向。保留最佳创意, 摒弃薄弱的假设,并形成清晰的交接方案,而非杂乱无章的混合体。
工作流程
- 收集原始方案。
- 将每个方案规范化为可比的论点。
- 对方案进行交叉审查,并结合实际代码库或任务 背景进行验证。
- 选定优胜方案、合并更优的混合方案,或将方案退回修订。
- 生成一份包含验证门和被否决 备选方案的执行交接文档。
除非用户在决策后明确要求您进行实现,否则规划处于只读状态。
收集源计划
接受以粘贴文本、本地文件、会话 ID、记录路径、PR、 评论、可视化方案链接或聊天记录形式提交的方案。尽可能解析原始 artifacts,以便您能查看最终摘要中可能遗漏的 提示更改和假设。
如果计划仍在编写中且用户要求您等待,请持续监控 该计划,直至其完成或受阻。如果无法解析计划,请继续处理 现有的计划文本,并将缺失的源文件标记为风险。
规范化
针对每个计划,提取:
- 目标和范围。
- 关键假设和未解决的问题。
- 拟定的文件、模块、API、数据结构、UI 状态或工作流。
- 实现顺序。
- 验证策略。
- 回滚或迁移方面的考虑。
- 成本、复杂度及预期执行器的适配性。
不要奖励冗长的说明。优先考虑具体、基于实际代码、 并如实说明权衡取舍的方案。
交叉评审
像另一位能力出众的开发者所编写那样审查每个方案:
- 检查其是否满足用户的实际需求。
- 若相关且可用,请对照代码库、文档、测试、截图或外部系统 来验证相关陈述。
- 识别隐藏的依赖关系、缺失的测试、存在风险的执行顺序、模糊的步骤、 不必要的范围以及难以回滚的决策。
- 注意各方案的互补优势:一个方案可能拥有更优的架构, 而另一个方案则可能具有更佳的迁移或验证路径。
- 将方案质量与执行者的偏好区分开来。即使另一个模型给出了 最佳的评审意见,更便宜/更快的执行者 也可能是实施的正确选择。
当方案规模较大、代码库范围广泛, 或决策需要分别经过技术和产品层面的审查时,可使用子代理进行独立审查。
决定
选择以下三种结果之一:
- 采用:基本按原样采纳某项方案。
- 混合:将特定部分组合成更强大的执行方案。
- 先修订:要求进行另一轮规划,因为两个方案都忽略了 关键约束条件,或依赖于尚未解决的决策。
采用以下决胜顺序:
- 正确性及与用户请求的契合度。
- 基于真实文件、API、测试、数据和 UI 行为。
- 初始实现更简单,且不阻碍未来的发展计划。
- 更完善的验证和回滚方案。
- 在质量可接受的前提下,执行所需的代币/时间成本更低。
交接
返回一份简明扼要的决策备忘录:
Decision
- Adopt Plan A / Hybrid / Revise first.
Why
- The deciding evidence and tradeoffs.
Execution Plan
- Ordered steps with files or surfaces to touch.
Borrowed From Other Plans
- Useful pieces kept from non-winning plans.
Rejected
- Ideas intentionally not taking, with reasons.
Verification
- Tests, browser checks, screenshots, CI, review, or deploy checks needed.
Executor Recommendation
- Which agent/model should implement and why.
当用户已请求执行且选定路径明确时,在简要报告决策后, 按选定的计划继续执行。否则,在 交接处暂停并请求批准。
---
name: plan-arbiter
description: Compare, cross-review, and merge competing plans from multiple agents into one executable direction with a clear handoff.
---
# Plan Arbiter
Turn competing plans into one executable direction. Preserve the best ideas,
reject weak assumptions, and produce a clear handoff instead of a blended mush.
## Workflow
1. Collect the source plans.
2. Normalize each plan into comparable claims.
3. Cross-review the plans against each other and the real codebase or task
context.
4. Choose a winner, merge a better hybrid, or send the plans back for revision.
5. Produce one execution handoff with verification gates and rejected
alternatives.
Planning is read-only unless the user explicitly asks you to implement after the
decision.
## Collect Source Plans
Accept plans as pasted text, local files, session IDs, transcript paths, PRs,
comments, visual-plan links, or chat history. Resolve the original artifacts
when possible so you can see prompt changes and assumptions that may be missing
from a final summary.
If a plan is still being written and the user asked you to wait, monitor it
until it is done or blocked. If a plan cannot be resolved, continue with the
available plan text and mark the missing source as a risk.
## Normalize
For each plan, extract:
- Objective and scope.
- Key assumptions and unresolved questions.
- Proposed files, modules, APIs, data shapes, UI states, or workflows.
- Implementation sequence.
- Validation strategy.
- Rollback or migration concerns.
- Cost, complexity, and expected executor fit.
Do not reward verbosity. Prefer plans that are concrete, grounded in real code,
and honest about tradeoffs.
## Cross-Review
Review each plan as if another capable agent wrote it:
- Check whether it satisfies the user's actual request.
- Verify claims against the repo, docs, tests, screenshots, or external systems
when those are relevant and available.
- Identify hidden dependencies, missing tests, risky sequencing, vague steps,
unnecessary scope, and hard-to-reverse decisions.
- Notice complementary strengths: one plan may have the better architecture
while another has the better migration or validation path.
- Separate plan quality from executor preference. A cheaper/faster executor can
be the right choice for implementation even when another model produced the
best critique.
Use subagents for independent review when the plans are large, the codebase is
wide, or the decision would benefit from separate technical and product passes.
## Decide
Choose one of three outcomes:
- **Adopt:** pick one plan mostly as written.
- **Hybrid:** combine specific pieces into a stronger execution plan.
- **Revise first:** request another planning pass because both plans miss a
key constraint or depend on an unresolved decision.
Use this tie-break order:
1. Correctness and fit to the user's request.
2. Grounding in real files, APIs, tests, data, and UI behavior.
3. Simpler first implementation that does not block the intended future.
4. Better validation and rollback story.
5. Lower token/time cost for execution once quality is acceptable.
## Handoff
Return a compact decision memo:
```md
Decision
- Adopt Plan A / Hybrid / Revise first.
Why
- The deciding evidence and tradeoffs.
Execution Plan
- Ordered steps with files or surfaces to touch.
Borrowed From Other Plans
- Useful pieces kept from non-winning plans.
Rejected
- Ideas intentionally not taking, with reasons.
Verification
- Tests, browser checks, screenshots, CI, review, or deploy checks needed.
Executor Recommendation
- Which agent/model should implement and why.
```
When the user already asked for execution and the chosen path is clear, proceed
with the selected plan after reporting the decision briefly. Otherwise stop at
the handoff and ask for approval.





首页
