agentleFS
xingfanxiaxingfanxia/AX-skills/investigate/SKILL.md

investigate

Skill4 starsChanged 2 months agoMITView on GitHub

Diagnose unclear, intermittent, cross-component, or high-impact bugs with evidence and falsifiable hypotheses. Use when the cause is not evident, a previous fix attempt failed, behavior differs across environments, or the failure crosses data or control-flow boundaries. If the cause is already local and obvious, use the fast path instead of turning the bug into an investigation ceremony.

74 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use qa-only, document-release and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AICreator-WindSkill

    qa-only

    纯 QA 报告工具。只生成 bug 报告,不修复。

    Also in 10 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 9 projects that use this

  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 7 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 7 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 8 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 7 projects that use this

  • +3 more from AICreator-Wind
  • +1 more from ayuday

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 16

    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:

    Use the fast path for a local, reproducible failure with an evident cause:

    line 13
  2. Distinctive:

    Read the failing code and exact error.

    line 15
  3. Distinctive:

    Run the focused regression check.

    line 18
  4. Distinctive:

    Use the investigation path when the cause is unclear, intermittent, cross-component, environment-sensitive, high impact, or already …

    line 20
  5. Distinctive:

    Do not edit before the symptom is specific enough to falsify a hypothesis.

    line 33
  6. Distinctive:

    Follow the relevant value, state transition, or control path back to its origin:

    line 37
  7. Distinctive:

    Add temporary instrumentation only at boundaries that distinguish competing hypotheses.

    line 45
  8. Distinctive:

    Run the smallest check that can disprove it.

    line 55
  9. Distinctive:

    After two failed hypotheses, stop editing and re-map the data/control flow.

    line 58
  10. Distinctive:

    After three failed hypotheses, question the current abstraction, summarize the evidence, and identify the missing observation before …

    line 59
  11. Distinctive:

    Ask the user only when the next choice would materially change behavior, architecture, cost, a public contract, private data, or an …

    line 61
  12. Distinctive:

    Search official documentation or primary sources when behavior depends on an unfamiliar or version-sensitive dependency.

    line 64
  13. Distinctive:

    Prefer fixing the producer or violated invariant.

    line 70
  14. Distinctive:

    Keep nearby cleanup out of scope unless it is necessary for the fix or materially reduces recurrence risk.

    line 74
  15. Distinctive:

    Run the cheapest regression check that observes the corrected behavior.

    line 80
  16. Distinctive:

    Do not automatically freeze a directory, spawn reviewers, write a report, or run every test.

    line 85

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

Focused Investigation

Build enough evidence to identify the root cause, then make the smallest coherent fix allowed by the user's request.

Choose the path

Use the fast path for a local, reproducible failure with an evident cause:

  1. Read the failing code and exact error.
  2. Reproduce with the smallest useful command or test.
  3. Fix the producer or invariant that causes the wrong behavior.
  4. Run the focused regression check.

Use the investigation path when the cause is unclear, intermittent, cross-component, environment-sensitive, high impact, or already survived one plausible fix.

Establish the symptom

  1. Capture the exact observed behavior, expected behavior, and first known bad boundary.
  2. Find the smallest reliable reproduction. If the failure is intermittent, record the conditions and frequency instead of calling a single pass success.
  3. Separate observed facts from assumptions. Keep the evidence ledger in working context unless a durable artifact is necessary.

Do not edit before the symptom is specific enough to falsify a hypothesis.

Trace the flow

Follow the relevant value, state transition, or control path back to its origin:

  • inspect the caller and callee contracts at each boundary;
  • locate the first point where actual state diverges from expected state;
  • compare one nearby working path when it can isolate the difference;
  • inspect timestamps, filtering, caching, retries, fallbacks, and environment inputs when freshness or orchestration may be involved.

Add temporary instrumentation only at boundaries that distinguish competing hypotheses. Remove diagnostic noise after the cause is confirmed.

Test one hypothesis at a time

State one falsifiable hypothesis in this form:

Because cause, we observe symptom; changing or measuring variable should produce distinguishing result.

Run the smallest check that can disprove it. Change one meaningful variable at a time. Do not accumulate speculative patches and call the combined result proof.

  • After two failed hypotheses, stop editing and re-map the data/control flow.
  • After three failed hypotheses, question the current abstraction, summarize the evidence, and identify the missing observation before another attempt.
  • Ask the user only when the next choice would materially change behavior, architecture, cost, a public contract, private data, or an external system.

Search official documentation or primary sources when behavior depends on an unfamiliar or version-sensitive dependency. Read only the relevant contract; do not browse merely because a debugging checklist reached a certain step.

Fix the root cause

Prefer fixing the producer or violated invariant. Add a boundary guard when invalid external input is part of the real contract. Avoid duplicating validation at every layer unless each layer owns a distinct invariant.

Keep nearby cleanup out of scope unless it is necessary for the fix or materially reduces recurrence risk. If the user asked only for diagnosis, stop after proving the cause and propose the fix without modifying code.

Verify proportionally

Run the cheapest regression check that observes the corrected behavior. Add a test when it is practical and protects the failure mode. Run a broad suite only when the impact is broad, the boundary is high risk, or the user asks for release readiness.

Do not automatically freeze a directory, spawn reviewers, write a report, or run every test. Use each only to answer a concrete uncertainty.

Completion contract

Complete the investigation only when:

  • the root-cause claim is supported by observed evidence;
  • competing plausible explanations have been ruled out enough for the impact;
  • the requested fix, if authorized, passes a regression check that sees the original symptom;
  • residual uncertainty and untested environments are named honestly.

Return the diagnosis, the decisive evidence, the fix or proposed fix, the check run, and any remaining risk. Keep the explanation shorter than the evidence requires, not longer.

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.