Skip to content
Agentmart
Submit a tool

diagnosing-bugs

Diagnose bugs, failures, and performance regressions using an observed failure signal and targeted probes.

Skill by lstmemery

IndexedMIT★ 1
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/lstmemery-diagnosing-bugs

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

Diagnose bugs, failures, and performance regressions using an observed failure signal and targeted probes.

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. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/diagnosing-bugs

What's inside

Skill name
diagnosing-bugs
Description
Diagnose bugs, failures, and performance regressions using an observed failure signal and targeted probes.
License
MIT
Instructions
69 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • FEEDBACK.md
  • SKILL.md
  • openai.yaml · agents/
  • hitl-loop.template.sh · scripts/
  • trigger-cases.json · tests/

SKILL.md (first lines)

# Diagnosing Bugs

Find and fix the cause of the user's exact symptom. Finish with evidence that
the original scenario now passes, a meaningful regression test or a documented
missing test seam, and temporary instrumentation removed.

Read relevant domain glossary and ADRs when exploring the codebase. Redact
secrets before showing any command, output, or artifact; use environment
variables for credentials and quote only signal-bearing captured lines.

## Establish the feedback

Build and run one command that reaches the actual failing path and detects the
reported symptom. Capture the invocation and redacted failure. A nearby crash
or a command that merely runs successfully is not an adequate signal. Tighten
setup, assertion specificity, and determinism enough to distinguish causes.
For repro techniques or human-only actions, read [FEEDBACK.md](FEEDBACK.md).

For intermittent failures, record workload, trials, failure rate, and conditions;
increase reproducibility where feasible. Retain those conditions for the final
comparison. A single passing run does not establish that a flake is fixed.
For performance regressions, pin the workload and record baseline measurements
before changing code; prefer a profiler, timing harness, or query plan to logs.

If no permitted feedback path can reproduce or detect the symptom, record the
attempts and missing evidence. Ask for the smallest actionable prerequisite
that the active runtime permits. Keep the diagnosis unresolved; do not present
a speculative code change as a verified fix.

## Narrow and test

Preserve the original scenario, then minimize enough to separate plausible
causes. Remove inputs, callers, configuration, or steps one at a time while
checking that the same symptom remains. Stop minimizing when additional cuts
would not change the next diagnostic decision; exhaustive minimality is not a
goal on its own.

Start with the strongest falsifiable hypothesis. One is sufficient when the
observed signal directly identifies a cause. If alternatives remain plausible,
or a probe contradicts the first explanation, rank the competing hypotheses
and choose a discriminating probe. Each hypothesis names its prediction:
“If X is the cause, changing Y will change the observed symptom in this way.”
Share the current hypothesis or ranked alternatives with the user; proceed with
permitted probes while awaiting any useful steering.

Change one variable per probe. Use debugger/REPL inspection when available;
otherwise add targeted logs at the distinctions between hypotheses. Give
instrumentation a unique prefix for cleanup. Retain evidence of which
prediction passed or failed; a plausible story alone does not settle the cause.

## Fix and verify

When a correct test seam exists, turn the reproducer into a regression test
before the fix, observe the expected failure, apply the fix, then observe a
pass. The test must exercise the real call pattern: a one-caller unit test
cannot lock down a bug that requires several callers or a longer chain.

If no suitable seam exists, document the architectural limitation rather than
adding an implementation-mirroring test. The original feedback command still
has to verify the fix. Re-run it against the original, unminimized scenario;
for flakes and performance compare the recorded conditions and measurements,
including remaining uncertainty. Run repository-required relevant checks.

Remove tagged debug instrumentation and dispose of task-owned throwaway
reproducers or retain them in a clearly marked debug location. Report the
confirmed cause, fix, verification, and material limits; include that evidence
in a commit/PR description when those artifacts are part of the task.

From lstmemery/skills, MIT.

More from lstmemery/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 4, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lstmemery

Cite this page

diagnosing-bugs skill. Agent Mart. https://agentmart.dev/skills/lstmemery-diagnosing-bugs (last updated 2026-10-24)