rohitg00/pro-workflow/wiki-research-loop
Claude Code and agent skill by rohitg00/pro-workflow
- community
Checking that the SKILL.md file is still in the repository.
Auto-grow a pro-workflow wiki by running a budget-capped BFS research loop over pluggable source fetchers (web, arXiv, GitHub). Each iteration pops a seed from the queue, fetches sources, drafts a wiki page, dedupes claims against existing pages, enqueues follow-up seeds. Halts on budget cap, depth cap, or convergence. Use when the user says "research <topic>", "grow the <slug> wiki", "auto-research", or wants a knowledge base that builds itself overnight.
Install
npx vskill@latest install rohitg00/pro-workflow/wiki-research-loopSKILL.md
The same SKILL.md was published earlier as rohitg00/pro-workflow/wiki-research-loop.
Wiki Research Loop
Driver that turns a wiki into an auto-grown knowledge base. Layers on top of wiki-builder and wiki-query.
Loop semantics
Halt conditions (any one trips)
budget_usdexceeded (loop tracks per-fetcher cost estimate)max_pages_per_runwrittenmax_depthreached on every active branch- 3 consecutive pages add < 5 % new claims (convergence)
- File
~/.pro-workflow/STOPexists (operator kill-switch) wiki.config.mdauto_research.enabled: false- Wiki
private: trueAND any non-local fetcher selected
Commands
In a plugin session, call the providers MCP server's run_provider_task tool with task: "research" and the runner arguments below, for example args: ["run", "agent-memory", "--fetchers", "github"]. Its optional GitHub token comes from the plugin configuration dialog. The direct CLI uses PRO_WORKFLOW_GITHUB_TOKEN when explicitly supplied. Never retrieve tokens from existing machine credentials.
CLI flags override wiki.config.md for one run only.
Source fetchers
Pluggable. Each lives at scripts/source-fetchers/<name>.js. Interface:
Built-in:
- `web.js` — Fetches via the user's available
WebFetchtool through a stdin/stdout shim. Treats result as plain text/markdown. - `arxiv.js` —
https://export.arxiv.org/api/query(free, public, no key). Returns abstract + metadata. - `github.js` —
https://api.github.com/search/repositories+ README pull (uses the explicitly configured GitHub token, otherwise unauthenticated rate limit).
Standalone CLI runs load custom fetchers from ~/.pro-workflow/fetchers/<name>.js. The plugin MCP server uses only bundled fetchers so configured tokens are not handed to user-supplied modules.
Budget enforcement
Pre-iteration: sum estimateCost across selected fetchers. If projected cumulative cost would exceed budget_usd, halt.
Post-iteration: track tokens used by the LLM compile step (Anthropic/OpenAI passthrough). Hard-kill on overrun.
Per-fetcher overrides via env: WIKI_LOOP_BUDGET_USD, WIKI_LOOP_MAX_PAGES, WIKI_LOOP_MAX_DEPTH.
Seed queue
SQLite-backed via wiki_seeds table:
| field | meaning | ||
|---|---|---|---|
query | natural-language seed | ||
status | pending → active → done\ | failed | |
parent_id | seed that produced this one | ||
depth | BFS depth from root |
Loop pops by (depth ASC, created_at ASC) so it explores breadth-first.
Convergence detection
After each compiled page, compute Jaccard overlap of claim-text tokens vs the prior 3 pages. If < 5 % novel content for 3 consecutive pages, halt and report converged.
Kill switch
Loop checks per-iteration and halts gracefully. Remove file to resume next run.
Privacy guard
If wiki.config.md has private: true, the loop refuses any non-local fetcher and emits a warning. Only raw/ ingestion via manual seeds is allowed.
Reactive trigger (Phase 3.3.4)
scripts/file-watcher.js watches wiki/<slug>/wiki/**/*.md. On user-edited claim, enqueues a verification seed (verify: <claim>) at depth 0. Wired through pro-workflow's file-watcher.js hook.
Cron tick (Phase 3.3.4)
scripts/research-tick.js is launchable from any cron-style runner. Picks the oldest opted-in wiki with pending seeds and runs a single iteration. Hook event: pro-workflow:research-tick.
Output
Each run writes:
Run log lines:
Integration with wiki-query
Every compiled page goes through wiki-cli.js page so FTS5 stays consistent. The dedupe step calls searchWiki with the candidate claim text to find near-duplicates.
Status (Phase 3.3.1)
Ships: loop driver, seed queue, web/arxiv/github fetchers, budget caps, convergence detector, kill-switch, manual run command.
Defers:
- Vector dedupe (Phase 3.3.2 via sqlite-vec)
- LLM-judged claim novelty (current = Jaccard token overlap)
- Cron + reactive (Phase 3.3.4)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wiki-research-loop/SKILL.md
Popularity
- Repository stars
- 2,592
- Repository forks
- 249
- 7-day trend score
- 39
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rohitg00/pro-workflow/wiki-research-loop)