问题诊断与修复
explain-then-fix
逐一排查 bug 或报告的问题:复现报告者自身的案例,用带注释的证据和图表解释根本原因,列出修复方案,等待 "go" 确认后再进行修复,并展示修复前后的对比。
- License 许可
- MIT
- 所属仓库
- Dyrean/dotfiles
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- explain-then-fix
- description
- Work through bugs or reported issues one cause at a time — reproduce the reporter's own case, explain the root cause with annotated evidence and a diagram, lay out fix options, wait for "go", then fix and show before/after.
- disable-model-invocation
- true
02 资源文件 1
- 参考文档prompt.md3.7 KB
03 SKILL.md 正文
Explain, Then Fix
The user decides every fix. Nothing is changed, pushed, closed, or published until they say so, and everything happens in this chat.
Steps
-
Pick. One problem, or a few that look like one cause. Say which, in one line.
-
Reproduce. On the reporter's own case: their data, their environment, their steps. Use the project's own repro and screenshot tooling (its AGENTS.md or CLAUDE.md, and its skills). Measure it: a number, a count, the exact message. If their case can't be had, say so and ask for it; a stand-in is labelled as a stand-in.
-
Explain. In plain words, naming things the way the reporter would, never internal IDs.
- The evidence with the cause drawn over it, whenever there is a screenshot, output, or trace that shows the problem: the measured values marked on it, from what the program computed, not eyeballed.
- A diagram of the cause, in chat: what the code believes, and what the user sees because of it.
- The code locations (
file:line) in text, under the pictures.
-
Discuss. Lay out the fix options, each with what it fixes, what it doesn't, and what else it touches. Give a recommendation. Then stop and wait for "go".
-
Fix, on "go". Implement it. Add the few tests that fail before and pass after, on the reporter's case where there is one. Show before/after of the reported case, and look at it yourself before sending it.
-
Next. Say what is left of the group, then propose the next group and go back to 1.
Rules
- No code change before "go".
- No push, issue close, or page publish without an explicit yes, every time.
- Show the reported case, not a synthetic one; a stand-in can hide the bug.
04 同仓库更多 Skills
智能体文档编写
writing-for-agents
为智能体编写文档。在创建或编辑技能,或修改 AGENTS.md 或 CLAUDE.md 时使用。
调用栈架构交接文档编写
tech-spec
编写带类型的调用栈架构交接文档。
设计验证原型构建
prototype
构建一个一次性(临时)原型来回答设计问题。当用户想要验证状态模型或逻辑是否合理,或探索 UI 应呈现的样子时使用。
Plannotator 技术可视化生成
plannotator-visual-explainer
生成带有 Plannotator 主题的自包含 HTML 可视化内容。用于实现计划、PR 说明、架构图、数据表、幻灯片,以及任何技术概念的可视化讲解。计划和 PR 说明遵循 Plannotator 的规定式方法;其他所有视觉内容委托给 nicobailon/visual-explainer。
Plannotator 代码审查
plannotator-review
为当前工作树、其他目录或拉取请求(PR)URL 打开 Plannotator 基于浏览器的代码审查界面,然后处理返回的反馈。
Plannotator 消息注释修订
plannotator-last
在最新渲染的助手消息上打开 Plannotator,并使用返回的注释来修订该消息或继续。