agentleFS
hamakyohamakyo/okf-skills/skills/investigate-bug/SKILL.md

investigate-bug

Skill2 starsChanged 3 months agoMITView on GitHub

Use when a defect, regression, failing test, incident, or unclear failure needs investigation. Reproduce and analyze before fixing. Do not use when the exact root cause and approved fix are already known.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. danielvm-git/bigpowers★ 252same name
    2. jamdotdev/jam-plugin★ 2same name
    3. jasonhulbert/skills★ 1same name
    4. napnap11/claude-skills★ 1same name
    5. bsafronov/prosto-skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 11

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this Skill when:

    line 10
  2. Distinctive:

    Do not use this Skill when:

    line 17
  3. Distinctive:

    Before editing code, read:

    line 32
  4. Distinctive:

    Run the failing test, command, or scenario when possible.

    line 44
  5. Distinctive:

    Only implement the fix if the user requested implementation or the task clearly expects it.

    line 50
  6. Distinctive:

    Do not jump directly to a fix before reproduction or evidence.

    line 54
  7. Distinctive:

    Do not rewrite broad areas while investigating.

    line 55
  8. Distinctive:

    Do not ignore OKF if it defines the expected behavior.

    line 56
  9. Distinctive:

    Do not treat speculation as confirmed root cause.

    line 57
  10. Distinctive:

    Do not remove failing tests to make the suite pass.

    line 58
  11. Distinctive:

    Do not add secrets, credentials, private URLs, or personal data to logs or docs.

    line 59

“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

When to use

Use this Skill when:

  • A failure needs reproduction.
  • The root cause is unknown.
  • A regression or incident may affect multiple areas.
  • The user asks for diagnosis, triage, or investigation.

Do not use this Skill when:

  • The task is a straightforward implementation request.
  • The exact fix is already known and only needs to be applied.
  • The work is only adding test coverage for known behavior.

Inputs

  • Bug report, failing command, stack trace, screenshot, or reproduction notes.
  • Expected behavior and actual behavior.
  • Environment details if available.
  • Relevant OKF documents if the behavior is domain-specific.

Required context

Before editing code, read:

  • README.md
  • AGENTS.md or CLAUDE.md, depending on the tool in use
  • okf/index.md and relevant OKF documents when the bug relates to documented behavior
  • Existing tests for the affected area
  • Recent changes or git diff when the bug may be introduced locally

Workflow

  1. Capture the reported symptom.
  2. Identify or create the smallest reproduction path.
  3. Run the failing test, command, or scenario when possible.
  4. Compare actual behavior with documented or expected behavior.
  5. List plausible root causes with evidence.
  6. Inspect the narrowest relevant code paths.
  7. Determine impact scope and whether related behavior may also be affected.
  8. Propose the smallest fix and the test that should prevent recurrence.
  9. Only implement the fix if the user requested implementation or the task clearly expects it.

Guardrails

  • Do not jump directly to a fix before reproduction or evidence.
  • Do not rewrite broad areas while investigating.
  • Do not ignore OKF if it defines the expected behavior.
  • Do not treat speculation as confirmed root cause.
  • Do not remove failing tests to make the suite pass.
  • Do not add secrets, credentials, private URLs, or personal data to logs or docs.

Completion checklist

  • Symptom is described.
  • Reproduction was attempted and result is documented.
  • Expected behavior source is identified or uncertainty is stated.
  • Root cause candidates are ranked by evidence.
  • Impact scope is summarized.
  • Minimal fix and test plan are proposed or implemented.

Expected final response

Report:

  • Reproduction steps and result.
  • Most likely root cause.
  • Impact scope.
  • Minimal fix plan or implemented fix.
  • Tests or checks run.
  • Remaining unknowns.

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.