investigate-first
它能做什么
这个技能诊断原因尚不明确的问题,例如间歇性 bug 或性能下降。适合希望在编辑任何代码之前先证明原因的开发者。
适用场景
- ✓当故障原因不明,而你希望先取得证据的时候。
- ✓当行为时有时无、难以复现的时候。
- ✓当性能变慢而原因不清楚的时候。
技能链接
https://github.com/JuliusBrussee/caveman/blob/main/skills/investigate-first/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的应用会随机让用户退出登录。请在修改任何代码之前,先用证据找出原因。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体把已观察到的内容与推断的内容区分开,追踪输入和状态变化,根据证据对可能的原因排序,并在找到一个可信的原因后停止。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Investigate first
Gather evidence before changing product code.
- Separate observed symptom from inferred cause.
- Trace inputs, state transitions, ownership boundaries, and failure output.
- Rank hypotheses by evidence and cheap falsification value.
- Do not edit until one credible mechanism explains evidence.
- Stop exploration when evidence is sufficient to name cause or exact blocker.
Report cause and proof. Make no fix unless task authorizes implementation.
常见问题
它会修复问题吗?
除非任务要求实施,否则不会。它会报告原因和证据。
调查时它会编辑代码吗?
不会。在一种机制能够解释证据之前,它不做编辑。
如果找不到原因怎么办?
它会指出阻止调查继续进行的具体阻碍。
详情
作者的原始描述
Diagnose ambiguous failures before editing. Use for unknown causes, intermittent behavior, performance regressions, or investigations needing evidence-ranked hypotheses.
repo: JuliusBrussee/caveman
热度
- GitHub 星标
- 117k
- 排名
- #755
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
cavecrew
117k帮你的智能体判断何时把搜索、小改动或差异审查交给紧凑的子智能体处理,为主上下文节省空间。
caveman-compress
117k帮你的智能体把 CLAUDE.md 或待办清单等记忆文件压缩成更短的 caveman 风格,以节省输入 token。
caveman-stats
117k帮你的智能体按模式统计 Claude Code 会话使用的输出和缓存读取 token 数量。
caveman
117k帮你的智能体用简短、直接的方式回答,去掉废话,同时保留所有技术事实。