Skip to content

Wiki Conventions

Reese Hodge edited this page Nov 1, 2026 · 8 revisions

Wiki Conventions

The schema layer for this wiki. Read this before writing a page.

The three layers

Layer Here Who writes it
Raw sources (immutable) specs/, docs/, .specify/memory/constitution.md, packages/**, GitHub issues and PRs Humans and Spec Kit. The wiki cites them; it never edits them.
The wiki (compounding) These pages The LLM, entirely.
The schema (rules) This page, plus pointers in AGENTS.md and .github/copilot-instructions.md Co-evolved by human and LLM.

Precedence when sources disagree

  1. .specify/memory/constitution.md — supreme. The wiki never overrides it.
  2. This wiki — current-state truth for completed work.
  3. specs/ — authoritative for a feature while it is being implemented; frozen and point-in-time afterwards.
  4. docs/ — background only.

When the wiki and a completed spec disagree, the wiki wins and the disagreement is appended to Log rather than silently resolved.

The hybrid rule — wiki or Spec Kit?

Use Spec Kit (specs/NNN-*, feature branch, full pipeline) when any of:

  • a new user-facing capability,
  • a new AWS resource or a change to the cost model,
  • a constitution check is required,
  • research or clarification is needed before the work is understood.

Use the wiki (a Feature-* page plus GitHub issues, no branch) when:

  • changing behavior that already exists, bug fixes, refactors,
  • tooling, dependency, or CI work,
  • documentation and knowledge capture.

The choice is recorded per feature on its Feature-* page.

Flat namespace — the prefix is the taxonomy

GitHub wikis serve every page from the wiki root. Directories can be pushed via git but do not nest in the UI, and filenames must be globally unique. Structure therefore comes from name prefixes and _Sidebar, never folders.

Prefix Purpose
Concept- Cross-cutting principles, one per constitutional theme
Component- Code entities, from packages/**/src
Contract- Interface contracts
Decision- ADR-style, one per resolved choice
Feature- Current state of a capability
Guide- Operational how-tos
Source- Distilled summary plus provenance for one raw source

Spine pages carry no prefix: Home, _Sidebar, Index, Log, Wiki-Conventions, Gotchas.

Page metadata

Every page opens with an HTML-comment metadata block. Not YAML frontmatter — the GitHub wiki does not strip frontmatter, it renders it as a horizontal rule and a stray paragraph. Verified 2026-09-26; see Gotchas.

<!--meta
type: concept | component | contract | decision | feature | guide | source
status: current | draft | superseded | deferred
updated: 2026-09-28
verified: 2026-09-28
sources:
  - specs/001-max-height-ai-character/spec.md
  - .specify/memory/constitution.md
related: [Concept-Budget-Ceiling, Component-Audio-Chain]
-->

verified is deliberate. AGENTS.md records that a [x] in tasks.md is a claim, not proof. A wiki page asserting "implemented" carries the same hazard, so the date the claim was last checked against code is part of the page.

A source that has since left the tree is cited by pinned git permalink — path@sha, for example specs/002-volume-knob-up-down/spec.md@d3cf582.

Rules enforced by pnpm run wiki:lint

  • Every page is listed in Index.
  • No orphans — every page has at least one inbound link.
  • Every [[wikilink]] resolves to an existing page.
  • A valid metadata block with a known type and status.
  • Every path in sources: resolves — a live repo path, a path@sha permalink for a source that has been removed, or an absolute URL for an off-repo source such as a GitHub issue.
  • Filenames match an allowed prefix and are unique.
  • Page length is at most 300 lines; longer pages must split.
  • Log has an entry at least as new as the newest page updated:.
  • Tables are intact — no blank line splitting one, and every row closes with |. GitHub ends a table at the first blank line, so both defects render as damage rather than as an error; two adjacent tables are still fine, since a fresh header and delimiter follow the blank line.
  • No credential-shaped strings (AKIA…, ASIA…, bare 12-digit account IDs).

The linter lives in packages/repo-tools, so it is linted, typechecked and tested like the rest of the code. It is deliberately not part of pnpm run validate: the wiki/ clone is optional and gitignored, so validate must pass without it.

Hard content rules — this wiki is world-readable

The repository is public, so the wiki is public.

  • P4 — never write "Max Headroom" in project-visible copy. The name is Max Height. ("Inspired by Max Headroom" is acceptable only in the README/About.)
  • P11 — no credentials, no access-key values, no AWS account IDs, no ARNs carrying an account ID, no endpoint URLs that act as secrets.

Search engines do not index this wiki — GitHub only indexes wikis on repositories with 500+ stars. That suits the friends-and-family posture of P7, but it is not a privacy control.

Size ceiling and the escape hatch

GitHub applies a soft limit of 5,000 files per wiki (About wikis). Exceeding it can make pages inaccessible. GitHub Pages is the documented migration path. This wiki holds roughly 45 pages — about 1% of the ceiling.

The workflows

Agents working in a clone have these as the wiki skill (.github/skills/wiki/ in the main repo, or the /wiki prompt), which is a thin procedural checklist that defers to this page for the rules. If you are editing in the browser, follow them by hand.

Ingest — read the new source (spec, doc, issue, merged PR, AWS doc) → write or refresh its Source-* page → update every affected Concept-, Component-, Contract-, Decision- and Feature- page → update Index → append to Log → run wiki:lint → push.

Query — read Index first, drill into pages, answer with citations. If the answer is durable, file it back as a new page. This is what makes exploration compound instead of evaporating into chat history.

Lint — run pnpm run wiki:lint, then an LLM health pass: contradictions, claims stale against current code, orphans, concepts mentioned but lacking a page, missing cross-references, gaps worth researching.

Record a trap — the standing rule: when you hit a non-obvious trap, write it on the page that owns it and link it from Gotchas in the same change. This is the human-facing counterpart to the AGENTS.md rule about keeping steering files current — same discipline, wider audience.

Memory or wiki? — agents also keep Copilot memories. A user memory follows one builder; a repository memory is shared with every contributor whose agent has Copilot Memory enabled, but it expires after 28 days unless reused and no human reads it. So a memory is a cache, not a record: durability decides where a fact lives. Builder-specific facts stay in user memory. Rules for working in the repo go in AGENTS.md or a skill. Project knowledge goes on the page that owns it, and a trap also gets a Gotchas row. AGENTS.md states rules and links here for the story rather than restating it.

Session start ritual

git -C wiki pull

Then read Index.

Diagrams

Wikis render Mermaid, math and GeoJSON via github/markup, so architecture diagrams live inline rather than as committed images. Verified 2026-09-26.

See also: Guide-Wiki-Contributing, Gotchas, Index, Log.

Clone this wiki locally