agentleFS
bsafronovbsafronov/prosto-skills/skills/.experimental/investigate-bug/SKILL.md

investigate-bug

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Identify the mechanism behind an unexplained failure by discriminating plausible causes. Use when a bug, intermittent failure, or performance regression has an unknown cause. Do not use for repairing an established cause, implementing expected new behavior, or verifying a known change alone.

5 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

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    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:

    When access or observability prevents discrimination, report the exact missing observation and how its possible results separate the live …

    line 29

“Common” is measured: kept by at least 6 in 10 of the 5 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

Investigate Bug

Explain the observed failure with a mechanism that survives a meaningful attempt to distinguish it from plausible alternatives.

  • Separate observations from explanations: record the triggering inputs, relevant state or event order, actual result, and expected behavior. A recent change or correlated metric is a lead, not a cause. If expected behavior itself is unsettled, identify that missing decision before classifying it as a defect.
  • Trace the failing path only far enough to locate competing mechanisms. Rank hypotheses by their fit to the evidence and the cost of distinguishing them. Choose a probe whose possible results would change that ranking; vary the suspected cause while holding consequential inputs constant. Repeating the same broad failing check adds little when both explanations predict it.
  • Interpret each probe against its prediction. For intermittent failures, retain the event order, state, workload, and environment that make the contrast meaningful; one clean run does not disprove a race. A reproduction, comparison, or trace must connect the proposed mechanism to the observed failure, not just show that some error occurs.
  • Close with the supported mechanism, decisive evidence, and remaining uncertainty. When access or observability prevents discrimination, report the exact missing observation and how its possible results separate the live hypotheses. An untested favorite remains a hypothesis.

This outcome ends at a supported cause or a specific diagnostic blocker. Diagnosis alone does not authorize a product repair. When repair is also requested, carry its evidence into that work instead of restarting the investigation. Comparing external sources, specifying desired behavior, and requested test-first sequencing remain independently useful outcomes; none is a prerequisite here.

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.