Wiki Conventions

Slug rules, article shape, index files, and what editing is allowed.

Slug rules

All lowercase. ASCII only. Hyphens between words. No leading or trailing hyphen. Stable across runs -- this is what makes the wiki idempotent.

Slug regex: ^[a-z0-9]+(-[a-z0-9]+)*$

Article shape

Every entity article follows this structure:

  1. YAML frontmatter -- validated by the pre-write hook. See Entity Schema.
  2. Title -- # canonical_name
  3. Summary -- 2-4 sentences. Plain prose. No bullet points.
  4. Dimension sections -- one ## dimension_name per evidenced dimension. Each section: a paragraph ending with the implication, a verbatim source quote in a blockquote with [ref: PMC...].
  5. Open questions -- bulleted list. One per gap. Used by lint.
  6. Links -- bulleted list of [[slug]] references to related entities.

Dimension sections

Dimension names come from references/intelligence-dimensions.md. Do not invent names. Each section has at least one paragraph with an implication and at least one verbatim quote.

When dimension 15 (biospecimen retention) is covered, the section must list specimen types banked, estimated counts, and access route. Vague statements like "biospecimens available" fail the implication test.

The card contract

The card: block is the API between the wiki and the web app. The web app reads frontmatter only, never prose.

Index files

Auto-generated by scripts/wiki_index.py. Seven files under store/wiki/index/:

Idempotent: same wiki state produces byte-identical indices. Hand-edits are overwritten on the next rebuild.

What editing is allowed

Source ID format

Every entry in provenance.sources must match one of:

Source: .claude/rules/wiki-conventions.md