brainstorming
Use before coding when requirements have multiple reasonable interpretations, approaches require tradeoffs, or mistakes would be…
Use before proposing a permanent fix for bugs, test failures, or unexpected behavior with an unknown root cause—mandatory when symptoms are far from the cause, a prior fix failed, or the issue crosses components. Reproduce, trace backward to the root cause, fix once at the
Claude Code
$ npx -y skills add chipfighter/coding-discipline --skill systematic-debugging --agent claude-code
Codex
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a codex -y
Cursor
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a cursor -y
Gemini CLI
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a gemini-cli -y
GitHub Copilot
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a github-copilot -y
OpenCode
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a opencode -y
Windsurf
$ npx skills add chipfighter/coding-discipline --skill systematic-debugging -a windsurf -y
name: systematic-debugging description: Use before proposing a permanent fix for bugs, test failures, or unexpected behavior with an unknown root cause—mandatory when symptoms are far from the cause, a prior fix failed, or the issue crosses components. Reproduce, trace backward to the root cause, fix once at the source, and add a regression test. Do not trigger for obvious errors whose message identifies the cause (syntax/typo/missing import); fix those directly. license: MIT
Hard rule: **do not package a guess as a permanent fix before locating the root cause.** If the user explicitly needs emergency containment, you may apply a reversible temporary mitigation first, but you must state its risks and that the root cause is not fixed, then continue investigating.
If every fix creates a new problem elsewhere or requires a "large refactor," the problem is not the hypothesis but the architecture. **Do not attempt a fourth fix.** Stop and discuss whether the design itself is fundamentally wrong.
| Thought | What to do | |---|---| | "Apply a quick fix now and investigate the root cause later." | There is no later—once the symptom changes, you will stop investigating. Trace it to the root cause before changing anything. | | "Change this and see whether it works." | That is guessing. First write, "I believe the root cause is X because Y," then test it with the smallest change. | | "It is probably X; just fix it." | Reaching a conclusion before tracing the data flow is a gamble. Follow the bad value to its source first. | | "Put several changes in and run it." | Change only one variable at a time, or a passing result will not tell you which change mattered. | | "Two attempts failed; maybe one more will work." | Stop. A third attempt probably means the direction is wrong. Return to Step 1 or ask someone else. |
Chinese → README.zh-CN.md Guardrails, not a workflow. Quiet on routine work; firm when a named failure mode is at risk. AI coding agents tend to fail in two expensive ways: They drift off-goal.
Use before coding when requirements have multiple reasonable interpretations, approaches require tradeoffs, or mistakes would be…
Use when changes affect interactions across multiple modules, involve high-risk areas (authorization/authentication,…
Use when starting a project, reading project documentation or history, or resolving conflicts between documents. For current…
Use when creating a branch, using worktrees for parallel work, committing, or wrapping up. Covers branch naming, conventional…
Use in cross-session work when user-confirmed outcomes, non-goals, hard constraints, or acceptance criteria have not been written…
Use before implementation when behavior can be verified by automated tests and regression coverage has clear value. For bugs with…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.