agentleFS
ku5icku5ic/claude-kit/skills/investigate/SKILL.md

investigate

Skill2 starsChanged 55 days agoMITView on GitHub

Read-only investigation. Use when the user asks how, why, or where something works in the code, or reports unexpected behavior without asking for a change. Ends at findings, never edits.

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 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.
  • 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

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

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Not for a request to change code: that goes to plan mode (/plan) or a direct edit.

    line 12
  2. Very specific:

    Only when the question spans 2-4 unfamiliar areas, fan out one built-in Explore subagent per area in a single message.

    line 23
  3. Distinctive:

    Never edit source. The one exception is the debugger's single reverted probe.

    line 72

“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

When to use this

  • A question: how, why, or where something works, what a module does, which approach fits.
  • A symptom: unexpected behavior without a clear failing signal to fix directly.

Not for a request to change code: that goes to plan mode (/plan) or a direct edit.

Procedure

  1. Resolve external context. If the arguments contain a URL with little inline description, resolve it before anything else: identify the service from the domain, find its fetch tool with ToolSearch (app.clickup.com -> ClickUp tools, notion.so -> Notion, github.com -> gh or the GitHub tools), call it, and take the scope and requirements from what comes back. The resolved text becomes the effective arguments. Never hand a bare link to a subagent.
  2. Classify the input as a question or a symptom. For a symptom, confirm observed behavior, expected behavior, entry point, and known repro steps; if observed vs expected is still missing, ask before continuing.

Question

  1. Skim: project CLAUDE.md, rg for the names involved, read the matched sections. Answer from what was read, citing file:line, each claim labelled per rules/evidence.md section 1.
  2. Only when the question spans 2-4 unfamiliar areas, fan out one built-in Explore subagent per area in a single message. Re-verify each result's decisive claim before using it (rules/subagents.md section 2). One of the areas is the cheapest option, per rules/change.md section 7.

Symptom

  1. Delegate fault localization to the debugger agent (subagent_type: kit:debugger, foreground). It has no MCP tools, so its prompt carries fully resolved text, never a link. It follows:
    • Reproduce with the narrowest command; 3 attempts before calling it non-deterministic.
    • git log -10 --oneline -- <affected paths>; a commit aligned with onset is the prime suspect.
    • Trace from the entry point to where observed diverges from expected; stop at library boundaries; cap at 10 files.
    • State one hypothesis ("caused by X in file Y at line Z") before checking it.
    • Probe least-invasive first: read closer, run an existing test, git bisect, then one reverted log line or assertion.
    • Max 3 hypothesis cycles; if exhausted, report what was ruled out.
  2. Across a dependency boundary, name misuse vs defect per rules/evidence.md section 3.

Output

  • Short answer: inline, first line is the answer.
  • Symptom, or a question that needed a fan-out: a report at the path kit scratch-dir debug <scope-slug> or kit scratch-dir explore <scope-slug> prints, then print the path, the root cause or answer in one sentence, and the next step.
# <Debug|Explore>: <one-line description>

Generated: <ISO timestamp>
Scope: <entry point or area>

## Observed vs expected (symptom) / Question

## Findings

<file:line citations, each labelled verified / likely / hypothesis / unknown>

## Hypotheses (symptom)

1. <hypothesis> -> <confirmed / ruled out / inconclusive>

## Root cause / Answer

## Next step

<a one-line fix to make directly, or "plan it: <scope>">

Questions the requester can answer go to AskUserQuestion, recorded as decisions; no open-questions list.

Plan mode

Outside plan mode, stop at findings. In plan mode, the findings feed the plan file instead of a separate report.

Stop

  • Never edit source. The one exception is the debugger's single reverted probe.
  • Scope growing beyond the question or entry point: surface and ask.
  • Root cause in a dependency or external system: document the boundary and stop.

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.