Skip to content
Longterm Wiki
Updated 2026-04-08HistoryData
Page StatusDocumentation
Edited 3 days ago420 words1 backlinks
Content2/13
SummaryScheduleEntityEdit historyOverview
Tables2/ ~2Diagrams0Int. links15/ ~3Ext. links0/ ~2Footnotes0/ ~2References0/ ~1Quotes0Accuracy0Backlinks1

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

DashboardWhat it shows
Suggested PagesPages recommended for creation (gap analysis)
Improve RunsImprovement history, cost, quality delta
Page ChangesRecent edits across the wiki
Update ScheduleAuto-update run schedule and next executions
Groundskeeper RunsMaintenance 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...RunOr check
Create a new page on a topicpnpm crux w create "Title" --tier=standardSuggested Pages dashboard
Improve a page that needs polishpnpm crux w improve <id> --tier=standard --applyImprove Runs dashboard
Fix a CI gate failurepnpm crux w validate gate --scope=content --fix
See recent edits across the wikiPage Changes dashboard
Run news-driven updatespnpm crux w auto-update run --budget=30Research & Discovery
See what gap analysis suggests creatingSuggested Pages dashboard
Find pages overdue for refreshUpdate Schedule dashboard
Understand the page-creator pipelineContent Pipeline Architecture

Tier and pipeline notes

  • Tiers (budget | standard | premium for create; polish | standard | deep for improve) trade off cost vs. quality. Standard is the default.
  • --apply is 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 escaping and pnpm crux w fix markdown, then pnpm 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 point
  • crux/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