prefilllisted
Install: claude install-skill Lambenthan/empiricalwiki
# /prefill
> Sediments foundational background (seminal methods, common practice, standard architectures) into `wiki/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 of `general`, `NLP`, `CV`, `ML Systems`, `Robotics`. If omitted, infer from `wiki/topics/` tags; if `wiki/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 by `rebuild-index`)
- `wiki/log.md` entry
## Wiki Interaction
### Reads
- `wiki/topics/*.md` — for domain inference (when `domain` is 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` (via `tools/research_wiki.py rebuild-index`)
- `wiki/log.md` (via `tools/research_wiki.py log`)
## Workflow
**Pre-conditions**: working directory contains `wiki/`, `tools/`, `.claude/`. Set `WIKI_ROOT=wiki/`.
### Step 1: Resolve domain
1. If `domain` argument given → use it.
2. Else if `--add` mode → domain is `general` unless the user specified one.
3. E