# Debug With Evidence

> Explicit-invocation workflow for systematic debugging that reproduces failures, forms falsifiable hypotheses, collects runtime evidence, proves root causes, adds regression tests, and verifies targeted fixes. Use only when the user directly invokes the debug-with-evidence skill.

- **Type:** Skill
- **Install:** `agentstack add skill-himanshi-28-coding-agent-skills-debug-with-evidence`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [himanshi-28](https://agentstack.voostack.com/s/himanshi-28)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [himanshi-28](https://github.com/himanshi-28)
- **Source:** https://github.com/himanshi-28/coding-agent-skills/tree/main/skills/debug-with-evidence

## Install

```sh
agentstack add skill-himanshi-28-coding-agent-skills-debug-with-evidence
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Debug with Evidence

Find and prove the root cause before changing behavior. A disappearing symptom is not sufficient evidence of a correct fix.

## Workflow

1. Define the failure.
   - Record observed behavior, expected behavior, exact inputs, environment, frequency, timeline, and recent relevant changes.
   - Separate reported facts from assumptions.
2. Establish a reliable reproduction.
   - Reproduce with the smallest safe case available.
   - Preserve the failing command, request, data shape, or user steps.
   - If reproduction is impossible, identify the missing evidence instead of guessing.
3. Trace the relevant code path.
   - Inspect applicable instructions, entry points, state transitions, dependencies, error handling, and existing tests.
4. Form ranked hypotheses.
   - Make each hypothesis specific and falsifiable.
   - State the observation that would support or reject it.
5. Collect targeted evidence.
   - Use existing logs, stack traces, test output, browser state, query plans, profiles, metrics, or version history.
   - Add minimal temporary instrumentation at suspected boundaries when needed.
   - Change one investigative variable at a time.
6. Identify the root cause.
   - Explain the causal chain from triggering condition to observed failure.
   - Show why the evidence favors it over competing hypotheses.
   - Reject symptom-masking fixes such as an unexplained null check or broad retry.
7. Lock a regression test.
   - Add the smallest test that reproduces the bug and confirm it fails for the proven reason before applying the fix.
   - Use the `lock-tests-first` skill when the contract requires broader coverage.
8. Apply a targeted fix.
   - Correct the cause with the smallest coherent change.
   - Preserve unrelated behavior and remove temporary instrumentation unless it provides lasting observability value.
9. Verify.
   - Re-run the reproduction and regression test, then relevant surrounding checks.
   - Test boundary and failure cases suggested by the root cause.
   - Explain why the fix prevents recurrence rather than hiding the symptom.

## Output

Provide the reproduction, evidence, root cause, rejected hypotheses, fix, regression protection, verification results, and residual uncertainty. Never claim a cause solely because a patch made the immediate error disappear.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [himanshi-28](https://github.com/himanshi-28)
- **Source:** [himanshi-28/coding-agent-skills](https://github.com/himanshi-28/coding-agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-himanshi-28-coding-agent-skills-debug-with-evidence
- Seller: https://agentstack.voostack.com/s/himanshi-28
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
