agentleFS
tboome33tboome33/obsidian-mcp-router/skills/autoresearch/SKILL.md

autoresearch

Skill1 starsChanged 7 months agoApache-2.0View on GitHub

Run an autonomous WEB-fed research loop on a topic. Iterates web-search → fetch → synthesize → file as wiki pages until depth is reached. Each iteration narrows the gap between what's known (in the wiki) and what's still missing. Use when the user explicitly says "research X on the web", "go research X", "deep dive online into X", "find new info about X", "build a wiki on X", "/autoresearch", or any phrasing that implies fetching NEW information from the internet. Do NOT use when the user wants answers from the existing wiki only — that's `wiki-query`. If "research X" is ambiguous, ask which is intended before kicking off the loop (it costs real tokens).

104 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use aeon-update, auto-workflow 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.
  • aaronjmarsSkill

    aeon-update

    Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.

    Also in 4 projects that use this

  • aaronjmarsSkill

    auto-workflow

    Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.

    Also in 4 projects that use this

  • +10 more from aaronjmars

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 100 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If absent → write one based on the user's request, with this structure:

    line 40
  2. Very specific:

    Read program.md, look at ## Open Questions.

    line 83
  3. Distinctive:

    Use WebSearch with a focused query derived from the open question.

    line 89
  4. Distinctive:

    Create/update entity pages

    line 101
  5. Distinctive:

    Update index, log, hot

    line 102
  6. Very specific:

    After ingestion, update program.md:

    line 106
  7. Very specific:

    Add filed sources to ## Filed Sources (with wikilinks)

    line 107
  8. Very specific:

    If an open question was answered: move it to ## Closed Questions with the wikilink to the synthesizing page

    line 108
  9. Distinctive:

    Don't autoresearch without a program.

    line 131
  10. Distinctive:

    Don't fetch every search result.

    line 132
  11. Distinctive:

    Don't summarize the same source from multiple search results.

    line 133
  12. Distinctive:

    Don't paste full source text into wiki pages.

    line 134
  13. Distinctive:

    Don't skip user confirmation before running.

    line 135

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

autoresearch

Driven by an explicit research program (program.md) so the loop has clear exit criteria. Without a program, it spirals or stops too early.

Pre-conditions

  1. Target vault has wiki/ scaffolding.
  2. WebSearch and WebFetch tools are available (Claude Code provides these).
  3. Vault is online.

Steps

0. No topic in mind? Ask which pages deserve a programme (v0.69.0+, borrowing C10)

Only when the user has NOT named a topic — "what should I research next?", "where are the gaps?". If they named one, skip straight to step 1.

mcp__obsidian-router__find_boundary_pages({ vault, limit: 10 })

It ranks the wiki's "frontier" pages — the crossroads many pages link to that stay thin inside — deterministically, from the knowledge graph. Present the top few as candidate subjects for a new programme and let the user choose. Never pick for them, and never open a programme off the back of a score alone.

This is upstream of the loop, and must stay there. Step 2a below already picks the least-covered question inside an existing programme, gauged with search_smart — that mechanism works and is not to be replaced. Boundary scoring answers a different question, one storey up: which page deserves a programme at all. Wiring it into 2a would break a working selector to solve a problem it does not have.

Say plainly what the ranking is worth: it proposes attention, it does not establish importance. Index and hub pages legitimately surface near the top, and a thin page is very often thin on purpose. If the tool reports no graph (or one too old to carry substance measurements), say so and offer /wiki-graph — do not fall back to guessing a topic.

1. Get or create the research program

Look for wiki/programs/<topic-slug>.md:

mcp__obsidian-router__get_file({ vault, path: "wiki/programs/<slug>.md" })

If absent → write one based on the user's request, with this structure:

---
type: program
topic: "<user-given topic>"
started_at: <ISO>
max_iterations: 5
status: in-progress
---

## Objectives

- <bullet 1>
- <bullet 2>
- <bullet 3>

## Constraints

- <e.g., focus on academic sources, exclude reddit, time-bound to 2020-2026>

## Open Questions

- <q1>
- <q2>

## Filed Sources

(updated by the loop)

## Closed Questions

(moved here when answered, with a wikilink to the synthesizing page)

Show the program to the user and ask "looks right? proceed?". Don't run autonomously without confirmation — autoresearch can burn through a lot of tokens.

2. The loop

For each iteration (up to max_iterations):

2a. Pick the most underspecified open question

Read program.md, look at ## Open Questions. Pick the question least covered by existing wiki pages.

How to gauge coverage: run mcp__obsidian-router__search_smart({ vault, query: "<question>", limit: 5 }). If top result has score > 0.65, the wiki has decent coverage — pick a different question or stop.

2b. Search the web

Use WebSearch with a focused query derived from the open question. Don't search broadly ("X") — search specifically for what's missing.

Pick 2-4 most promising results. Score by: source authority (academic > blog > forum), recency (depending on topic), specificity to the question.

2c. Fetch and clean

For each picked result, use WebFetch (or invoke the defuddle skill first if the page is a noisy webpage). Don't fetch all 4 — fetch in serial, skip if the title shows it's not relevant after fetching the metadata.

2d. File via wiki-ingest

For each useful fetch, invoke the wiki-ingest skill (in-process — same conversation, you already know how). It will:

  • File the source
  • Create/update entity pages
  • Update index, log, hot

2e. Update the program

After ingestion, update program.md:

  • Add filed sources to ## Filed Sources (with wikilinks)
  • If an open question was answered: move it to ## Closed Questions with the wikilink to the synthesizing page
  • Maybe ADD new open questions surfaced by the new sources (the wiki grows organically — this is the point)

2f. Stop conditions

Halt the loop when:

  • All ## Open Questions are closed → success
  • max_iterations reached → emit "depth limit, here's where we got" report
  • The web is returning nothing new (seen this domain before, all sources already filed) → diminishing returns, halt
  • A fetch fails repeatedly → bail with diagnostics

3. Final report

Compose a short summary turn:

  • N sources filed
  • M open questions closed
  • K open questions remaining (with reasons)
  • Path to program.md so the user can re-run later or curate

Mark program.md status: completed (or paused if iterations exhausted).

Anti-patterns

  • Don't autoresearch without a program. Open-ended research with an LLM is a recipe for context-burn.
  • Don't fetch every search result. Be selective — usually 2-3 of 8 are worth reading.
  • Don't summarize the same source from multiple search results. Dedupe by URL before fetching.
  • Don't paste full source text into wiki pages. The wiki-ingest skill handles synthesis; respect it.
  • Don't skip user confirmation before running. The loop costs real tokens.

Output format

While running, emit terse progress lines (one per iteration):

[1/5] Question: How does X work?
      → Searched: "X mechanism", picked 3/8 results
      → Fetched: <URL1>, <URL2>, <URL3>
      → Filed: [[concepts/X]] (new), [[entities/Y]] (updated), [[sources/Smith2024]]
      → Closed question: ✓

Final summary:

✅ Autoresearch complete on `<topic>`.
   Iterations used: 4/5
   Sources filed: 11
   Questions closed: 5/5
   Open questions remaining: 0
   Program: wiki/programs/<slug>.md

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.