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

investigate

Skill4 starsChanged 55 days 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.

128 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pair-agent, plan-devex-review and 10 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.
  • seek888Skill

    pair-agent

    Pair a remote AI agent with your browser. One command generates a setup key and prints instructions the other agent can follow to connect. Works with OpenClaw, Hermes, Codex, Cursor, or any agent that can make HTTP requests. The remote agent gets its own tab with scoped access (read+write by default, admin on request). Use when asked to "pair agent", "connect agent", "share browser", "remote browser", "let another agent use my browser", or "give browser access". (gstack) Voice triggers (speech-to-text aliases): "pair agent", "connect agent", "share my browser", "remote browser access".

    Also in 10 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 13 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    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 14 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 17 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 18 projects that use this

  • +1 more from seek888

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 115 edited versions we read keep these.

  • 15

    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 17
  2. Distinctive:

    Read the failing code and exact error.

    line 19
  3. Distinctive:

    Verify the authorized correction with a focused regression check.

    line 23
  4. Distinctive:

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

    line 25
  5. Distinctive:

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

    line 38
  6. Distinctive:

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

    line 42
  7. Distinctive:

    Add temporary instrumentation only at boundaries that distinguish competing hypotheses.

    line 50
  8. Distinctive:

    Run the smallest check that can disprove it.

    line 60
  9. Distinctive:

    If attempts fail or evidence conflicts, stop speculative editing and seek a discriminating observation.

    line 63
  10. Distinctive:

    Ask only for a consequential missing decision or authority the user has not supplied.

    line 66
  11. Distinctive:

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

    line 69
  12. Distinctive:

    Prefer fixing the producer or violated invariant.

    line 75
  13. Distinctive:

    Keep nearby cleanup out of scope unless it is necessary for the requested fix.

    line 79
  14. Distinctive:

    Run the cheapest regression check that observes the corrected behavior.

    line 83
  15. Distinctive:

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

    line 88

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

Diagnosis-only requests stay read-only on every path below: establish the cause and propose the correction without applying it. Existing authority for a fix does not need another approval question.

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. Correct the producer or invariant when a fix is authorized; otherwise explain the evidenced cause and proposed change.
  4. Verify the authorized correction with a 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.

  • If attempts fail or evidence conflicts, stop speculative editing and seek a discriminating observation. Re-map the flow or reconsider the abstraction when coupling is implicated; an attempt count alone does not decide the next step.
  • Ask only for a consequential missing decision or authority the user has not supplied. Inspect accepted context first and continue independent useful work.

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 requested fix.

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.