agentleFS
dafaalzdafaalz/agent-skills/skills/recursive-research/SKILL.md

recursive-research

Skill2 starsChanged 52 days agoMITView on GitHub

Use when researching a topic to expert depth, tiering sources by reliability, or mapping state of the art before a design spec or a plan. Don't use for session summaries (use summarize), code review (use code-review), or packaging prompts for an external model (use web-advisor-prompt).

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Read references/source-tiering.md when you assign a tier to a source or pick seed sources.

    line 10
  2. Very specific:

    Write-Target Boundary. Write evidence only under .agents/research/<slug>/.

    line 13
  3. Distinctive:

    Follow these six steps in sequence.

    line 27
  4. Distinctive:

    Ask the user for the topic, the evidence scope (web, local files, or both), the priority and excluded sources, and the cycle cap (default …

    line 31
  5. Very specific:

    Create .agents/research/<slug>/ with state.md, threads.md, findings.md, and the four source ledgers.

    line 33
  6. Very specific:

    When .agents/research/<slug>/state.md already exists, read it, report the last completed cycle and the next thread, and continue from that …

    line 35
  7. Distinctive:

    Run Munger inversion over the kept threads.

    line 43
  8. Distinctive:

    Run one cycle at a time.

    line 59
  9. Distinctive:

    Read the sources and harvest facts, numbers, quotes with attribution, and new names.

    line 63
  10. Very specific:

    Write cycle-NN.md with the thread, the sources, the new findings, the cross-thread links, and the open questions.

    line 65
  11. Very specific:

    Update state.md with the cycle count, the coverage per thread, and the saturation ratio of new findings to accumulated findings.

    line 66
  12. Very specific:

    Follow references/cycle-protocol.md for the checkpoint schema, the resume procedure, and the context threshold that triggers a pause before …

    line 68
  13. Distinctive:

    Test the five criteria. Move to Step 6 only when all five pass.

    line 74
  14. Distinctive:

    When the cap trips before the criteria pass, close with the gap list and state the failed criteria by number instead of claiming expert …

    line 82
  15. Very specific:

    Write synthesis.md with the findings per thread, the contradictions, and the open gaps.

    line 88
  16. Very specific:

    Write evidence only inside .agents/research/<slug>/.

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Recursive research

Research a topic to expert depth before you write a design spec or a plan. Run regulated cycles that pick the least covered thread, tier every source, save a checkpoint each cycle, and stop only when the five fitness criteria pass or the cycle cap trips.

Read references/source-tiering.md when you assign a tier to a source or pick seed sources. Read references/decision-frameworks.md before an autonomous pick and before you declare fitness. Read references/cycle-protocol.md at every cycle checkpoint and when you resume a saved run.

<HARD-GATE> Write-Target Boundary. Write evidence only under `.agents/research/<slug>/`. Do not edit application source, schemas, migrations, configuration files, or shell history. Confirm the slug and root before Step 1. </HARD-GATE>

Modes

Select a mode before Step 1.

  • Cycle mode (default). Run the loop across 3 to 5 seed threads until the five fitness criteria pass or the cap trips. Use it for a dossier, a state of the art map, or a spec input.
  • Targeted mode. Answer one bounded question across the best available sources, skip cross-thread synthesis, and return a cited brief. Callers such as brainstorming use this mode when a design needs rules rather than a dossier.

State the mode in one line before you start.

Workflow

Follow these six steps in sequence.

Step 1. Intake and state file

Ask the user for the topic, the evidence scope (web, local files, or both), the priority and excluded sources, and the cycle cap (default 8). Read the local paths when the user names them.

Create .agents/research/<slug>/ with state.md, threads.md, findings.md, and the four source ledgers. Keep the slug in kebab case at 40 characters or fewer.

When .agents/research/<slug>/state.md already exists, read it, report the last completed cycle and the next thread, and continue from that cycle instead of restarting.

Completion criterion. The user confirms the topic, the scope, and the cap in one line, and .agents/research/<slug>/state.md exists on disk.

Step 2. Seed threads

List 5 to 8 candidate threads, score them with the weighted decision matrix in references/decision-frameworks.md, and keep the top 3 to 5. Score coverage, perspective diversity, source access, and relevance to the user goal.

Run Munger inversion over the kept threads. Name the dropped thread that carries a dissenting school, a missing region, or a counter-position. Add it when the inversion finds a hole, then rescore.

In Targeted mode, keep one thread and stop.

Completion criterion. threads.md lists the kept threads with scores and the dropped candidates with a reason.

Step 3. Source plan

Tier every candidate source T1, T2, T3, or Rejected against references/source-tiering.md. Present the seed source list for the domain from the same file and let the user add or reject entries.

Reject a source that carries no named author, no data, or no citation trail. Record the tier, the URL, the author, the date, and the reason in the matching ledger.

Completion criterion. Every consulted source appears in one of the four ledgers with a tier and a reason, and zero sources carry an unstated tier.

Step 4. Cycle

Run one cycle at a time.

  1. Pick the thread with the lowest coverage.
  2. Score the candidate sources for this cycle with the matrix in references/decision-frameworks.md, then invert the pick and name the contradicting source you skipped.
  3. Read the sources and harvest facts, numbers, quotes with attribution, and new names.
  4. Tier each source into the matching ledger.
  5. Write cycle-NN.md with the thread, the sources, the new findings, the cross-thread links, and the open questions.
  6. Update state.md with the cycle count, the coverage per thread, and the saturation ratio of new findings to accumulated findings.

Follow references/cycle-protocol.md for the checkpoint schema, the resume procedure, and the context threshold that triggers a pause before the session compacts.

Completion criterion. cycle-NN.md and state.md both carry the current cycle number and agree on the findings count.

Step 5. Fitness check

Test the five criteria. Move to Step 6 only when all five pass.

  1. Coverage is the number of required subtopics in threads.md with at least one T1 or T2 source divided by the total required subtopics, reaching 80 percent or higher on every seed thread. Record the numerator, denominator, and percentage.
  2. Each thread has at least 3 T1 sources, or at least 2 T1 and 3 T2 sources when the domain contains fewer than 3 T1 sources. Record the count in threads.md.
  3. Saturation at 5 percent or lower for three consecutive cycles.
  4. Munger inversion written into gaps.md for the current knowledge state.
  5. Three or more explicit links between different threads.

When the cap trips before the criteria pass, close with the gap list and state the failed criteria by number instead of claiming expert depth.

Completion criterion. You state pass or fail for each of the five criteria with the measured value and the file that holds it.

Step 6. Close and hand back

Write synthesis.md with the findings per thread, the contradictions, and the open gaps. Write gaps.md with what you still do not know, the conflicting sources, and the bias in your source set. Write actions.md with the checklist of next actions.

Return the brief from the Handoff section to the caller. Ask the user whether to close, deepen one gap, add a thread, or continue.

Completion criterion. synthesis.md, gaps.md, and actions.md exist on disk and the brief names at least one open gap.

Handoff

Return these fields and stop when a caller invokes this skill in Targeted mode.

  • Topic and the bounded question.
  • Findings grouped by the affected layer or subsystem.
  • Citations with source titles, URLs, and tiers.
  • Rejected sources with the rejection reason.
  • Open gaps and the risk each one carries for the caller.

Boundaries

Write evidence only inside .agents/research/<slug>/. Leave application source code, database schemas, migrations, configuration files, and shell commands byte for byte. Return findings to the caller and let the caller edit its own spec and plan files.

Anti-patterns

IDTitlePattern descriptionWhy it failsConcrete fix
RR-1Flat searchRepeats queries with synonyms and never opens sourcesProduces no new evidenceOpen the source and harvest facts
RR-2Source picked for comfortConfirms the first answerHides contradicting evidenceAdd the contradicting source from the inversion
RR-3Missing checkpointFive cycles of work lost to compactionDestroys resumabilityWrite cycle-NN.md before the next cycle
RR-4Tier 3 without a citation trailSpreads an unverified claimCorrupts the evidence baseReject the source or move it to Rejected
RR-5Self-declared expert depthSkips the measured criteriaProduces false confidenceState pass or fail per criterion with the number

Quick audit checklist

CheckPassing condition
State file.agents/research/<slug>/state.md exists and names the current cycle
Source ledgersEvery source carries a tier, a URL, and a reason
Cycle checkpointcycle-NN.md exists for each completed cycle
Fitness evidenceEach of the five criteria carries a measured value
Gapsgaps.md names the unknowns, the conflicts, and the source bias
HandoffThe brief carries findings, citations, rejected sources, and gaps
BoundariesZero edits outside .agents/research/<slug>/

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.