Debugging Workflow

SkillAI & models

Coordinator-routed specialist for reproducing and isolating unexplained failures before fixing the confirmed cause. Use after project-development-mindset routes root-cause work here, or directly when explicitly invoked or installed standalone. Do not use for known-cause fixes, routine implementation test failures, test strategy, or an established performance bottleneck.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Debugging Workflow skill

What this skill tells your AI

The instructions your AI receives, as published by thienanblog/awesome-ai-agent-skills in skills/debugging-workflow/SKILL.md and read by ahel’s review.

Use this skill when the task starts from a failure or unexplained behavior. Preserve business intent, isolate the smallest failing case, and fix the confirmed cause.

Run this skill in the main conversation. Do not spawn subagents, agent teams, or delegated parallel workers unless the user explicitly approves the proposed count and scope after being told that doing so can increase usage. Ask again before expanding an approved scope.

Operating Rules

  • Reproduce before fixing when possible.
  • Read logs, stack traces, test output, screenshots, and source-of-truth docs before changing code.
  • Do not replace unusual business logic with a generic solution.
  • Do not make broad refactors while the failure cause is still unknown.
  • Form one hypothesis at a time and test it with the fastest reliable check.
  • Keep temporary debug code local and remove it before completion.
  • Add or update a regression test when practical.
  • If the root cause is performance-related, return routing control to project-development-mindset and replace this workflow with performance-optimization when available.
  • If the main work becomes test strategy, return routing control to the coordinator and replace this workflow with testing-verification when available.

Workflow

1. Capture The Failure

  • Record the exact command, URL, input, account state, branch, environment, and error output.
  • Preserve stack traces and failing assertions.
  • For UI bugs, capture the target element/region screenshot first, then full page only if needed.
  • For user screenshots that are ambiguous, annotate unclear regions with labels and ask before coding.

2. Read Source Of Truth

  • Read AGENTS.md, CLAUDE.md, relevant docs, feature specs, design-system docs, route/API/schema files, and nearby tests.
  • Identify whether current behavior is wrong or the expectation is unclear.
  • If docs and code disagree, call out the conflict instead of silently choosing one.

3. Reproduce And Minimize

  • Run the smallest command or flow that exposes the failure.
  • Reduce the input, state, fixture, route, component, or test to the smallest failing case.
  • Keep reproduction steps repeatable.

4. Isolate

  • Trace the failure from symptom to boundary: UI event, API request, controller, service, database, queue, cache, external dependency, build step, or deployment config.
  • Inspect recent changes only as a clue, not proof.
  • Use logs, debugger output, targeted prints, breakpoints, or temporary instrumentation carefully.
  • Use Binary Debug only when normal reproduction and fast checks do not isolate the cause.

Read references/debugging-playbook.md for deeper isolation patterns.

5. Fix The Confirmed Cause

  • Make the smallest change that fixes the confirmed cause.
  • Preserve public APIs and documented behavior unless changing them is the task.
  • Keep unrelated cleanup separate.
  • Remove temporary debug code.

6. Prove And Document

  • Rerun the failing check first.
  • Run related targeted tests.
  • After the diagnosis or fix and targeted verification are complete, list any broader or full-suite checks and ask the user whether to run them. Do not run them without explicit approval unless higher-priority repository instructions require them.
  • Add or update a regression test when possible.
  • Document difficult bugs in feature docs or project memory when the project would benefit.

Reporting

Report:

  • Reproduction steps or why reproduction was not possible.
  • Root cause.
  • Files changed.
  • Tests/checks/screenshots run.
  • Any remaining uncertainty or skipped verification.

References

  • references/debugging-playbook.md: reproduction, isolation, Binary Debug, logs, UI bugs, backend bugs, and flaky failures.

Signals

GitHub stars
65
Forks
20
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
debugging-workflow
Source
github.com/thienanblog/awesome-ai-agent-skills