---
title: "Pattern Index (the generated README capability map)"
description: "A generated table in README.md mapping every repo pattern to the doc that explains it, the code that implements it, and the showcase page that proves it …"
category: "Docs & Agent Experience"
---

# Pattern Index (the generated README capability map)

> Generated from `mcp/patterns.registry.json` — do not edit by hand; change the registry and run `bun run patterns:build`.

**Category:** Docs & Agent Experience · **Tier:** deep · **Risk:** low — documentation artifact

A generated table in README.md mapping every repo pattern to the doc that explains it, the code that implements it, and the showcase page that proves it — rendered from this registry (136 rows, 20 categories, two tiers).

**When to use:** Use as the top-level discovery surface for what a reference repo can do; it is the human-readable projection of this registry, regenerated by patterns:build.

## Docs

- `README.md` — The Pattern Index section itself (anchor #pattern-index) ([GitHub](https://github.com/ApeDevil/v10r/blob/main/README.md) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/README.md))

## Code

- `scripts/patterns/build-derived.ts` — Generates the README region + docs/pattern-library/ pages; --check mode gates staleness ([GitHub](https://github.com/ApeDevil/v10r/blob/main/scripts/patterns/build-derived.ts) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/scripts/patterns/build-derived.ts))
- `src/lib/server/patterns/render.ts` — Pure renderers (testable, Vite-free) ([GitHub](https://github.com/ApeDevil/v10r/blob/main/src/lib/server/patterns/render.ts) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/src/lib/server/patterns/render.ts))
- `src/lib/showcases/registry.ts` — Showcase-route cells are validated against this registry's hrefs ([GitHub](https://github.com/ApeDevil/v10r/blob/main/src/lib/showcases/registry.ts) · [GitLab](https://gitlab.com/ApeDevil/v10r/-/blob/main/src/lib/showcases/registry.ts))

## Invariants

- Coverage source of truth is mcp/patterns.registry.json — the README region between the PATTERN-INDEX markers is generated and must never be hand-edited.
- Every row must point to docs AND code AND (where possible) a live proof route — a row without proof is a claim, not a pattern.
- patterns:check in the validate gate blocks shipping a stale index; bun run patterns:build (or vr ref) regenerates it.

## Emulation notes

- Anchor the human-readable index to a machine-readable registry and GENERATE it — a hand-maintained twin drifts (this one did: its own row-count claim went stale before the generator existed).
- Showcase-route cells are validated by mcp/validate-registry.ts against src/lib/showcases/registry.ts membership, not mere directory existence.

## Depends on

- [Docs navigation hubs (README-per-directory convention)](/docs/pattern-library/docs-nav-hubs)

---

_Machine-readable record: `pattern-index` in `mcp/patterns.registry.json`._
