Skip to content
Agent Orchestration
Skill

/evanflow-debug

Root-cause discipline for bugs, test failures, and unexpected behavior. Embedded grill on the hypothesis before writing fix code. Use when encountering any bug, failing test, or behavior that doesn't match expectation.

From plugin
evanflow
41916 skills2 agents1 hook

Claude Code

$ npx -y skills add evanklem/evanflow --skill evanflow-debug --agent claude-code

SKILL.md

evanflow-debug.SKILL.md
name: evanflow-debug
description: Root-cause discipline for bugs, test failures, and unexpected behavior. Embedded grill on the hypothesis before writing fix code. Use when encountering any bug, failing test, or behavior that doesn't match expectation.

EvanFlow: Debug

Vocabulary

See `evanflow` meta-skill.

When to Use

  • Test failing
  • User reports unexpected behavior
  • Production error
  • Code does the wrong thing under specific conditions
  • Anything where the immediate symptom isn't the root cause

**SKIP when:** the cause is obvious and the fix is one line. Don't ceremonialize trivial bugs.

The Flow

1. Reproduce

  • Get the exact reproduction: input, environment, steps
  • Reproduce locally if possible. If you can't reproduce, the bug is unverified — say so before proceeding.

2. Form a Hypothesis

State the hypothesis explicitly:

> "I think the bug is in <file>:<line> because when X happens, Y is supposed to happen but instead Z does."

A vague "probably the validation" is not a hypothesis.

3. Embedded Grill — Challenge the Hypothesis

Before writing any fix, ask:

  • **Symptom vs. cause**: "Is this where the bug *manifests*, or where it *originates*? Trace one step further upstream."
  • **Coverage**: "What other code paths share this root cause? Will the fix here leave those paths broken?"
  • **Reversibility**: "Does the fix have the same blast radius as the bug, or wider?"
  • **Test gap**: "Why didn't a test catch this? Is the test missing, wrong, or misaligned with real behavior?"
  • **Domain check**: "Is the bug actually behaving correctly per spec, and the spec is wrong?"

4. Verify the Hypothesis Before Fixing

Add an instrument (log, breakpoint, test assertion) that proves the hypothesis right or wrong. **Watch the instrument fire.** If it doesn't, the hypothesis is wrong — go back to step 2.

5. Write a Failing Test First

The test should fail because the bug exists. This is a vertical-slice TDD application — see `evanflow-tdd`.

6. Fix at the Root

Fix where the root cause originates, not where the symptom appears. If the fix is far from the symptom, leave a comment explaining the WHY (this is one of the few cases where a code comment earns its keep).

7. Verify the Test Passes

Run the test. Run the broader suite. Confirm no regressions.

Hard Rules

  • **No fix without a failing test that demonstrates the bug.** (Same TDD principle as evanflow-tdd.)
  • **Fix the root, not the symptom.** Symptom-fixes are how bugs metastasize.
  • **Never auto-commit.** A fix gets staged; user confirms before commit.
  • **If you can't reproduce, say so.** Don't fix invisible bugs.

Hand-offs

  • Fix complete, tests pass → if mid-plan, return to `evanflow-executing-plans`. If standalone debug, **report what was fixed and STOP**. The user decides whether to commit or take further action.
  • Discovered an architectural issue → `evanflow-improve-architecture`
  • Discovered the spec is wrong → `evanflow-brainstorming` to align on intended behavior
Read more
@evanklem
Ships withevanflow

A TDD-driven iterative feedback loop for software development with Claude Code. 16 cohesive skills + 2 custom subagents walk an idea from brainstorm through implementation, with checkpoints throughout where you stay in control.

41916 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
419
Star history of evanklem/evanflow on GitHub, a chart by star-history.com

Other skills on evanflow.

evanflow-brainstorming

evanflow-brainstorming

Clarify intent, propose 2-3 approaches, embedded grill to stress-test the chosen path. Use before any creative work — new…

@evanklem@evanklemInstall Skill
evanflow-coder-overseer

evanflow-coder-oversee…

Orchestrate parallel implementation with coder/overseer pairs. Coders implement decomposed tasks using evanflow-tdd; overseers…

@evanklem@evanklemInstall Skill
evanflow-compact

evanflow-compact

Manage long-session context to prevent drift and degradation. Strategies for proactive summarization, branch isolation, and…

@evanklem@evanklemInstall Skill
evanflow-executing-plans

evanflow-executing-pla…

Execute a written implementation plan task-by-task with inline verification. Stop and ask on blockers. No forced sub-skill…

@evanklem@evanklemInstall Skill
evanflow-glossary

evanflow-glossary

Extract canonical domain terms into CONTEXT.md. Flag ambiguities (same word, different meanings) and synonyms (different words,…

@evanklem@evanklemInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about evanflow-debug.

Which coding agents can use evanflow-debug?
evanflow-debug installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.