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

investigate

Skill2 starsChanged 8 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.

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

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 115 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not for a request to change code: that's a 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 35

“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

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's a plan or a direct edit.

<!-- chat: skip -->

A plan goes through plan mode (/plan).

<!-- chat: end -->

Procedure

<!-- chat: skip -->
  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.
<!-- chat: end -->
  1. 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

<!-- chat: skip -->
  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.
<!-- chat: end --><!-- chat: only In claude.ai chat, the code the user pasted is all you have. Answer from it, citing the file and line where the paste shows them, each claim labelled per `rules/evidence.md` section 1. If the answer turns on code that isn't pasted, say which and ask for it. When the question compares approaches, one of them is the cheapest option, per `rules/change.md` section 7. -->

Symptom

<!-- chat: skip -->
  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.
<!-- chat: end --><!-- chat: only In claude.ai chat, nothing can be run, so read instead. Trace from the entry point to where observed diverges from expected, and stop at library boundaries. State one hypothesis ("caused by X in file Y at line Z") before checking it against the paste. Ask for logs or a missing file instead of guessing at them. After 3 hypothesis cycles, report what was ruled out. -->
  1. Across a dependency boundary, name misuse vs defect per rules/evidence.md section 3.

Output

  • Short answer: inline, first line is the answer.
<!-- chat: skip -->
  • 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 the reply rules/output.md section 3 describes, its headline the root cause or answer in one sentence.
<!-- chat: end --><!-- chat: only In claude.ai chat, a symptom gets the same sections in the reply, with no report file: the root cause or answer first, then findings with their labels, each hypothesis and its outcome, and the next step. --><!-- chat: skip -->
# <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: rules/workflow.md section 4.

Plan mode

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

<!-- chat: end -->

Stop

  • Never edit source.
<!-- chat: skip -->
  • The one exception is the debugger's single reverted probe.
<!-- chat: end -->
  • 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.