Content Pipelines
What this is
Content pipelines are how MDX wiki pages get written, improved, and maintained. There are several stages:
- Create — research → synthesis → draft → validation → save
- Improve — read existing page, run AI improvement, audit citations, apply
- Validate — gate checks (CI-blocking), fix commands, compile checks
- Auto-update — news-driven updates triggered on a schedule
- Groundskeeper — background maintenance jobs (validation, fixes, audits)
When to start here
If you're trying to create a new page, improve an existing page, fix a CI failure, or understand why a page failed validation, this is the hub.
Live dashboards
| Dashboard | What it shows |
|---|---|
| Suggested Pages | Pages recommended for creation (gap analysis) |
| Improve Runs | Improvement history, cost, quality delta |
| Page Changes | Recent edits across the wiki |
| Update Schedule | Auto-update run schedule and next executions |
| Groundskeeper Runs | Maintenance job history (validation, fixes, audits) |
CLI playbook
# Create a new page
pnpm crux w create "Page Title" --tier=standard # budget | standard | premium
pnpm crux w create "Page Title" --tier=premium
# Improve an existing page
pnpm crux w improve <page-id> --tier=standard --apply # polish | standard | deep
pnpm crux w improve <page-id> --tier=deep --apply
pnpm crux w improve <page-id> --directions "Add sections on X, Y"
# Polish, grade, review
pnpm crux w polish <page-id>
pnpm crux w grade <page-id>
pnpm crux w review <page-id>
pnpm crux w iterate <page-id>
# Validation gate (CI-blocking checks)
pnpm crux w validate gate --fix # Full gate with auto-fixes
pnpm crux w validate gate --scope=content --fix # Content-only (~15s)
pnpm crux w validate compile --quick # Quick MDX compile check
# Fix commands (run after any page edit)
pnpm crux w fix escaping # Dollar/comparison escaping
pnpm crux w fix markdown # Markdown normalization
# Auto-update (news-driven)
pnpm crux w auto-update plan # Preview
pnpm crux w auto-update run --budget=30 # Run with budget
pnpm crux w auto-update audit-gate --diff --apply # Audit changed pages
When to use what
| I want to... | Run | Or check |
|---|---|---|
| Create a new page on a topic | pnpm crux w create "Title" --tier=standard | Suggested Pages dashboard |
| Improve a page that needs polish | pnpm crux w improve <id> --tier=standard --apply | Improve Runs dashboard |
| Fix a CI gate failure | pnpm crux w validate gate --scope=content --fix | — |
| See recent edits across the wiki | — | Page Changes dashboard |
| Run news-driven updates | pnpm crux w auto-update run --budget=30 | Research & Discovery |
| See what gap analysis suggests creating | — | Suggested Pages dashboard |
| Find pages overdue for refresh | — | Update Schedule dashboard |
| Understand the page-creator pipeline | — | Content Pipeline Architecture |
Tier and pipeline notes
- Tiers (
budget|standard|premiumfor create;polish|standard|deepfor improve) trade off cost vs. quality. Standard is the default. --applyis required for improve commands to actually write changes — without it, you get a dry-run.- The improve pipeline includes a semantic-diff safety check that compares facts before/after and warns on contradictions. Snapshots are stored in
.claude/snapshots/. - Always use the pipeline — do not manually write pages from scratch. Manually written pages are missing citations, EntityLink validation, frontmatter syncing, and quality grading. If the pipeline fails, fix the pipeline.
- After any page edit, run
pnpm crux w fix escapingandpnpm crux w fix markdown, thenpnpm crux w validate gate --fix.
Architecture & deep dives
- Content Pipeline Architecture — design document for faster page creation
- Wiki Generation Architecture — multi-agent, multi-pass design
- Automation Tools — full reference for all scripts and CLI workflows
crux/authoring/page-creator.ts— create pipeline entry pointcrux/authoring/page-improver/— improve pipeline (phases, batch runner)crux/validate/— validation gate, individual checks.github/workflows/auto-update.yml— daily auto-update schedule.claude/rules/page-authoring.md— page authoring rules and self-review checklist