360 Secure SkillHub
360 安全技能中心

root-cause-fix

用于 bug、失败检查、不稳定测试或反复绕圈的代理:先复现并读取真实状态,追溯变更与根因,修复同一错误模式的所有位置,并用一句话说明原因。

分类:开发
0xr3ngar
热度 0.00
最近更新 2026-11-20 05:22:39

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 0xr3ngar/bstack/root-cause-fix
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
root-cause-fix
description
Apply when something fails: a bug, a red check, a flaky test, or an agent that goes in circles.
disable-model-invocation
true
license
MIT
compatibility
No tools needed.

Root-cause-fix

Fix the first wrong decision, not the place where the failure showed.

  • Reproduce it, on the real surface when you can. Read the actual state. Do not guess from the code.
  • Ask what changed. Compare with the last version that worked. Check whether the base is already broken before you blame the change.
  • Ask "why" until the answer is a wrong decision in the code or in the design. A guard, a retry, a fallback value, a swallowed error or a poll at the place of the symptom hides the fault, unless the state that it handles is legitimate.
  • Fix the pattern. Find every place with the same fault.
  • When two fixes that share one assumption fail, the assumption is wrong. Test it directly, or give the problem to a fresh reader with no context.
  • Say the cause in one sentence. If you cannot, you have not found it.