# Lw Compile

> Compile uncompiled raw inputs into wiki pages, update wiki/index.md and wiki/log.md, and mark manifest items as compiled. Usage: /lw-compile

- Skill: `geeksfino/lw-compile` (Agent Skill)
- Install (CLI): `npx skillmds@latest add geeksfino/lw-compile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/geeksfino/lw-compile/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: geeksfino (https://skillmd.com/u/geeksfino)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/geeksfino/lw-compile

---


# LLM Wiki Compile

Compile staged inputs into `wiki/` incrementally.

## Required reads
- `.llm-wiki/profile.json`
- active profile markdown
- `.llm-wiki/manifest.json`
- `wiki/index.md`
- `wiki/log.md`
- `wiki/SCHEMA.md` when present (including **link dialect**: `wikilink` default or `markdown`)

## Compile loop
For each manifest entry with `status: uncompiled`:
1. Read the staged source.
2. Determine affected page types using the active profile.
3. Update existing pages first.
4. Create new pages only when a real gap exists.
5. When writing or rewriting cross-page links, follow the SCHEMA link dialect:
   - `wikilink` → `[[…]]`
   - `markdown` → `[title](relative/path.md)`
6. Update `wiki/index.md` for any new pages.
7. Append a clear entry to `wiki/log.md`.
8. Mark the manifest entry compiled and record affected pages.

## Required source discipline
- Prefer stronger sources over weaker ones according to the active profile.
- Preserve contradiction notes when new information creates drift rather than clarity.
- Update customer-facing summaries if supportability framing changed.
- Keep all compiled content under `wiki/`.

## After compile
Recommend or run:
- `/lw-lint`
- `/lw-reflect`
when the change is meaningful or cross-cutting.

