Apply 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.
Using the supplied local timeline, trace why an imported event displays one day early. Find the earliest type conversion causing the mismatch, propose a fix there rather than hiding it in the display, and specify a regression test.
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: principle-fix-root-causesdescription: "Apply 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-invocation: true
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.
principle-fix-root-causes by backnotprop · The Skill Leaderboard