agentleFS
eliransueliransu/digital-brain/skills/autoresearch/SKILL.md

autoresearch

Skill1 starsChanged 7 months agoMITView on GitHub

Autonomous iterative research loop. Takes a topic, runs web searches, fetches sources, synthesizes findings, and files everything into the wiki as structured pages. Based on Karpathy's autoresearch pattern: program.md configures objectives and constraints, the loop runs until depth is reached, output goes directly into the knowledge base. Triggers on: "/digital-brain:autoresearch", "autoresearch", "research [topic]", "deep dive into [topic]", "investigate [topic]", "find everything about [topic]", "research and file", "go research", "build a wiki on".

68 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use conversion-ops, revenue-intelligence and 8 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.
  • admdanielpaulinoSkill

    conversion-ops

    Also in 3 projects that use this

  • admdanielpaulinoSkill

    revenue-intelligence

    Also in 3 projects that use this

  • browserbaseSkill

    browser-trace

    Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network/console/DOM activity, attach a trace to an in-progress session, or feed structured per-page summaries back into an agent loop so its next iteration learns from the last one.

    Also in 3 projects that use this

  • pedronauckSkill

    alex-hormozi-pitch

    Create irresistible offers and pitches using Alex Hormozi's methodology from $100M Offers. Guides through value equation, guarantee frameworks, pricing psychology, and creating offers "too good not to take" for any product or service.

    Also in 3 projects that use this

  • Kastalien-ResearchSkill

    effect-ts

    Comprehensive guide for Effect-TS, the functional TypeScript library. Use when building Effect applications, especially MCP servers. Covers correct APIs, common misconceptions, and MCP-specific patterns.

    Also in 3 projects that use this

  • aviz85Skill

    deep-interview

    Conduct deep adaptive interviews to extract and organize knowledge into structured files and folders. Use when user says "interview me about X", "deep interview", "extract my knowledge", "build knowledge base from interview", "ask me questions about X", or wants to systematically capture expertise on any topic through guided questioning.

    Also in 3 projects that use this

  • +2 more from admdanielpaulino

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 9

    Distinctive

    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/program.md to load the research objectives and constraints.

    line 24
  2. Very specific:

    When the user says /autoresearch [topic] or "research X", use the given topic verbatim and skip the sections below.

    line 34
  3. Very specific:

    When /autoresearch is invoked WITHOUT a topic AND the vault has adopted DragonScale, default to surfacing the frontier of the vault as a …

    line 40
  4. Very specific:

    Run ./scripts/boundary-score.py --json --top 5.

    line 54
  5. Very specific:

    Helper failure handling: if the helper exits non-zero, emits invalid JSON, or returns an empty results array, set BOUNDARY_MODE=0 and fall …

    line 55
  6. Distinctive:

    If the user picks 1-5, use the selected page's title as the topic.

    line 57
  7. Distinctive:

    If the user types free text, use that.

    line 58
  8. Distinctive:

    If the user cancels or does not choose, fall through to C.

    line 59
  9. Very specific:

    When BOUNDARY_MODE=0 or the user declined every frontier pick, ask: "What topic should I research?"

    line 67
  10. Distinctive:

    After research is complete, create these pages:

    line 98
  11. Distinctive:

    Use source frontmatter (type, source_type, author, date_published, url, confidence, key_claims)

    line 102
  12. Distinctive:

    Only create a page if the concept is substantive enough to stand alone

    line 107
  13. Distinctive:

    Check the index first: update existing concept pages rather than creating duplicates

    line 108
  14. Distinctive:

    Check the index first: update existing entity pages

    line 112
  15. Very specific:

    Update wiki/index.md. Add all new pages to the right sections

    line 180
  16. Very specific:

    Update wiki/hot.md with the research summary

    line 190
  17. Very specific:

    Follow the limits in references/program.md:

    line 221
  18. Distinctive:

    If a constraint conflicts with completeness, respect the constraint and note what was left out in the Open Questions section.

    line 228

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

You are a research agent. You take a topic, run iterative web searches, synthesize findings, and file everything into the wiki. The user gets wiki pages, not a chat response.

This is based on Karpathy's autoresearch pattern: a configurable program defines your objectives. You run the loop until depth is reached. Output goes into the knowledge base.


Before Starting

Read references/program.md to load the research objectives and constraints. This file is user-configurable. It defines what sources to prefer, how to score confidence, and any domain-specific constraints.


Topic Selection

Three paths to a topic:

A. Explicit topic (always respected)

When the user says /autoresearch [topic] or "research X", use the given topic verbatim and skip the sections below.

B. Boundary-first selection (agenda control, opt-in)

This is agenda control, not pure memory. DragonScale Memory.md Mechanism 4 labels this mechanism as such because it shapes which direction the research agent moves next. Users who want a strict memory-layer subset should omit this path entirely.

When /autoresearch is invoked WITHOUT a topic AND the vault has adopted DragonScale, default to surfacing the frontier of the vault as a set of candidate topics the user can accept, override, or decline.

Feature detection (shell):

if [ -x ./scripts/boundary-score.py ] && [ -d ./.vault-meta ] && command -v python3 >/dev/null 2>&1; then
  BOUNDARY_MODE=1
else
  BOUNDARY_MODE=0
fi

When BOUNDARY_MODE=1:

  1. Run ./scripts/boundary-score.py --json --top 5. Returns the top 5 frontier pages by boundary_score = (out_degree - in_degree) * recency_weight.
  2. Helper failure handling: if the helper exits non-zero, emits invalid JSON, or returns an empty results array, set BOUNDARY_MODE=0 and fall through to section C below. Do NOT prompt the user with an empty candidate list, and do NOT improvise a topic.
  3. Present the candidate list to the user: "Your top frontier pages are: [list]. Research which one? (1-5, or type a topic to override, or say 'cancel' to be asked normally.)"
  4. If the user picks 1-5, use the selected page's title as the topic.
  5. If the user types free text, use that.
  6. If the user cancels or does not choose, fall through to C.

The boundary score is a heuristic, not an objective measure of what SHOULD be researched. The user always has the option to type a free-text topic to override the surfaced candidates.

Link-resolution semantics: the boundary helper uses filename-stem wikilink resolution only. [[Foo]] is counted as an edge to Foo.md anywhere in the vault. Aliases declared via frontmatter aliases: are not parsed. Folder-qualified links (e.g. [[notes/Foo]]) are resolved by stem only. This matches default Obsidian behavior for unique filenames but does not implement full Obsidian alias resolution.

C. User-chosen (default when B is unavailable)

When BOUNDARY_MODE=0 or the user declined every frontier pick, ask: "What topic should I research?"


Research Loop

Input: topic (from Topic Selection, above)

Round 1. Broad search
1. Decompose topic into 3-5 distinct search angles
2. For each angle: run 2-3 WebSearch queries
3. For top 2-3 results per angle: WebFetch the page
4. Extract from each: key claims, entities, concepts, open questions

Round 2. Gap fill
5. Identify what's missing or contradicted from Round 1
6. Run targeted searches for each gap (max 5 queries)
7. Fetch top results for each gap

Round 3. Synthesis check (optional, if gaps remain)
8. If major contradictions or missing pieces still exist: one more targeted pass
9. Otherwise: proceed to filing

Max rounds: 3 (as set in program.md). Stop when depth is reached or max rounds hit.

Filing Results

After research is complete, create these pages:

wiki/sources/. One page per major reference found

  • Use source frontmatter (type, source_type, author, date_published, url, confidence, key_claims)
  • Body: summary of the source, what it contributes to the topic

wiki/concepts/. One page per significant concept extracted

  • Only create a page if the concept is substantive enough to stand alone
  • Check the index first: update existing concept pages rather than creating duplicates

wiki/entities/. One page per significant person, org, or product identified

  • Check the index first: update existing entity pages

wiki/synthesis/. One synthesis page titled "Research: [Topic]"

  • This is the master synthesis. Everything comes together here.
  • Sections: Overview, Key Findings, Entities, Concepts, Contradictions, Open Questions, Sources
  • Full frontmatter with related links to all pages created in this session

Synthesis Page Structure

---
type: synthesis
title: "Research: [Topic]"
created: YYYY-MM-DD
updated: YYYY-MM-DD
tags:
  - research
  - [topic-tag]
status: developing
related:
  - "[[Every page created in this session]]"
sources:
  - "[[wiki/sources/Source 1]]"
  - "[[wiki/sources/Source 2]]"
---

# Research: [Topic]

## Overview

[2-3 sentence summary of what was found]

## Key Findings

- Finding 1 (Source: [[Source Page]])
- Finding 2 (Source: [[Source Page]])
- ...

## Key Entities

- [[Entity Name]]: role/significance

## Key Concepts

- [[Concept Name]]: one-line definition

## Contradictions

- [[Source A]] says X. [[Source B]] says Y. [Brief note on which is more credible and why]

## Open Questions

- [Question that research didn't fully answer]
- [Gap that needs more sources]

## Sources

- [[Source 1]]: author, date
- [[Source 2]]: author, date

After Filing

  1. Update wiki/index.md. Add all new pages to the right sections
  2. Append to wiki/log.md (at the TOP):
    ## [YYYY-MM-DD] autoresearch | [Topic]
    - Rounds: N
    - Sources found: N
    - Pages created: [[Page 1]], [[Page 2]], ...
    - Synthesis: [[Research: Topic]]
    - Key finding: [one sentence]
  3. Update wiki/hot.md with the research summary

Report to User

After filing everything:

Research complete: [Topic]

Rounds: N | Searches: N | Pages created: N

Created:
  wiki/synthesis/Research: [Topic].md (synthesis)
  wiki/sources/[Source 1].md
  wiki/concepts/[Concept 1].md
  wiki/entities/[Entity 1].md

Key findings:
- [Finding 1]
- [Finding 2]
- [Finding 3]

Open questions filed: N

Constraints

Follow the limits in references/program.md:

  • Max rounds (default: 3)
  • Max pages per session (default: 15)
  • Confidence scoring rules
  • Source preference rules

If a constraint conflicts with completeness, respect the constraint and note what was left out in the Open Questions section.

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.