wiki-research-loop

Auto-grows a wiki by running a budget-capped BFS research loop over pluggable source fetchers.

2.8k|277|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/rohitg00/pro-workflow --skill wiki-research-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wiki-research-loop
Source: https://github.com/rohitg00/pro-workflow/tree/main/skills/wiki-research-loop
Command: npx skills add https://github.com/rohitg00/pro-workflow --skill wiki-research-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Researching a topic repeatedly across sessions wastes effort because findings have nowhere durable to land. This Skill turns a pro-workflow wiki into a self-growing knowledge base that fetches sources, drafts pages, dedupes claims, and queues follow-up topics automatically.

Core Features & Use Cases

  • Autonomous BFS research loop: Pops seeds from a SQLite-backed queue, fetches sources via pluggable fetchers (web, arXiv, GitHub), compiles wiki pages, and enqueues follow-up seeds up to a depth cap.
  • Budget and convergence controls: Halts on USD budget cap, max pages per run, max depth, three consecutive low-novelty pages, or a kill-switch file at ~/.pro-workflow/STOP.
  • Privacy guard and FTS5 integration: Refuses non-local fetchers for private wikis and indexes every compiled page through the wiki store so it stays searchable.
  • Use Case: Tell your agent to research "memory consolidation in agents" overnight; the loop seeds the queue, pulls arXiv abstracts and web results, writes cited wiki pages, and stops when the budget or convergence threshold is reached.

Quick Start

Ask your agent to research a topic by saying "research <topic>" or "grow the <slug> wiki", and the loop will fetch sources, draft pages, and expand the knowledge base within your budget.

Frequently Asked Questions about wiki-research-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run an automated research loop on a topic?

Run research-loop.js with the run command, a wiki slug, and optional flags like --max-pages, --max-depth, --budget-usd, and --fetchers. The loop pops seeds from the queue, fetches sources, compiles pages, and enqueues follow-up topics until a halt condition trips.

What source fetchers does the research loop support?

Three built-in fetchers ship with the skill: web via DuckDuckGo Lite, arXiv via its public export API, and GitHub via repository search. You can add custom fetchers by dropping a JavaScript module into ~/.pro-workflow/fetchers/ following the documented interface.

How do I stop the research loop once it is running?

Create a file at ~/.pro-workflow/STOP and the loop halts gracefully on its next iteration check. You can also cancel all pending seeds for a wiki with the cancel command, or rely on automatic halts from budget, depth, or convergence limits.

Does the research loop work with private wikis?

Private wikis marked with private: true in wiki.config.md refuse all non-local fetchers and emit a warning. Only manual seed ingestion through local raw content is allowed, preventing any data from leaving the machine.

How does the loop detect when a topic is fully researched?

After each compiled page, the loop computes Jaccard token overlap against the prior three pages. If fewer than 5 percent of tokens are novel for three consecutive pages, it reports convergence and halts the run.

Why does the research loop fail with a missing store error?

The loop requires the built store at dist/db/store.js in the pro-workflow repository. Run npm install and npm run build from the repository root before invoking the loop, since the script exits if the compiled store is absent.