agentleFS
kevinxo328kevinxo328/agent-skills/skills/investigate/SKILL.md

investigate

Skill0 starsChanged 4 months agoMITView on GitHub

Research an open question with discipline: verify-don't-assume → evaluate → report → exhaustively question. Use whenever the user is making a solution / architecture / setup decision — technology selection, architectural design, third-party option evaluation, configuration choices, feasibility studies, or breaking into an unfamiliar codebase. Triggers include: "investigate", "evaluate", "research", "how should we design X", "what should we use for Y", "is X viable".

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

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 7

    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:

    Do before think: Every conclusion must rest on verifiable evidence.

    line 17
  2. Very specific:

    Run --version / --help / an actual invocation > read README

    line 59
  3. Distinctive:

    Read LICENSE > read README intro

    line 60
  4. Distinctive:

    Read source > trust docs

    line 61
  5. Distinctive:

    Test on real samples / real environment > look at metrics or marketing

    line 62
  6. Distinctive:

    After reporting, wait for the user to decide.

    line 150
  7. Distinctive:

    Every question above has a clear answer and none of them breaks the Phase 2 conclusion

    line 170
  8. Distinctive:

    If any answer is "yes", return to the matching phase and redo it.

    line 187

“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

Investigate

A discipline for researching an open question. Four phases, run in order. Skipping any phase requires stating why and getting the user's agreement first.

Core Principle

Do before think. Every conclusion must rest on verifiable evidence. Assumptions do not count as evidence.

Anti-Pattern: Evaluating from Unverified Premises

DO NOT discuss the merits of any option before completing Phase 1.

This produces garbage conclusions:

  • Intuition scores dressed up as criteria
  • Comparing two options when basic facts about neither have been checked
  • Inferring real-world quality from a README intro or a paper's metric
  • Assuming an API / flag / setting exists without reading source or running the command
WRONG (lateral inference):
  "Option A looks good, quality should be fine"  → license/real-sample not checked
  "This library should have a streaming API"     → source not read
  "The current architecture should plug in fine" → relevant modules not read
  "The detector probably catches it"             → overlay images not viewed

RIGHT (verify, then evaluate):
  Read LICENSE → confirm commercial use → then evaluate further
  Read source / run --help → confirm API exists → then design integration
  Read existing modules → confirm interface + coupling surface → then propose architecture
  Read overlay images → confirm detection quality → then talk about metrics

Phase 1 — Don't Assume, Verify

Turn every "I think" into "I saw".

Actions

  • Write down every premise this question relies on (do not keep them in your head)
  • Pair each premise with the cheapest possible verification action
  • Run the verifications. If a premise turns out false, stop and reframe the question

Verification Tools, in Priority Order

  1. Read files / overlay images > grep-and-guess from filenames
  2. Run --version / --help / an actual invocation > read README
  3. Read LICENSE > read README intro
  4. Read source > trust docs
  5. Test on real samples / real environment > look at metrics or marketing

Red Flags (Stop When You See One)

  • Sentences containing "should", "in theory", "probably", "looks like", "I recall"
  • Comparing third-party options without having opened LICENSE
  • Discussing architectural integration without having Read the relevant modules
  • Discussing detection / quality without having opened overlay / benchmark images
  • Inferring an API / flag / setting from training-data memory

Phase 1 Done Condition

  • A table exists: premise → verification method → result
  • No conclusion below rests on an unverified premise

Without this checklist complete, do not enter Phase 2.


Phase 2 — Evaluation with Explicit Criteria

Pick the criteria set that matches the research type. Check criteria in order; any fail eliminates the option — do not continue to the next criterion.

Third-Party Option / Model / Library

  • License permits the target use case (production / commercial / etc.)
  • Compatible with the existing stack (no major rework)
  • Resource cost is acceptable (weight size, memory, runtime)
  • Real-sample quality is acceptable (measured, not metrics or marketing)
  • Maintenance is acceptable (active repo, no large unresolved issue backlog)

Architecture / Design Proposal

  • Solves the real problem (not a related-sounding but unimportant one)
  • Reversibility is acceptable (cost and feasibility of rolling back)
  • Coupling surface is acceptable (how many modules / tests are affected)
  • Consistent with existing conventions (or there is an explicit reason to diverge; consult relevant ADRs)
  • Better than the current approach — and worse — both written down

Configuration / Setup Decision

  • The effect of the setting has been verified in the real environment (not inferred from docs)
  • Blast radius is clear (which files / flows / users are affected)
  • Default and override behaviour have both been tried
  • The change is reversible

Anti-Pattern: Averaging Away a Hard Fail

DO NOT use "but the other criteria look great" to cover a hard fail.

A hard-criterion fail (license, reversibility, compatibility) is a fail. It cannot be compensated by other criteria.

Phase 2 Done Condition

  • Every criterion has Phase 1 evidence attached (file path / command output / screenshot)
  • No score is an "impression score"

Phase 3 — Structured Report

Default: report inside the conversation only. Do not write files, open changes, or write memory on your own initiative.

Report Format

## Conclusion
One sentence: feasible / not feasible / undecided, plus the single deciding factor.

## Verified Premises (Phase 1)
- premise → verification method → result

## Evaluation (Phase 2)
| Criterion | Result | Evidence (file path / command output) |
|-----------|--------|----------------------------------------|
| ...       | ✅/❌  | ...                                    |

## Unanswered Questions
- ...

## Recommendation
- Recommended next step, and why

Anti-Pattern: Pushing the Next Step

DO NOT end the report with "Should we start work?" / "Should we open a change?" or similar.

After reporting, wait for the user to decide. Persistence actions (writing a research file, writing memory, opening a ticket) happen only after the user explicitly asks.


Phase 4 — Exhaustive Questioning

The second-biggest failure mode in research is stopping at the first plausible answer.

Questioning Checklist (Attempt Each At Least Once)

  • Are there other options? List at least two alternatives and evaluate them with the same criteria
  • Under what conditions would this conclusion be wrong? Imagine a scenario that overturns it; if you can't, verification is probably insufficient
  • What is the worst case? Blast radius and rollback cost when the option fails
  • What did I skip? Re-read the Phase 1 red-flag list and confirm no hidden premise remains
  • Will this conclusion still hold in 6 months? Will the license change? Will the library deprecate? Will requirements shift?

Stop Conditions

You may stop only when one of these is true:

  • Every question above has a clear answer and none of them breaks the Phase 2 conclusion
  • Remaining questions need information only the user has, and they are listed under "Unanswered Questions" in the report
  • The user has explicitly said you may stop

"I'm tired" / "this is probably enough" are not stop conditions.


End-of-Phase Self-Check

[ ] Did I skip verifying any premise in Phase 1?
[ ] Did I use an impression as evidence?
[ ] Did I write a file / open a change / write memory on my own initiative?
[ ] Did I cut Phase 4 short?

If any answer is "yes", return to the matching phase and redo it.

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.