agentleFS
leekleek/agent-skills/skills/research/SKILL.md

research

Skill3 starsChanged 2 months agoMITView on GitHub

Investigate a question against high-trust primary sources and capture the findings as a cited Markdown file. Use when the user wants a topic researched, docs or package facts gathered, reading legwork delegated, or a wayfinder research ticket resolved.

187 other projects use a version of this, 47 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use writing-beats, setup-ts-deep-modules and 3 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.
  • RoentekSkill

    writing-beats

    Writing, exploit — assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    Also in 23 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 16 projects that use this

  • pahwarangerSkill

    setup-skills

    Sets up an `## Agent skills` block in AGENTS.md/CLAUDE.md and `docs/agents/` so the engineering skills know this repo's ticket tracker (GitHub or local markdown), triage label vocabulary, and domain doc layout. Run before first use of `to-tickets`, `to-prd`, `triage`, `diagnose`, `tdd`, `improve-codebase-architecture`, or `zoom-out` — or if those skills appear to be missing context about the ticket tracker, triage labels, or domain docs.

    Also in 8 projects that use this

  • RoentekSkill

    writing-shape

    Writing, exploit — shape raw material into an article, paragraph by paragraph.

    Also in 21 projects that use this

  • +1 more from Roentek

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 161 edited versions we read keep these.

  • 0

    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. Very specific:

    Append to the file as you go: after each source settles a claim, add it with its citation (a URL, a file path, or package@version).

    line 25

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

Research

Answer one question from primary sources and leave a cited Markdown file behind.

The question is $ARGUMENTS. If that is empty, the question is the one stated in the conversation; if there is none either, stop and report that you need the question as an argument (in Claude Code this skill runs in its own subagent and cannot see the conversation).

Where this runs

In Claude Code with the plugin installed, the body below runs in the researcher subagent and the answer returns to the caller when it finishes. In other harnesses, dispatch it to a sub-agent if one exists (read-only for source sweeps; general-purpose when it must fetch or write) or run it inline and say so. Either way the work must finish inside this session: a sub-agent's task handle dies at /clear, session end, or compaction, so never leave one running, and in everything durable (tickets, resolution comments, hand-off text) reference the findings by file path, never by task ID.

The research brief

  1. Create the findings file first, before any investigation: a single Markdown file holding the question and an empty findings list. Save it where the repo already keeps such notes; match the existing convention. If there is none, .scratch/research/<slug>.md is the default (an inbox that scratch-cleanup later files into docs/). A run cut off partway then still leaves its findings behind.
  2. Investigate the question against primary sources: official docs, package source (vendor/ for Composer, node_modules/ for npm), specs, first-party APIs, never a secondary write-up of them. Follow every claim back to the source that owns it. In a Laravel project with Boost, prefer the search-docs MCP tool over web search for framework and package questions, it returns version-pinned ecosystem docs.
  3. Append to the file as you go: after each source settles a claim, add it with its citation (a URL, a file path, or package@version). Never hold findings back to write in one pass at the end.
  4. Budget turns. This run has a hard turn cap and is killed without a final message when it hits it. At about 100 turns, stop investigating whatever is left: record the open parts as unanswered in the file, then finish with steps 5 and 6.
  5. End the file with a short What this unblocks section: the answer in one or two lines (or what stayed unanswered and why), and what it makes decidable, no pipeline banners or skill routing.
  6. Report back: the answer in a few lines, the file path, and a Next block (below). The final message is data for the caller, who relays the answer plus the path to the user rather than re-pasting the document.

Wayfinder integration

When resolving a wayfinder research ticket, follow the configured tracker's Wayfinding operations. Claim it first through the Claim operation so a concurrent session cannot pick it up mid-flight. Write the findings file (no branch: see the tracker's Working in parallel rules), link it through the Assets operation, then use the Resolve operation to record the answer and the file pointer and close the ticket. Research tickets are the one type a charting session may run several of in parallel, all collected before the session ends.

Next block

End the report with the conditions that apply, most likely first (no pipeline banner: research is supporting work). The caller routes on them:

  • Answered, and a decision was waiting on it → /grill-me on that decision, naming it
  • Answered a wayfinder ticket → /wayfinder <map> for the next frontier ticket
  • Answered, and it changes a published spec → /to-spec to revise, naming which section is now wrong
  • Unanswerable from primary sources → say so plainly; /to-questionnaire if a person holds the answer
  • Answered, but surfaced a new unknown → /research on the new question, stated as a question

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.