ds-sharpen
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseds-sharpen
ds-sharpen
A sharper prompt saves more tokens than any loop. Fix the ask before doing the work.
一个更精准的提示词比任何循环都更能节省 token。先修正请求,再开展工作。
Steps
步骤
- Restate, in your own words, what the user wants and the problem behind it. Keep it to three sentences. If you cannot, ask one question.
- Deepen the task. Answer briefly:
- What would a top professional do here that the user did not ask for?
- What raw material would they start from, instead of a summary?
- What methods and tools would they use?
- What outside check, not you or the user, would show the result is right? Name a command, test, metric or source.
- Rewrite the prompt to ask for exactly that. Keep it no bigger in scope. Leave choices that belong to the user open and list them.
- Optional stress test, when the plan is risky or the user asks. Spawn two or three subagents with fresh context and give each the plan and the goal. Ask each to break it and back every finding with a run: a failing test, a probe script, or real command output. Drop findings with no run behind them.
- Present the restatement, the rewritten prompt, open choices, and any surviving findings with their commands and output.
- 用自己的话重述用户想要什么,以及这背后的实际问题。控制在三句话以内。如果无法做到,只问一个问题。
- 深化任务。简要回答以下问题:
- 顶级专业人士会做哪些用户没有要求的事情?
- 他们会从哪些原始材料入手,而不是从摘要入手?
- 他们会使用哪些方法和工具?
- 哪种外部检查——不是由你或用户进行——能够证明结果是正确的?给出一个命令、测试、指标或来源。
- 重写提示词,使其准确表达上述要求。不要扩大任务范围。将属于用户的决策保留为开放选项,并将其列出。
- 可选的 stress test:当计划存在风险或用户提出要求时。创建两到三个拥有全新上下文的 subagents,并将计划和目标分别交给它们。要求每个 subagent 找出计划的缺陷,并为每项发现提供一次实际运行作为证据,例如失败的测试、探针脚本或真实的命令输出。舍弃没有任何运行证据支持的发现。
- 展示重述结果、重写后的提示词、开放选项,以及经 stress test 后仍然成立的发现,并附上相应的命令及其输出。
Stop when
停止条件
- The user accepts or edits the rewritten prompt.
- Or the stress test returns. Do not loop it more than once without the user.
- 用户接受或修改了重写后的提示词。
- 或者 stress test 已返回结果。没有用户参与,不要循环执行超过一次。
Rules
规则
- Deeper, not bigger. Do not add features.
- Do not apply fixes from the stress test. Report them.
- A finding without output is an opinion. Leave it out.
- 更深入,而非更大。不要添加功能。
- 不要直接应用 stress test 中发现的修复,只需报告。
- 没有输出作为证据的发现只是意见,不要列出。