Skip to content
Agentmart
Submit a tool

systematic-debugging

Use when encountering a bug, failing test, broken integration, or unexpected behavior, before proposing fixes.

Skill by Threat-Vector-Security

IndexedApache-2.0★ 13
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/threat-vector-security-systematic-debugging

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when encountering a bug, failing test, broken integration, or unexpected behavior, before proposing fixes.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/systematic-debugging

What's inside

Skill name
systematic-debugging
Description
Use when encountering a bug, failing test, broken integration, or unexpected behavior, before proposing fixes.
License
Apache-2.0
Instructions
63 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • condition-based-waiting.md · references/
  • defense-in-depth.md · references/
  • root-cause-tracing.md · references/
  • skill.json

SKILL.md (first lines)

# Systematic Debugging

## Overview / When to Use

Do not guess. Find the root cause before changing code, config, or prompts. No fixes without investigation first. If you have not reproduced the issue, read the errors, and traced where the bad state comes from, you are not ready to fix it.

## Process

1. Capture the exact failure.
   - Record the command, request, or user action that fails.
   - Read the full error output, stack trace, and relevant logs.
   - If the issue is intermittent, collect enough evidence to describe the pattern.
2. Reproduce the issue consistently.
   - Prefer the narrowest reliable reproduction.
   - If you cannot reproduce it, gather more evidence instead of guessing.
3. Check recent changes and working examples.
   - Look at the diff, config changes, dependency changes, and comparable working code paths.
4. Trace backward to the source of the bad value or state.
   - Start where the failure appears.
   - Keep moving backward until you find where the wrong input, assumption, or transition originated.
5. Form one hypothesis and test it with the smallest useful change.
   - Change one thing at a time.
   - If the hypothesis fails, return to investigation with the new evidence.
6. Add a regression test or equivalent reproducible check before the permanent fix.
7. Verify the fix with the original reproduction and the regression test.

## Common Rationalizations

| Rationalization | Reality |
|---|---|
| "I know what this is, I'll just fix it." | Guessing leads to incomplete fixes or new bugs. Reproduce and trace it first. |
| "I'll try fixing three things at once to save time." | Multiple changes obscure which one actually fixed the issue or introduced regressions. Change one thing at a time. |
| "I'll skip the regression test since I manually verified it." | If it broke once, it will break again. Add a reproducible check before calling it done. |

## Red Flags

Stop and return to investigation if you catch yourself:

- proposing multiple fixes at once
- saying "it is probably X"
- patching symptoms without tracing source state
- skipping a failing test because manual verification seems faster
- trying a fourth fix after three failed attempts (this means the architecture or assumption is wrong)

## Verification

- [ ] The exact failure has been captured and reproduced consistently.
- [ ] The root cause has been traced backward to the source of the bad state.
- [ ] A regression test (or equivalent reproducible check) has been added.
- [ ] The fix passes both the original reproduction and the regression test.

## Supporting References

- Read [references/root-cause-tracing.md](./references/root-cause-tracing.md) when the error is deep in a call stack or event chain.
- Read [references/condition-based-waiting.md](./references/condition-based-waiting.md) when the issue looks timing-related or flaky.
- Read [references/defense-in-depth.md](./references/defense-in-depth.md) after finding the root cause and you need follow-up validation at multiple layers.

## Related Skills

- Use `test-driven-development` when you need the regression test and implementation loop.
- Use `verification-before-completion` before claiming the issue is fixed.

From Threat-Vector-Security/guardian-agent, Apache-2.0.

More from Threat-Vector-Security/guardian-agent

Signals

Stars
13
Forks
3
Open issues
0
Last commit (this folder)
Apr 4, 2026 (6 months ago)
Last release
Sep 9, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Threat-Vector-Security

Cite this page

systematic-debugging skill. Agent Mart. https://agentmart.dev/skills/threat-vector-security-systematic-debugging (last updated 2026-10-24)