lambenthan/empiricalwiki/prefill
Claude Code and agent skill by lambenthan/empiricalwiki
- community
Checking that the SKILL.md file is still in the repository.
Seed wiki/foundations/ with domain background knowledge so subsequent /ingest does not create duplicate concept pages for textbook material
Install
npx vskill@latest install lambenthan/empiricalwiki/prefillSKILL.md
/prefill
Sediments foundational background (seminal methods, common practice, standard architectures) intowiki/foundations/as terminal pages.Foundations are single-direction by design: other pages link to them, foundations write no reverse links.
Trigger
Manual: /prefill [domain] or /prefill --add "concept name".
Inputs
domain(positional, optional): research domain — one ofgeneral,NLP,CV,ML Systems,Robotics. If omitted, infer fromwiki/topics/tags; ifwiki/topics/is empty, prompt the user.--add "<concept>": skip the catalog and seed exactly one foundation by name.
Outputs
wiki/foundations/{slug}.md— one page per seeded concept- Updated
wiki/index.md(foundations section regenerated byrebuild-index) wiki/log.mdentry
Wiki Interaction
Reads
wiki/topics/*.md— for domain inference (whendomainis omitted)wiki/foundations/*.md— to skip already-seeded concepts (idempotent).claude/skills/prefill/foundations-catalog.yaml— seed list
Writes
wiki/foundations/{slug}.md(new only — never overwrite)wiki/index.md(viatools/research_wiki.py rebuild-index)wiki/log.md(viatools/research_wiki.py log)
Workflow
Pre-conditions: working directory contains wiki/, tools/, .claude/. Set WIKI_ROOT=wiki/.
Step 1: Resolve domain
- If
domainargument given → use it. - Else if
--addmode → domain isgeneralunless the user specified one. - Else: read all
wiki/topics/*.mdfrontmattertags; if a single dominant domain is detected, use it; otherwise ask the user.
Step 2: Load seeds
- Catalog mode: read
.claude/skills/prefill/foundations-catalog.yaml. Pick all entries underdomains.{domain}plus everything underdomains.general(general foundations apply to every research field). - `--add` mode: synthesize a single seed entry
{slug: <slugified concept>, title: <concept>, summary: ""}. Usepython3 tools/research_wiki.py slug "<concept>"to derive the slug.
For each seed, check wiki/foundations/{slug}.md. If it already exists, skip (do not overwrite, do not warn).
Step 3: Fetch background from Wikipedia
For each remaining seed, call tools/fetch_wikipedia.py:
- The summary call returns
{title, extract, url}. - The sections call returns a list of
{index, line, level}— pick sections whoselinematchesVariants,Types,Architecture,History,Limitations,Applications(case-insensitive substring match). - Exit code
2from any call means page not found — fall back to LLM knowledge for that seed and setsource_url: ""in the resulting frontmatter.
Step 4: Compose the foundation page
Render each seed into the template below. Distinguish Wikipedia-derived content from LLM-supplied content by appending (LLM analysis) to sections that have no Wikipedia source material.
Write each file to wiki/foundations/{slug}.md.
Step 5: Refresh navigation and log
Step 6: Report
Print a grouped summary:
Remind the user that subsequent /ingest runs will dedup against these foundations and create wikilinks ([[foundation-slug]]) instead of new concept pages.
Constraints
- foundations are terminal: never write
key_papers,related_concepts, or any outbound reference field on a foundation page. Other pages may link in. - never overwrite an existing
wiki/foundations/{slug}.md(idempotent re-runs). - distinguish sources: Wikipedia-derived content vs. LLM-derived content must be visually distinct in the page body.
- catalog is advisory: the YAML seed list is hand-curated and incomplete. Users may extend it without code changes.
- only writes to `wiki/foundations/`: never creates pages under
papers/,concepts/,topics/, etc.
Error Handling
- `wiki/foundations/` does not exist: run
python3 tools/research_wiki.py init wiki/first. - Wikipedia 404: log the missing page, fall back to LLM knowledge for that seed (
source_url: ""). - Network failure: print which seeds failed and continue with the remainder; do not abort the whole batch.
- Catalog file missing: print error pointing to
.claude/skills/prefill/foundations-catalog.yaml.
Dependencies
Tools (via Bash)
python3 tools/fetch_wikipedia.py summary|sections|section|wikitext "<title>" [--index N]python3 tools/research_wiki.py slug "<title>"python3 tools/research_wiki.py rebuild-index wiki/python3 tools/research_wiki.py log wiki/ "<message>"
Catalog
.claude/skills/prefill/foundations-catalog.yaml
Security
- Security scanPassed, 90 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 repositoryCheckingi18n/en/skills/prefill/SKILL.md
Popularity
- 7-day trend score
- 0
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/lambenthan/empiricalwiki/prefill)