Find the root cause before proposing a fix
This is a focused procedure. For its place in a larger workflow, see Debug an application problem.
A test, build, runtime result, or previously working behavior fails unexpectedly.
Finish with: A supported diagnosis and a separate proposed fix, not a stack of guesses.
Read the diagram
Open interactive diagram · Download SVG · Editable candidate
Arrows show this suggested sequence, not declared requires dependencies. Approval arrows are conditional. Declining a gate stops that branch without authorizing its writes. The numbered steps below are the text equivalent of the diagram.
Before you start
Use a trusted project and follow its instructions. Confirm the requested scope, installed skills, runtime tools, and any required workspace or approval. No additional instruction requirement is recorded for these selected steps.
Steps
- Reproduce with evidence.
systematic-debuggingprovides the guidance for this step. - Trace the root cause.
systematic-debuggingprovides the guidance for this step. - Test one hypothesis.
systematic-debuggingprovides the guidance for this step. - Report cause and propose fix.
systematic-debuggingprovides the guidance for this step.
Where to stop
Stop at diagnosis when the request is diagnostic. Mutating experiments still need the project's isolation and approval; implementation is a later authorized phase.
Optional branches
- Choose
coding-with-ruleswhen code or toolchain work needs the base coding workflow plus rules for its actual languages and extensions. - Choose
tddwhen you explicitly want test-first feature or bug work, or integration-test slices through public behavior.
Optional branches are not prerequisites or permission to launch another phase. You can omit them or stop at the stated result. See relationship types for the distinction.