prefill

Seeds wiki foundations pages with domain background knowledge fetched from Wikipedia.

Updated Jul 15, 2026
One-click install
npx skills add https://github.com/1549171506/shizhengmubangai1 --skill prefill-1549171506
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prefill
Source: https://github.com/1549171506/shizhengmubangai1/tree/main/Desktop/123/empiricalwiki/i18n/en/skills/prefill
Command: npx skills add https://github.com/1549171506/shizhengmubangai1 --skill prefill-1549171506

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When building a research wiki, ingesting papers often creates duplicate concept pages for well-known textbook material like gradient descent or transformers. This Skill pre-seeds a wiki/foundations/ directory with terminal background pages so subsequent ingestion runs deduplicate against them and create wikilinks instead of redundant concept pages. ## Core Features & Use Cases - Catalog-driven seeding: Reads a hand-curated YAML catalog of foundational concepts organized by domain (general, NLP, CV, RL) and generates one terminal page per concept. - Wikipedia-backed content: Fetches summaries and relevant sections via tools/fetch_wikipedia.py, falling back to LLM knowledge with a (LLM analysis) tag when a page is missing. - Idempotent and safe: Never overwrites existing foundation pages, writes only to wiki/foundations/, and rebuilds the wiki index and log after each run. - Use Case: Before ingesting a batch of NLP papers, run /prefill NLP to seed pages for Transformer, Attention Mechanism, and Word Embeddings so later ingestion links to them instead of duplicating them. ## Quick Start Run the prefill skill with the NLP domain to seed foundational concept pages into the wiki foundations directory.

Frequently Asked Questions about prefill

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

FAQPage Schema
How do I seed background knowledge pages into a research wiki?

Run the prefill command with a domain such as general, NLP, CV, or Robotics. It reads a YAML catalog of foundational concepts, fetches Wikipedia summaries and sections for each, and writes one terminal page per concept into wiki/foundations/.

How to add a single foundation concept without using the catalog?

Use the --add flag with a concept name, for example /prefill --add "Knowledge Distillation". The skill skips the catalog, derives a slug with the research_wiki tool, and seeds exactly one foundation page.

What happens if a Wikipedia page is not found during seeding?

An exit code of 2 from the fetch tool means the page is missing. The skill falls back to LLM knowledge for that seed, sets source_url to an empty string, and tags LLM-supplied sections with (LLM analysis).

Does prefill overwrite existing foundation pages?

No. The skill checks wiki/foundations/{slug}.md before writing and skips any concept that already exists, making re-runs idempotent. It also never writes outside the foundations directory.

What are the limitations of foundation pages in the wiki?

Foundation pages are terminal: they contain no key_papers, related_concepts, or outbound reference fields. Other pages link into them, but foundations never write reverse links, keeping them single-direction by design.