@cursor/principle-fix-root-causes

Apply when debugging. Trace each symptom to its root cause and fix it there; reproduce first, ask why until you reach it, resist nil-check guards that silence crashes.

View in AI SkillSafe app
Scanned · no findings
0 stars
SKILL.md
nameprinciple-fix-root-causes
descriptionApply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.
disable-model-invocationtrue

Fix Root Causes

Fix the fault, not the place where it surfaced. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.

  • Reproduce first. Ask "why" until the answer is a wrong decision in the code. When stuck, instrument and read the actual state.
  • Ask whether the state that triggered the symptom is legitimate. If it is, handle it where the code broke. If it should never exist, a check there hides the bug, so find what produced it. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
  • Fix the pattern, not the instance. Find every place with the same fault.
  • If the deciding fact took a deep dig, propose the cheap, always-on signal that would have shown it at first look.

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@cursor/principle-fix-root-causes/verified)](https://skillsafe.ai/skill/@cursor/principle-fix-root-causes/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@cursor/principle-fix-root-causes/installs)](https://skillsafe.ai/skill/@cursor/principle-fix-root-causes/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@cursor/principle-fix-root-causes/scan)](https://skillsafe.ai/skill/@cursor/principle-fix-root-causes/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@cursor/principle-fix-root-causes/eval)](https://skillsafe.ai/skill/@cursor/principle-fix-root-causes/)