把问题定好

pstack 里和 /reframe、/sharpen 放在一起用的那一组技能。左栏是作者原文,右栏是对照中文。高亮是阅读标记,句子本身没有改。

关键概念 反常识,或和直觉相反的设计

技能正文取自 Cursor 市场已安装的 pstack 0.15.48,提交 ca782ed。讨论取自 Lauren Tan(poteto)写的指南和 pull request。他人帖子单独标出。原文 © 2026 Lauren Tan,MIT,仓库 cursor/plugins。

怎么排

这一节是阅读顺序,不是作者原文。依据是下面收录的指南那一句:改写之后可以直接发出去,也可以再跑 /sharpen。

你卡在哪先跑
说得出现象,叫不出这个问题的名字/reframe,然后把改写发出去,或再交给 /sharpen
知道要做什么,怀疑提示太浅/sharpen。它只交回提示,不做任务
想先确认 agent 听到的是不是你的问题/in-your-own-words
没有现成剧本,任务又大/figure-it-out 的 Frame:先写出能被证伪的完成条件
问题可能建在一份摘要上/how 看它现在怎么跑;/why 看记录里为什么做成这样
要在写代码前看见两种以上形状/architect 画两种;大或有争议则 /arena
要让别的模型来打穿它/interrogate。只有跑出来的发现才算数

指南原文

Lauren Tan,docs/guide/02-poteto-mode.md,pstack 0.15.48。配对用法就写在最后一句。

原文

When you're unsure whether a prompt is aimed right, run /sharpen on it before you send it:

/sharpen write a migration guide for the v2 config format.

The agent says what a top professional would do that you didn't ask for, the rawest material they would start from, the methods and tools they would use, and what other than you or the agent would show the result is right. Then it rewrites your prompt to ask for exactly that, deeper but not bigger. The rewrite asks the agent to prototype any choice an experiment can settle and to recommend an option from what it observed, and it leaves product and preference choices to you. It doesn't do the task. Read the rewrite, then send it, for example with /poteto-mode.

When you can't name what you're after, run /reframe on your own description and files first:

/reframe the settings page saves some fields right away and others only on submit, and people lose edits.

The agent gives 8 to 12 expert terms, ranked by how much each would change what you build. Each comes with the part of your description it names, a real project that uses it, with the link checked, and what it lets you ask an agent for. It also borrows terms from 2 or 3 neighboring fields that solved the same problem under other names, and says where each analogy breaks. Then it rewrites your description with the new words. Send the rewrite, or run /sharpen on it.

中文

不确定一条提示有没有对准,发出去之前先对它跑 /sharpen。

agent 要说出:这个领域里的顶尖从业者还会做、而你没要求的事;他们会从什么最原始的材料开始;他们会用的方法和工具;除了你或 agent 之外,什么能表明结果是对的。然后把你的提示改写成恰好在要这些东西,更深,但不是更大。改写后的提示要求 agent 把任何一次实验就能定下来的选择做成原型,并根据观察到的结果推荐一个选项;产品和偏好仍留给你。它不做这个任务。读完改写,再发出去,例如交给 /poteto-mode。

叫不出自己要的是什么时,先对自己的描述和文件跑 /reframe。

agent 给出 8 到 12 个行话,按每一个会在多大程度上改变你要做的东西排序。每一个都带上:它点名的是你描述里的哪一部分、一个真实项目、核对过的链接、以及它让你能向 agent 要求什么。再从 2 到 3 个解决过同一形状问题的邻近领域借词,并写明类比在哪里断开。然后用这些新词改写你的描述。把改写发出去,或者再对它跑 /sharpen。

PR 1324 · 加上 /reframe

poteto,2026-11-23,cursor/plugins#1324。下面是她写的 Why,以及命名和一次用词试验。Bugbot 生成的摘要没有收进来。

原文

/reframe teaches the expert words for what the operator is building, plus words from neighboring fields that solved the same problem under other names, so they can ask agents for more. It sits next to /sharpen.

Named reframe because, like sharpen, it is a verb applied to the prompt, and it names the move: seeing the task through the words of experts and neighboring fields.

Earlier runs of the same text tried two wordings: neighboring fields before the terms, and marking unconfirmed citations instead of cutting them. Neither changed citation accuracy, field count or stated breaks, so the skill keeps terms first and cuts.

中文

/reframe 教的是操作者正在做的东西的行话,再加上用别的名字解决过同一问题的邻近领域的词,好让人能向 agent 要求更多。它紧挨着 /sharpen。

取名 reframe,是因为它和 sharpen 一样,是作用在提示词上的一个动词。这个名字指的就是那个动作:用专家和邻近领域的词重新看这个任务。

同一段文字早期试过两种写法:先写邻近领域再写术语;以及把未能核实的引用标出来,而不是删掉。两种都没有改变引用准确率、领域数量或写明的断裂处,所以技能保持先给术语,并删掉核实不了的引用。

PR 1326 · 含糊时先列出可能的问题

poteto,2026-11-24,cursor/plugins#1326。这是现在技能正文里「先列出两三种问题」那一段的来由。

原文

When an operator's description is vague, /reframe should list the problems it could be before it teaches words for one of them, so it doesn't teach a whole vocabulary for the wrong problem.

中文

操作者的描述含糊时,/reframe 要先列出它可能是哪些问题,再为其中一个讲词,以免给错误的问题配上一整套词汇。

/sharpen 的三次改动

都是 poteto 的 PR 正文。现在装上的技能是第三次之后的文本:只交回改写,不做任务;能用实验决定的选择交给原型。

原文

615 · 2026-10-14 · https://github.com/cursor/plugins/pull/615

Adds /sharpen, a manual-only skill. Before starting a task, it asks:

- how a top expert would approach it
- what the user is really after
- whether the task is over- or underspecified

It loosens constraints that don't serve the goal, leaves the user's choices open, and folds in only what makes the work better, not bigger. Then it does the work. It never returns a rewritten prompt.

712 · 2026-10-18 · https://github.com/cursor/plugins/pull/712

Removes the sentence "Don't hand back a rewritten prompt." from the sharpen skill, so the skill now ends with "without narrating the framing, then do the work."

729 · 2026-10-20 · https://github.com/cursor/plugins/pull/729

/sharpen on main drifted from the prompt it came from. It now asks different questions, and it ends with "then do the work" instead of handing back a rewritten prompt. A drift eval found that the main version lost the original's four asks. Those asks are what a top professional would add, the rawest material, the methods and tools, and an outside check. The one place where main beat the original was leaving the user's choices open.

This PR restores the original prompt's words and appends one sentence. /sharpen now only returns a rewritten prompt and never does the task.

Some candidate additions from the main version were left out because the drift eval showed no gain for them:

- "Always keep one outside check": the original already scored at the ceiling.
- "Better, not bigger" and "what the user is really after": the gains were small, and the score was lower or equal for most models.
- "Over- or underspecified", "loosen constraints", and "no framing": none was linked to a gain.

Verdict for the list text: pass on every gate. The four asks match the original, every reply is a full rewritten prompt, no reply does the task, and the appended sentence shows its gain.

1236 · 2026-11-15 · https://github.com/cursor/plugins/pull/1236

The last line of the skill now has the rewritten prompt ask the agent to prototype any choice an experiment can settle and to recommend an option from what it observed. Product and preference choices that no experiment can settle stay with you. Before, the skill left every choice open.

中文

615. 加上只手动调用的 /sharpen。开始任务前它问三件事:顶尖专家会怎么做、用户真正要什么、任务是规定得过多还是过少。它松开不服务于目标的约束,把用户的选择留开,只折进让工作更好而不是更大的东西。然后它去做这个工作。它从不交回一条改写后的提示。

712. 删掉「不要把改写后的提示交回来」这句话。技能结尾变成:不要叙述这层框架,然后去做工作。

729. 主干上的 /sharpen 偏离了它的来源提示。它问的问题变了,并且以「然后去做工作」结尾,而不是交回改写。一次偏离评估发现,主干丢掉了原文的四问:顶尖从业者会补上什么、最原始的材料、方法和工具、以及一个外部核对。主干唯一胜过原文的地方,是把用户的选择留开。

这次 PR 恢复原文的用词,并追加一句。/sharpen 现在只交回改写后的提示,并且从不做这个任务。

主干版本里有些候选句子没有加回去,因为偏离评估看不出收益:「始终保留一个外部核对」在原文上已经到顶;「更好而不是更大」和「用户真正要什么」收益很小,多数模型上分数更低或持平;「过多或过少」「松开约束」「不要叙述框架」都没有对应到收益。

列表文本的结论:每一道门都通过。四问与原文一致,每条回复都是完整的改写提示,没有一条去做任务,追加的那句显示出收益。

1236. 技能最后一行改成:改写后的提示要求 agent 把实验能定下来的选择做成原型,并根据观察到的结果推荐一个选项。实验定不下来的产品和偏好仍留给你。在这之前,技能把每一个选择都留着不决定。

反常识在这段历史里:第一版明确禁止交回改写、并且自己去做任务。四天后作者判定这偏离了来源提示,改回「只交提示、不做任务」。现在文件里的四问,是她用评估保住的原文,不是后来添上去的发挥。

易混的一对

poteto-help 的 Close calls。只收录和这一组有关的三行。

原文

- /how explains what the code does. /why explains the reasons. /teach runs one or both and explains the result plainly.
- /arena gives every worker the same brief and merges the best parts. /swarm splits work into slices or a race and returns one report.
- /interrogate reviews the diff. /blast-radius looks for breakage outside the diff and proves the one fact that makes the change safe.

中文

/how 解释代码在做什么。/why 解释原因。/teach 跑其中一个或两个,再用白话讲结果。

/arena 给每个工作者同一份任务说明,再合并各自最好的部分。/swarm 把工作切成片,或让它们赛跑,然后交回一份报告。

/interrogate 审查这份 diff。/blast-radius 找 diff 外面会被碰坏的地方,并用运行证明那一条使改动安全的事实。

他人帖子

不是作者原文。Kai,2026-11-25,hqmank/status/2125494895293186262。全文如下。

原文

Lauren Tan just shipped /reframe in pstack.

It targets a common vibe coding problem: you know what you want, but you can't describe it to the AI, especially in a field you don't know.

Say you're building a video editor and have never heard of voice activity detection (VAD) or non-destructive editing. Your prompt never mentions them.

/reframe teaches you the terms that matter and ties each one to a real project. Then it points out what you missed and rewrites your request.

Pair it with /sharpen to tighten how the agent does the work and checks it.

中文

Lauren Tan 刚在 pstack 里放出 /reframe。

它针对 vibe coding 里常见的一件事:你知道自己要什么,但说不给 AI 听,尤其是在你不熟的领域。

假如你在做视频编辑器,却从没听说过语音活动检测(VAD)或非破坏性编辑。你的提示里就不会出现这些词。

/reframe 教你要紧的术语,并把每一个对上一个真实项目。然后指出你漏了什么,并改写你的请求。

把它和 /sharpen 配在一起,用来收紧 agent 怎么做这件事、以及怎么核对。

/reframe

skills/reframe/SKILL.md。含 frontmatter。0.15.48 已包含 PR 1326 的那一段。

原文

---
name: reframe
description: "Teach the expert words for what the operator is building, borrow words from neighboring fields that solved the same problem, then rewrite their description with them. Use for /reframe."
disable-model-invocation: true
---

Teach the operator the expert words for what they are building. Start from their own files, code and description, not a summary.

If their description could name more than one problem, first list the two or three problems it could be, each with the one term that names it and the sign that would tell it apart from the others. Then teach the words for the most likely one and say why you picked it.

1. Give 8 to 12 terms, ranked by how much each would change what gets built. For each, give the word and its meaning in one plain sentence, the part of their description it names, one real project, paper or system that uses it that way, with a link, and what it lets them ask an agent for.
2. Pick 2 or 3 neighboring fields that solved the same shape of problem under other names. For each, say what carries over, where the analogy breaks, and which terms come back.
3. Name what they didn't mention but should care about.
4. Rewrite their description with the new words.

Open every link and confirm it uses the term that way. Cut any citation you can't confirm. No padding.

中文

描述:教操作者他所做之物的行话,从解决过同一问题的邻近领域借词,再用这些词改写他的描述。用于 /reframe。禁止模型自行调用。

把操作者正在做的东西的行话教给他。从他自己的文件、代码和描述出发,不要从一份摘要出发。

如果他的描述可能点名不止一个问题,先列出它可能是的两三个问题,每一个配上那个给它命名的词,以及能把它和另外几个区分开的标志。然后为最可能的那一个讲词,并说明为什么选它。

  1. 给 8 到 12 个术语,按每一个会在多大程度上改变将要被做出来的东西排序。每一个给出:这个词、一句白话里的意思、它点名的是描述中的哪一部分、一个如此使用它的真实项目、论文或系统及其链接、以及它让人能向 agent 要求什么。
  2. 选 2 到 3 个用别的名字解决过同一形状问题的邻近领域。每一个说明什么可以搬过来、类比在哪里断开、哪些词被带回来。
  3. 指出他没提到、但应该在意的东西。
  4. 用这些新词改写他的描述。

打开每一个链接,确认它确实是这样使用这个术语的。核实不了的引用删掉。不要注水。

/sharpen

skills/sharpen/SKILL.md。这是 PR 729 恢复四问、PR 1236 加上原型句之后的现行文本。

原文

---
name: sharpen
description: "Make a task deeper, not bigger, then rewrite the prompt. Use for /sharpen."
disable-model-invocation: true
---

I want a deeper version of this task, not a bigger one. Before rewriting it, do four things:

1. Say what a top professional in this field would do here that I'm not asking for.
2. Name the rawest material they would start from instead of what has already been digested for me.
3. Name the specific methods and tools they would use.
4. Say what, other than you or me, would show the result is right.

Then rewrite my prompt to ask for exactly that.

Have the rewritten prompt ask the agent to prototype any choice an experiment can settle and recommend an option based on what it observed. Leave product or preference choices that no experiment can settle for me to make.

中文

描述:把任务做得更深,而不是更大,然后改写提示。用于 /sharpen。禁止模型自行调用。

我要这个任务的更深的版本,不是更大的版本。改写之前先做四件事:

  1. 说出这个领域的顶尖从业者在这里还会做、而我没有要求的事。
  2. 指出他们会从什么最原始的材料开始,而不是从已经替我消化过的东西开始。
  3. 指出他们会用的具体方法和工具。
  4. 说出除了你或我之外,什么能表明结果是对的。

然后把我的提示改写成恰好在要这些东西。

让改写后的提示要求 agent 把任何一次实验就能定下来的选择做成原型,并根据观察到的结果推荐一个选项。把实验定不下来的产品或偏好选择留给我来做。

/in-your-own-words

skills/in-your-own-words/SKILL.md。正文只有一句。指南把它用于「只要复述、不跑剧本」。

原文

---
name: in-your-own-words
description: "Restate in your own words what you think the user's goals are and what problem they're trying to solve. Use for /in-your-own-words."
disable-model-invocation: true
---

Restate in your own words what you think the user's goals are and what problem they're trying to solve.

中文

描述:用你自己的话复述你认为用户的目标是什么、他们在试图解决什么问题。用于 /in-your-own-words。禁止模型自行调用。

用你自己的话复述你认为用户的目标是什么,以及他们在试图解决什么问题。

反常识在篇幅上:技能没有第二步。它不解释、不提议修法、不改代码。读错会先出现在这句复述里。

/figure-it-out

skills/figure-it-out/SKILL.md。没有更窄的剧本时,先交出的是流程本身。下面是全文。

原文

---
name: figure-it-out
description: "Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions. Use for /figure-it-out or 'figure it out'."
disable-model-invocation: true
---

# Figure it out

When the task matches no playbook, design one. The deliverable before any code is the workflow itself: a sequence of phases that scales rigor to the task, runs the scientific method, and leaves a decision trail a human can audit after stepping away.

## Start

Open a todolist whose first item is to read the Principles section of the **poteto-mode** skill. Then add the phases below as todos.

## Phase A: Frame

Ground first, then commit. Don't start the run until you can state:

- The definition of done as a falsifiable predicate (the prove-it-works principle skill).
- Scope, quantified: rough units and effort, plus the blockers grounding surfaced.
- The rigor level, biased high. One-way doors and high blast radius get more. Reversible low-stakes steps get less. Rigor is gates and artifacts, not "try harder".

Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the never-block-on-the-human principle skill), but a multi-hour run earns one checkpoint.

## Phase B: Design the workflow

Decompose into atomic, independently-landable units. Sequence riskiest-unknown-first. Scaffold and verification come before features (the foundational-thinking principle skill).

- Build the verification harness before the work, with the baseline captured from the pre-change state, so the check reads as "old value vs new value".
- For one-way-door design decisions, run the architect skill (it runs arena). Skip it for mechanical work whose shape is already concrete. A second arena over a settled design is over-engineering (the laziness-protocol principle skill).
- Decide what fans out. Parallelize only across seams, and give each worker its own worktree or branch (the **separate-before-serializing-shared-state** principle skill). Don't over-fan. Pick each subagent's reasoning level for the job, per the Subagents section of the **poteto-mode** skill.
- Write the designed phase list down. That list is what the human reviews.

Then execute the design. Add its steps to the todolist as concrete items between the Phase C and Phase D entries. Run each under the Phase C loop discipline, and weave the Phase D log through them, a row as each step lands, rather than saving the whole trail for the end.

## Phase C: Run the loop

Each unit is an experiment. State the hypothesis, make the smallest change, measure against the predicate on the real artifact, keep it if it advanced, revert it if it didn't. Apply the **sequence-verifiable-units** principle skill, verifying each unit before starting the next instead of batching checks at the end.

- Verify by inspecting the artifact, never a self-report. When something passes too easily, suspect the observation method before the system.
- Pair delegated work with a judge. If a worker games the gate, reset and harden the contract. If the gate itself is wrong, fix the gate in its own change rather than routing around it.
- A verdict is VERIFIED, NOT VERIFIED, or INCONCLUSIVE. Inconclusive is not a pass. Don't hide a negative.

## Phase D: Keep the audit trail

Log the run via the **show-me-your-work** skill. figure-it-out's work is usually ambitious enough to commit the trail so the reviewer can read it in the PR. The trail plus the diff is what lets the human come back and trust the work.

## Phase E: Verify and hand back

Check the whole against the Phase A predicate on the real product, not just the harness. Encode any recurring correction as a gate, a lint rule, a check, or a script (the **encode-lessons-in-structure** principle skill).

**Reply:** the playbook you designed, the rigor level and why, the decision-trail path, what's verified against the predicate, and what's still open.

中文

没有更窄的剧本能套上时,设计一个。大规模迁移、分成许多部分的改动、或人离开之后再来审查的工作,都属于这里。任何代码之前要交出来的,是流程本身:一串按任务缩放严格程度的阶段,走科学方法,并留下人回来后能审计的决策痕迹。

Phase A,Frame。 先落到实处,再承诺。说得出下面三件之前不要开跑:

  • 完成的定义是一条可证伪的谓词。
  • 范围要量化:大致单位和工作量,加上落地时露出的阻塞。
  • 严格程度默认偏高。单向门和爆炸半径大的给更多。可逆、利害低的给更少。严格是门和产物,不是「再努力一点」。

承诺一次长跑之前,先摆出这个框架和取舍。可逆的工作可以继续,但长达数小时的一次运行要有一个检查点。

Phase B。 拆成能独立落地的原子单元。顺序是最险的未知优先。脚手架和验证先于功能。验证套件要在工作之前建好,基线取自改动前的状态,核对读起来是「旧值对新值」。单向门的设计决定走 architect(它会跑 arena)。形状已经具体的机械工作跳过它。对已经定下来的设计再开第二次 arena,是过度工程。只在接缝处并行,每个工作者自己的 worktree 或分支。把设计好的阶段列表写下来,那份列表就是人要审查的东西。

Phase C。 每个单元是一次实验。写出假设,做最小改动,在真实产物上对照谓词测量,推进了就留下,没有就回退。核对靠检查产物,不靠自我报告。某件事过于轻易地通过时,先怀疑观察方法,再怀疑系统。委派的工作配一个评判者。工作者钻门的空子,就重置并收紧契约。门本身错了,用单独一次改动修门,不要绕过去。结论是 VERIFIED、NOT VERIFIED 或 INCONCLUSIVE。INCONCLUSIVE 不是通过。不要藏起一个否定结果。

设计写下来之后就执行。步骤插进待办,落在 Phase C 和 Phase D 之间。每一步按 Phase C 的循环走,Phase D 的记录随每一步写一行,不要留到最后一次写完。

每个单元核实之后再开始下一个,不要把核对攒到末尾。委派出去的工作配一个评判者。

Phase D。 用 show-me-your-work 记这次运行。这类工作通常大到值得把痕迹提交进 PR,让审查者能读。痕迹加上 diff,才是人回来之后能信任这次工作的东西。

Phase E。 用 Phase A 的谓词核对真实产品,不只是核对套件。反复出现的纠正,编码成一道门、一条 lint、一次检查或一段脚本。回复里要有:你设计的剧本、严格程度及理由、决策痕迹的路径、对照谓词已经核实的部分、以及仍然开着的部分。

/how

skills/how/SKILL.md

原文

---
name: how
description: "Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation."
disable-model-invocation: true
---

# How

Explore the codebase to answer "how does X work?" questions.

If the scope is ambiguous, state your interpretation and explore. The user can redirect.

## 1. Explain

Spawn one Task subagent with subagent_type: generalPurpose and readonly: true that explores and explains in one pass. Give it the user's question and this brief:

> You are writing an architectural explanation for a senior engineer. Explore the codebase and write an explanation that a senior engineer unfamiliar with this area could read and walk away with a solid mental model. They should understand the architecture well enough to start working in it confidently. You have read-only access to the codebase.

## 2. Present

Present the subagent's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.

中文

用于「X 怎么工作」、改东西之前的代码走读,以及安放、归属、分层的问题(「这该住在哪」「哪个包拥有它」「这是不是正确的层」)。解释子系统架构、运行时流程、上手用的心智模型。动机用 /why。

范围含糊时,先说出你的理解再去探。用户可以改方向。

派一个只读的 generalPurpose 子代理,一次走完探索和解释。简报要求它写给一位不熟悉这块的资深工程师,让人带走一个扎实的心智模型,足以有信心开始在里面工作。

呈现子代理的输出。为清楚或补上对话里的上下文,可以轻改。不要实质性地重写它。

/why

skills/why/SKILL.md。0.15.40 起收成这一个短文件,不再逐个数据源搜查。

原文

---
name: why
description: "Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Returns a cited read on decisions and tradeoffs. Use how for runtime behavior."
disable-model-invocation: true
---

# Why

Answer from the record, not the code: read the commits and PR discussions that introduced the target and each later change, and other sources if the trail is thin. Cite what the authors wrote, mark your own inferences as inferences, and say what the record does not answer.

中文

用于「为什么 X 是这样工作的」「为什么当时选了 Y」、设计理由、回归、事后复盘,或有数据支撑的阈值。交回一份带引用的、关于决定和取舍的阅读。运行时行为用 /how。

从记录回答,不从代码回答:读引入这个对象的提交和 PR 讨论,以及其后每一次改动;这条痕迹稀薄时再看别的来源。引用作者写下的话,把自己的推断标成推断,并说出记录没有回答的部分。

/architect

skills/architect/SKILL.md。正文很短。大或有争议时,它自己改走 arena。

原文

---
name: architect
description: "Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape."
disable-model-invocation: true
---

# Architect

Before writing code, trace every system the change touches, then sketch two different shapes for it (types, signatures, module boundaries) and pick the one where each piece of state has one owner, each task has one way to do it, and callers need to know least. Redesign instead of patching if workarounds repeat.

For a large or contested design, run the arena skill instead of sketching alone.

中文

写代码之前勾勒类型、签名和模块结构,实现填进去时留在回路里。用于跳进代码会把错误形状锁死的非平凡工作。

写代码之前,追一遍改动会碰到的每一个系统,然后为它画两种不同的形状(类型、签名、模块边界)。选那一种:每一块状态有一个主人,每一件事只有一种做法,调用者需要知道的最少。权宜之计反复出现时,重新设计,不要再打补丁。

设计大,或有争议时,改跑 arena,不要只靠自己画。

/arena

skills/arena/SKILL.md。同一份任务,多个候选。全文。

原文

---
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."
disable-model-invocation: true
---

# Arena

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.

1. State the artifact each candidate is producing.
2. 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.
3. Pick the runners from the `arena runners` line in `~/.cursor/rules/pstack-models.mdc`, by default `claude-fable-5-2-high`, `claude-opus-5-5-high-fast`, and `gemini-4-neon-xhigh`. An `auto` or `inherit-parent` entry is the parent model, so omit `model` and spawn `generalPurpose`. If the Task tool rejects a slug, use the nearest valid slug of the same family or drop the seat, keep at least two runners, and say so. Families go by prefix, and the longest match wins: `claude-fable-*`, `claude-*`, and `gemini-*`, after dropping a leading `cursor-`. Any other slug's family is its text before the first hyphen. Spawn more for multiple design directions, and repeat one model when the work is generation-bound, not judgment-sensitive. Pick each subagent's reasoning level per the Subagents section of the **poteto-mode** skill.
4. 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, spawn one readonly judge from the `arena cross-judge pool` line in `~/.cursor/rules/pstack-models.mdc`, by default `claude-opus-5-5-high-fast`, `gemini-4-neon-xhigh`. The judge is never from the parent's vendor, and Fable counts as Claude for that check, so use the first entry from another vendor. An `auto` or `inherit-parent` entry is the parent model. If you do not know the parent's model, use the first real slug and say that the vendor check did not run. If the Task tool rejects a slug, use the nearest valid slug of the same family, then the next such entry, or skip the judge, and say so. While you read in Phase D, the judge scores each candidate, by path label, on each rubric criterion and recommends a base.

## 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 by hand, per the **redesign-from-first-principles** principle skill, so the result stays coherent under one mental model. Don't paste mechanically.

If the candidates converge on one shape, that is strong agreement. Note it and ship the consensus shape. No graft is needed. If they wildly diverge, Phase A was under-specified. Reframe and re-run rather than averaging the divergence.

## Phase F: Verify

Verify the synthesized artifact like any other output, per the **prove-it-works** principle skill. If verification finds a problem the arena missed, either Phase A was wrong (re-frame and re-run) or a candidate caught it and you missed the graft (go back to Phase E). Don't paper over it.

## Outputs

One synthesized artifact, with a short synthesis note alongside naming the base and why, the cross-judge's verdict or that Phase C skipped the judge, each graft with its source candidate, what was rejected and why, any convergence or dropouts, and the verification result.

中文

启动任何东西之前,待办列表里每个阶段一行:Frame、Fan out、Cross-judge、Pick、Graft、Verify。

Frame。每个候选拿到同一条提示,所以这条提示就是契约。说明每个候选要产出的产物。导出评分表:3 到 6 条针对这次任务、可以打分的具体标准。它是 Phase D 挑选者的工具。候选只看任务,不看评分表。默认三个跑者:Fable、Opus、Gemini 4 Neon,至少留两个。家族按最长前缀分,claude-fable-* 单独算一家。多种设计方向就多派;工作卡在生成上、不卡在判断上时,可以重复同一个模型。每个候选自己的输出位置,能用 git worktree 就用。

Fan out。 在同一条消息里派全部 N 个子代理。每个交出产物,并写短理由:考虑过哪些替代、拒绝了什么。某个候选没有产出,就用 N-1 继续,并记下退出者。

Cross-judge。 派一个只读评判者。评判者绝不和父会话来自同一厂商,而这次检查里 Fable 算作 Claude,所以用另一个厂商的第一个条目。评判者按路径标签、按评分表的每一条给每个候选打分,并推荐一个底子。

Pick。 挑选之前把每个候选从头读到尾。按标准逐条打分,不按整体感觉。对底子的一致确认这次挑选。不一致意味着你们其中一个有偏,或者评分表本身含糊。决定之前读双方的理由。选未来维护者最容易扩展、又不破坏不变量的那个底子。两个看起来打平,选更干净的边界或更小的 API。

Graft。 再走一遍每个落选者,看什么值得移植进底子,通常每个一到两样,不是大部分。按「从第一性原理重新设计」用手折进去,让结果停在一个心智模型下面。不要机械粘贴。候选收敛到一种形状,那是强一致,记下并交出共识形状,不必嫁接。如果它们剧烈发散,是 Phase A 规定不足。重新框定再跑,不要把发散平均掉。

Verify。 验证发现 arena 漏掉的问题,要么 Phase A 错了(重新框定再跑),要么某个候选抓住了而你漏了嫁接(回到 Phase E)。不要把它糊上。

/interrogate

skills/interrogate/SKILL.md。全文。它复用 arena 的派出方式,但结论保留每一条被证实的发现。

原文

---
name: interrogate
description: "Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Adversaries try to break a change or design, and only findings proven by a run survive."
disable-model-invocation: true
---

# Interrogate

Adversaries try to break a change or a design. A finding survives only when a run proves it. Report the findings. Do not apply fixes.

## Frame

The scope is what the user names. Otherwise it is the branch diff from its merge base with the base branch, through the working tree. State the intent with the **in-your-own-words** skill, from the user's message, the commits, and the PR description. Ask the user when the intent is unclear.

## Fan out

Run Phase A steps 3 and 4 and Phase B of the **arena** skill, with four changes. Read the `interrogate reviewers` line in place of `arena runners`. Copy the scope's uncommitted changes into each worktree. Spawn each adversary as `generalPurpose`. In place of the arena task and rationale, give each adversary the scope, the intent, and this brief:

> Break this change. Prove each finding with a run against the real code, such as a failing test, a repro script, or command output that shows the wrong behavior. For a design or plan, run a prototype or probe the current tree. Keep repros in your own worktree. Report each finding with a title, the exact command, the output it printed, and the output the intent requires. Leave out anything you did not run. That covers style, naming, structure, and risks that need a future change to matter. No findings is a valid result.

## Verify

Verify each finding per arena Phase F by rerunning its command. Keep a finding when the output shows the failure and the failure breaks the intent. Drop the rest. Merge findings that share a root cause.

Skip arena Phases C, D, and E. Adversaries find different failures, so the verdict keeps every verified finding, not one adversary's list.

## Output

- **Intent**: the restatement.
- **Findings**: for each verified finding, the command, its output, how it breaks the intent, and the adversaries that found it. Say "no verified findings" when none survive.
- **Dropped**: for each adversary, the count of dropped findings and why.

中文

对手试图打穿一次改动或一份设计。一条发现只有在一次运行证明它时才留下来。报告发现。不要应用修复。

范围是用户点名的东西。否则是分支相对基线的 diff,含工作区。用 in-your-own-words 从用户的消息、提交和 PR 描述写出意图。意图不清楚就问用户。

派出方式借用 arena,有四处不同:读 interrogate reviewers 那一行;把未提交的改动复制进每个 worktree;每个对手是 generalPurpose;简报换成:打穿这次改动。用对真实代码的一次运行证明每条发现,例如失败的测试、复现脚本、或显示出错误行为的命令输出。对设计或计划,跑一个原型,或探当前的树。复现留在自己的 worktree。每条发现带标题、确切命令、它打出的输出、以及意图要求的输出。没跑过的一律不写。这包括风格、命名、结构,以及要等未来一次改动才要紧的风险。没有发现是一个有效结果。

重跑每条发现的命令来核实。输出显示出失败、且这个失败破坏意图时才保留。其余丢掉。共享根因的发现合并。跳过 arena 的评判、挑选和嫁接。对手找的是不同的失败,所以结论保留每一条被核实的发现,而不是某一个对手的清单。

principle-exhaust-the-design-space

skills/principle-exhaust-the-design-space/SKILL.md。操作说明在 description 里。正文只有一句补充。

原文

---
name: principle-exhaust-the-design-space
description: "Apply when facing a novel UI interaction or architectural decision with no precedent in the codebase. Build 2-3 competing prototypes and compare side by side before committing."
disable-model-invocation: true
---

# Exhaust the Design Space

It also applies to product design decisions where user experience depends on feel, not logic.

中文

用于代码库里没有先例的新界面交互或架构决定。承诺之前,先做 2 到 3 个互相竞争的原型,并排比较。禁止模型自行调用。

它同样用于体验取决于手感、而不是逻辑的产品设计决定。

principle-attack-the-premise

skills/principle-attack-the-premise/SKILL.md

原文

---
name: principle-attack-the-premise
description: "Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it."
disable-model-invocation: true
---

# Attack the Premise

When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes.

- Write the premise down: the one sentence every failed fix assumed.
- Test it before the next fix. Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are.
- If the evidence contradicts the premise, look for what the failures share that it did not predict. If one part always lands on the losing side, change what puts it there instead of adding a mechanism that cleans up after it.

Do not start the next fix before the premise is written down and tested.

中文

两个以上共享同一个前提的修法,在同一道门上失败时使用。写下这个前提,并在写下另一个仍假设它的修法之前直接检验它。

两个以上共享同一个前提的修法在同一道门上失败时,怀疑前提,不要怀疑这些修法。

  • 把前提写下来:每一个失败的修法都假设的那一句话。
  • 下一个修法之前先检验它。找一个「如果前提为假,结果会不一样」的观察,并把它做出来。看失败是怎么分布的,不只看失败有多大。
  • 证据与前提矛盾时,去找这些失败共有、而前提没有预言的东西。如果某一个部分总是落在输的那边,改掉把它放到那里的东西,不要再加一个事后打扫的机制。

前提写下并检验之前,不要开始下一个修法。

principle-redesign-from-first-principles

skills/principle-redesign-from-first-principles/SKILL.md。arena 的嫁接步骤点名了这一条。

原文

---
name: principle-redesign-from-first-principles
description: "Apply when integrating a new requirement into an existing design."
disable-model-invocation: true
---

# Redesign From First Principles

When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been a foundational assumption from the start.

- Read all affected files and understand the current design
- Ask: "if we were writing this from scratch with this new requirement, what would we build?"
- Propagate the change through every reference: types, docs, examples, rationale sections
- Think about the whole redesign, then deliver it incrementally

This is the method for preserving option value when integrating changes into an existing design.

中文

把一条新要求整合进已有设计时使用。

整合一次改动时,不要把它栓到现有设计上。重新设计,就好像这条要求从一开始就是基础假设。

  • 读全部受影响的文件,理解当前设计。
  • 问:如果我们带着这条新要求从零写,会建成什么?
  • 把改动传到每一处引用:类型、文档、示例、理由段落。
  • 先想整次重新设计,再增量交付。

这是把改动整合进已有设计时,保住选择价值的方法。