Skip to Content
MeowKit

Debug Effectively

Decision guide: when to use mk:fix, mk:investigate, mk:sequential-thinking, or mk:problem-solving.

Four skills handle debugging and problem-solving. This page maps each to the situation it fits, so you pick one.

One decision matrix

Match the strongest signal in your situation to one skill. Do not stack them.

Your situationSkillWhy
Bug, error, test failure, or anything broken you want fixed/mk:fixRuns scout, investigate and sequential-thinking for you, then fixes.
Pure diagnosis: "why is this broken?" without fixing yet/mk:investigateRoot-cause debugging that ends in a diagnostic report, not an edit.
Competing hypotheses: "which of these is correct?"/mk:sequential-thinkingHypothesis and evidence reasoning before acting. Works for architecture decisions too.
Stuck on approach: "tried five ways, still feels wrong"/mk:problem-solvingSeven techniques for a stalled approach. Not for debugging.

When unsure, and something is broken, use /mk:fix. It invokes the others.

How they compose

/mk:fix calls /mk:investigate to collect evidence, and the standard and deep profiles then use /mk:sequential-thinking to eliminate hypotheses. /mk:problem-solving stands apart. It is for a stalled approach, not for bugs.

Bug reported
  → mk:fix
    → Step 1: mk:scout (mandatory codebase exploration)
    → Step 2: mk:investigate (collect symptoms, trace backward)
        → mk:sequential-thinking (hypotheses, evidence elimination)
    → Step 3: Complexity assessment
    → Step 4: Fix the root cause
    → Step 5: Verify and add a regression test
    → Step 6: Report, and write a memory entry if the lesson is non-derivable

Common misroutes

WrongRightWhy
/mk:problem-solving for a bug/mk:fixproblem-solving is for approach, not cause
/mk:sequential-thinking for a bug you want fixed/mk:fixfix already uses sequential-thinking and adds scout, memory and verify
/mk:investigate then separately /mk:fix/mk:fix onlyfix Step 2 already runs investigate, so this repeats work.
/mk:fix for green-field design/mk:plan-creatorfix is for broken things, not new design

Real scenarios

Test suite red after refactor: /mk:fix. Scout maps the blast radius, investigate collects stack traces, and sequential-thinking tests hypotheses about what changed.

Intermittent production bug, fixed twice, still recurring: /mk:fix first. It checks memory for earlier sessions on this bug class. If the pattern "adding X to fix Y" appears, follow up with /mk:problem-solving (Via Negativa).

"Why did deployment fail last night?" (CI is green now): /mk:investigate. It is a pure diagnosis, since the deploy already succeeded on retry. Investigate writes a diagnostic report and you decide whether a fix is needed.

Architecture trade-off with competing positions: /mk:sequential-thinking. It is a reasoning task, not a bug: pick between known options with evidence.

Seven implementations, none feel right: /mk:problem-solving with Simplification Cascades. "Same thing 5+ ways, growing special cases" is the trigger for that technique.

Anti-patterns

  • Guessing root causes. Let sequential-thinking hold you to evidence
  • Fixing symptoms. Trace backward to the root cause
  • Skipping scout. /mk:fix Step 1 is mandatory
  • No regression test. /mk:fix Step 5 treats a missing required test as incomplete
  • Three or more failed attempts. Stop and question the architecture

Next steps

On this page