agentleFS
dprakash2101dprakash2101/dotnet-production-agent-skills/skills/bug-investigation/SKILL.md

bug-investigation

Skill4 starsChanged 53 days agoMITView on GitHub

Diagnose a .NET defect from symptom to root cause and minimal fix. Use for unexpected behavior, exceptions, regressions, data loss, or production defects; diagnosis alone does not authorize code changes.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow: symptom -> flow -> data -> divergence -> root cause -> minimal fix -> impact check -> validation.

    line 8
  2. Distinctive:

    Test competing hypotheses with targeted inspection, logs, or tests.

    line 14
  3. Distinctive:

    Search callers before changing shared code.

    line 15
  4. Distinctive:

    If implementation is authorized, make the smallest fix that addresses the cause and add a regression test when practical.

    line 16
  5. Distinctive:

    Do not fix unrelated warnings or failures.

    line 18
  6. Distinctive:

    Keep a compact evidence ledger separating observed facts, competing hypotheses, checks performed, and conclusions.

    line 20

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bug investigation

Follow: symptom -> flow -> data -> divergence -> root cause -> minimal fix -> impact check -> validation.

  1. Restate the observed and expected behavior, conditions, evidence, and affected scope. Distinguish facts from hypotheses.
  2. Reproduce when practical or identify the narrowest trustworthy evidence. Do not edit from an error message alone.
  3. Trace the actual execution path from entry point through the relevant service and integration/data boundary.
  4. For data or mapping defects, follow the value through request DTO -> mapper -> domain model -> business logic -> outgoing model/external system. Find the exact transition where it changes or disappears.
  5. Test competing hypotheses with targeted inspection, logs, or tests. Identify cause, not merely the line that throws.
  6. Search callers before changing shared code. Determine whether the behavior is global or flow-specific.
  7. If implementation is authorized, make the smallest fix that addresses the cause and add a regression test when practical.

Do not fix unrelated warnings or failures. Report uncertainty, reproduction gaps, and unrelated failures explicitly.

Keep a compact evidence ledger separating observed facts, competing hypotheses, checks performed, and conclusions. Report missing reproduction evidence rather than presenting a plausible hypothesis as verified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.