Skip to the component catalogue
dotfilesGitHub

Design system / Component reference

Components

Build documentation with the website’s existing parts. Read the usage notes, try the live React example, then copy its code.

33 component familiesCompound parts, props and statesChapter guide · one scrollable page

The “Used by” notes list consumers outside this guide’s demonstrations.

Choose a page kind →
00

Visual language

Foundations

Reuse the semantic tokens in src/styles/app.css. Keep borders flat, spacing regular and the mono typeface consistent.

Live React
background#191521
card#241d33
foreground#e6e1f2
primary#c9a6ff
mutedforeground 70% + background
borderforeground 22% + background
success#9ccfd8
error#f58b92

JetBrains Mono / 24

Section heading / 18

Article heading / 14

Body / 13 · line height 1.7 · maximum prose width 72ch

Supporting text / 11 · labels / 10 · weight 400 or 500

Spacing uses a 4px base. The narrow breakpoint is 760px, tiny is 380px and wide is 1600px. The header is 49px high, or 98px on narrow screens.

01 / Component chapter

Site shell & navigation

Keep the brand, destinations and keyboard entry points consistent.

01.01

SiteHeader

Use one SiteHeader per page. Root owns the fixed Intro, Guides, Mise modules and Agent bundles links from navigation.yaml. Set current to the page’s parent section; nested pages retain that selection. Keep page-specific destinations in breadcrumbs. Current links use aria-current=location and an underline. Narrow navigation moves below the brand and wraps to two columns at the tiny breakpoint.

src/components/SiteHeader/SiteHeader.tsx

Used by
All page shells, including module, guide, bundle, skill, design-system and missing pages

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
Root, Brand, Nav, NavLink, Repository
Props
Root: className?, current?: intro | guides | modules | bundles. Brand: href, mark, label. Nav: label, children. NavLink: href, current?: boolean, children: string. Repository: href, children: string.
States & variants
Fixed destinations, current parent, desktop and narrow navigation; no current parent on missing pages.

02 / Component chapter

Page & section layouts

Use compound components to assemble headers, introductions and numbered chapters.

02.01

Page

Use one Main and one Title per page. Title owns the fixed page-title ID. Description accepts trusted compiled HTML. Main is focusable for skip links.

src/components/Page/Page.tsx

Used by
HomePage, BundlesPage, BundlePage, SkillPage, HowToPage, SkillDocument, NotFound, PageKinds, DesignSystemOverview

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
Main (root), Header, Eyebrow, Title, Description, Details
Props
Main: id, width?: contained | full, children. Header: children. Eyebrow and Title: children: string. Description: html. Details: items: string[].
States & variants
Contained and full widths; bordered header and detail list.

02.02

Landing

Use a single-column hero with one primary action. Connect labelledBy to Title.id. Place Index after Root as a sibling within the page, not inside the hero. Its 80px horizontal row sticks below SiteHeader. Set --section-nav-height:80px on their shared ancestor so chapter headings and fragment targets clear both rows. Below 1024px, summaries provide screen-reader context while the visible row keeps short labels.

src/components/Landing/Landing.tsx

Used by
HomePage

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
Root, Bar, Badge, Body, Introduction, Eyebrow, Title, Lead, Actions, Note, Index, IndexItem
Props
Root: labelledBy, children. Bar: children. Title: id, children: string. Index: label, children. IndexItem: href, number, title, summary. Badge, Eyebrow, Lead, Note: children: string. Body, Introduction, Actions: children.
States & variants
Top bar, badge, one primary action, horizontal sticky index and narrow link labels.

02.03

DocSection

Keep Heading and Content inside Root. The heading stays beside the content until the narrow breakpoint. Article builds its heading ID from the parent section and title. Use unique titles within each section.

src/components/DocSection/DocSection.tsx

Used by
HomePage, BundlesPage, BundlePage, DesignSystemOverview

Live React
01

Reference

Example chapter

The heading and explanation stay beside the content on a wide screen.

First article

Each article gets a permalink.

Second article

Adjacent articles get a separator.

Parts
Root, Heading, Content, Article
Props
Root: id, children. Heading: number, eyebrow, title, summary. Content: className?, children. Article: id?, title, children.
States & variants
Numbered heading; multiple articles; stacked narrow layout.

02.04

SkillDocument

This full-page composition owns the skip link, header, breadcrumb, main region and shared grouped footer. Pass a real build-time skill summary, not a second copy of bundle data.

src/components/SkillDocument/SkillDocument.tsx

Used by
SkillPage, HowToPage

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
SkillDocument
Props
skill: BundleSkill, children
States & variants
Bundle and skill breadcrumb; shared skill-page navigation.

02.05

NotFound

Use this when no route or redirect matches. The /404 route runs redirect rules before the reader sees the fallback. The component provides links to the home page and bundle hub.

src/components/NotFound/NotFound.tsx

Used by
Root route notFoundComponent, /404 route

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
NotFound
Props
No props.
States & variants
Missing-page message and both recovery links.

03 / Component chapter

Typography, links & source content

Use clear headings, trusted prose and links with explicit destinations.

03.01

Heading

Choose the heading level from document structure, not appearance. Keep IDs unique. title names the permalink even when children supplies different heading content.

src/components/Heading/Heading.tsx

Used by
Page, Landing, DocSection, DiagramBlock, SkillMetadata, SkillPage, HowToPage, PageKinds

Live React

A linked heading

A heading with inline code

Hover or focus the permalink. Use h1 and h2 where the document hierarchy requires them.

Parts
Heading
Props
as: h1 | h2 | h3, id, title, className?, children?: ReactNode
States & variants
Heading sizes and levels; custom children; permalink on hover, focus and touch.

03.02

Prose

Only pass trusted repository HTML compiled at build time. This is not an HTML sanitizer. Root-relative links receive the /dotfiles/ base before rendering; protocol-relative URLs remain unchanged. Use skill-prose for complete skill documents. Supply render to compose React controls into the compiled content, as the engineering guide does with CopyButton and CodeBlock.

src/components/Prose/Prose.tsx

Used by
Page.Description, SourceNote, DiagramBlock.Caption, HomePage, BundlesPage, BundlePage, SkillPage, HowToPage, GuideDocumentation

Live React

Compiled repository content

Use clear labels, short instructions and inline code.

This sample is trusted HTML, not user input.
mise run website:dev
TokenUse
primaryLinks and focus
Parts
Prose
Props
html: string, className?: string, render?: (html: string) => ReactNode
States & variants
Paragraphs, headings, lists, inline code, code blocks, tables and blockquotes.

03.03

Glyph

Use this for decorative arrows and marks next to meaningful text. Screen readers skip the glyph. Empty children render nothing. Never use a glyph as the only accessible label.

src/components/Glyph/Glyph.tsx

Used by
SiteHeader, SiteFooter, Landing, ReferenceList, SupportMatrix, HomePage

Live React
Continue Supported Not supported

The text carries the meaning. The glyphs are hidden from assistive technology.

Parts
Glyph
Props
children?: string
States & variants
Arrow, success mark, failure mark and empty output.

03.04

Button

This component is an anchor. Use it for navigation, not submission or an onClick action. Use primary for the main destination. There is no disabled or loading variant.

src/components/Button/Button.tsx

Used by
HomePage, NotFound

Live React
Parts
Button
Props
href: string, variant?: default | primary, children: ReactNode
States & variants
Default and primary; hover and keyboard focus.

03.05

CopyButton

Copy value through the real clipboard API; never execute it. With asChild, pass one native button containing inline code, not a link or bare code element. Radix Slot composes props, handlers and refs without nesting buttons. A child onClick can preventDefault to cancel copying. Inline child text stays unchanged. If clipboard access fails, select and copy the text manually.

src/components/CopyButton/CopyButton.tsx

Used by
ComponentExample, Prose, DesignSystem

Live React
/skill:worktree tasks INITIATIVE_ID

Copy the inline command:

Both controls use your clipboard; neither executes the command. The standalone label changes from Copy to Copying… while pending, then Copied on success or Copy again on error. Inline code stays unchanged. Feedback announces the result; if clipboard access fails, select and copy the text manually.

asChild composes one native button, not a nested button. Tab to it, then press Enter or Space to copy. Pending controls keep focus and ignore duplicate activations.

Parts
CopyButton
Props
value: string, asChild?: boolean, children?: ReactNode; standard button DOM props and ref. Defaults: type=button, label=Copy.
States & variants
Idle: Copy. Pending: Copying…, aria-busy and aria-disabled; focus stays on the button and duplicate activations are ignored. Success: Copied. Error: Copy again. A polite live status announces pending, success or error. An explicit disabled prop native-disables the button.

03.06

CodeBlock

Wrap pre/code and a sibling CopyButton with the same source value. The code-block wrapper anchors the copy control at the top right. It reveals on block hover or keyboard focus and stays visible on touch devices. CodeBlock owns layout, not clipboard state.

src/components/CodeBlock/CodeBlock.tsx

Used by
Prose, DesignSystem

Live React
mise run website:check

Hover over the block or Tab to its copy button to reveal the top-right control. Touch controls stay visible. Copying uses the clipboard and does not run the command.

Parts
CodeBlock; compose pre, code and CopyButton as children
Props
Standard div DOM props, children?: ReactNode, className?: string.
States & variants
Resting, hover and focus reveal; always-visible touch controls. The composed CopyButton supplies pending, success and clipboard-error feedback.

03.07

ReferenceList

Use linked rows for source material and bundle destinations. Omit description when the title already gives enough context. Set dividers=false when group boundaries provide separation. Site paths and fragments use →; external HTTP(S) and protocol-relative URLs use ↗.

src/components/ReferenceList/ReferenceList.tsx

Used by
HomePage SectionContent, BundlesPage, DesignSystemOverview

Live React
Parts
Root, Item
Props
Root: children, dividers?: boolean (default true). Item: href, title, description?: string.
States & variants
With and without descriptions or row dividers; internal and external links; linked row hover.

03.08

SourceNote

Use a labelled aside for source provenance or scope limits. Pass trusted compiled HTML. Keep source links beside the facts they support.

src/components/SourceNote/SourceNote.tsx

Used by
SkillPage, PageKinds

Live React
Parts
SourceNote
Props
label: string, html: string
States & variants
Labelled note with a source link.

04 / Component chapter

Data, disclosure & skill reference

Keep large reference sets searchable, readable and clear about missing information.

04.01

Disclosure

Use native details for long lists. Omit open for an uncontrolled disclosure. Pair open and onToggle when a filter or fragment must control it. Keep the summary meaningful when closed.

src/components/Disclosure/Disclosure.tsx

Used by
SkillIndex.Groups

Live React
Reference files (uncontrolled)2

SKILL.md — instructions

howto.md — usage guide

A longer controlled reference title with no matching files0

No reference files are available for this example.

Parts
Root, Summary, Content
Props
Root: open?: boolean, onToggle?: (open: boolean) => void, children. Summary: title: string, count: number. Content: children.
States & variants
Uncontrolled and controlled; open and closed; count zero and long label.

04.02

DataTable

Supply an accessible table label. Use code cells for identifiers and muted cells for context. Set row IDs for deep links; the target row is highlighted. Wide tables scroll within their own frame.

src/components/DataTable/DataTable.tsx

Used by
SupportMatrix, BundlesPage, BundlePage Reference and reload instructions

Live React
Highlight the second row ↓
ComponentPurposeSource path
ButtonNavigation actionsrc/components/Button/Button.tsx
ComponentExampleLive example and usage codesrc/components/ComponentExample/ComponentExample.tsx
Parts
Root, Head, Body, Row, Cell
Props
Root: label, children. Head: columns: string[]. Body: children. Row: id?, children. Cell: code?: boolean, muted?: boolean, children.
States & variants
Default, code and muted cells; targeted row; long content and narrow scrolling.

04.03

SupportMatrix

Pass bundle parts or harnessSupport.parts. Columns come from the build-time harness configuration. Status uses text and a glyph, not colour alone.

src/components/SupportMatrix/SupportMatrix.tsx

Used by
BundlesPage, BundlePage Reference

Live React
PartClaude CodeOMPPiZotCodex
Skillsskills/**/SKILL.md. Instructions that the agent or the user invokes. supported supported supported supported not supported
Agentsagents/*.md. Subagent definitions with a role and a tool list. supported supported supported not supported not supported
Hookshooks/hooks.json. Commands that run on harness events, such as SessionStart. supported supported not supported supported not supported
Extensionsextensions/. TypeScript modules that add commands and UI to OMP and Pi. not supported supported supported not supported not supported
Parts
SupportMatrix
Props
parts: { id: string; name: string; description: string; harnesses: string[] }[]
States & variants
Supported and not-supported cells; configured harness columns.

04.04

SkillIndex

Keep Filter and Groups inside Root. Search fuzzy-matches names or category/name, ranks results and opens matching categories. A fragment to an item clears the filter and opens its category. Anchors must identify rendered rows.

src/components/SkillIndex/SkillIndex.tsx

Used by
BundlePage Reference

Live React

3 skills

workflow2
SkillCategory
reviewworkflow
implementworkflow
documentation1
SkillCategory
write-guidedocumentation
Reveal review by fragment →
Parts
Root, Filter, Groups; exported SkillIndexItem type
Props
Root: children. Filter: label, placeholder. Groups<T extends SkillIndexItem>: categories: (readonly [string, T[]])[], children: (category, items) => ReactNode. SkillIndexItem: name, anchor.
States & variants
Closed categories, open categories, filtered results, no matches and fragment reveal.

04.05

SkillMetadata

Pass the summary plus loaded document metadata. The rail distinguishes declared versions, local references and inferred outputs. Missing versions and empty reference/output lists are explicit. Its fixed IDs need one instance per document.

src/components/SkillMetadata/SkillMetadata.tsx

Used by
SkillPage

Live React · isolated document

Isolated document. Links and keyboard focus work inside this frame.

Parts
SkillMetadata
Props
skill: BundleSkill & SkillDocumentContent (html, source, schemaVersion, version, references, artifacts)
States & variants
Declared and missing versions; populated and empty references and outputs.

05 / Component chapter

Diagram primitives & complete drawings

Use diagrams for ownership, state and handoff relationships. Keep a text description with each drawing.

05.01

Diagram

Place drawing parts inside Svg so marker IDs resolve through context. Use a unique diagram ID. Coordinates use a 1120-unit viewBox; nodes are 64 units high. The 980px minimum width belongs inside DiagramBlock.Viewport.

src/components/Diagram/Diagram.tsx

Used by
Ownership, Handoff, Lifecycle, Records

Live React
Diagram primitive statesTwo nodes, normal and failure paths, a dashed return and a lane.ImplementDefault nodeReviewHighlighted nodedefaultsmalllabelkeysuccessfailure
Parts
Svg (root), Node, Edge, Text, Lane; exported useDiagram hook
Props
Svg: id, title, description, height, children. Node: x, y, width, title, subtitle?, highlighted?. Edge: d, dashed?, failure?. Text: x, y, tone?: default | small | label | key | success | failure, anchor?: start | middle | end, children: string. Lane: x, from, to.
States & variants
Default and highlighted nodes; normal, dashed and failure edges; six text tones; lanes and text anchors.

05.02

DiagramBlock

Use the same id for Root and Title. Put the diagram inside Viewport. It exposes a keyboard-focusable scroll region and shows a hint only when content overflows. Caption accepts trusted HTML.

src/components/DiagramBlock/DiagramBlock.tsx

Used by
SkillPage

Live React
01

Implementation to review

State transition
Implementation to reviewImplementation produces work for review.ImplementReview

Implementation moves to independent review.

Parts
Root, Head, Title, Kind, Figure, Viewport, Caption; useOverflowHint module
Props
Root: id, children. Head and Figure: children. Title: id, number, children: string. Kind: children: string. Viewport: label, children. Caption: html.
States & variants
Overflow hint on narrow frames; scroll region; title, kind and caption.

05.03

Ownership

Use the registered ownership drawing for workflow authority and file ownership. Each drawing uses its own fixed marker prefix; render only one instance of each drawing per document.

src/diagrams/ownership.tsx

Used by
diagramComponents.ownership → SkillPage

Live React
Ownership workflow drawingThe worktree playbook coordinates shared-context, muxer-subagents, Worktrunk and the ticket skill. Each tool owns its own records, sessions or Git lifecycle.YouSelect a phaseWorktree playbookCoordinate the phaseshared-contextResolve storage routesmuxer-subagentsCreate fresh sessionsWorktrunkOwn Git lifecycleTicket skillResolve issue referenceRecordsResolved locationsNew agentIndependent contextGit worktreeSource workspaceCoordination is not ownership of storage, sessions, or Git.
Parts
Ownership
Props
title: string, description: string (DiagramProps)
States & variants
Complete ownership drawing.

05.04

Handoff

Use the registered handoff drawing to show which information crosses between workflow roles. Keep the description tied to the actual relationship.

src/diagrams/handoff.tsx

Used by
diagramComponents.handoff → SkillPage

Live React
Handoff workflow drawingA user requests implementation and review. The playbook starts fresh agents and verifies durable receipts and the review verdict.YOUWORKTREE PLAYBOOKFRESH AGENT SESSIONstart(ticket)Implementation handoffCompletion signal + durable receiptreview(ticket)Different reviewer · same source worktreeVerdict for the frozen commit01 / Request02 / Verify receipts after each signal03 / Never reuse the implementer
Parts
Handoff
Props
title: string, description: string (DiagramProps)
States & variants
Complete handoff drawing.

05.05

Lifecycle

Use this drawing for implementation, review, approval, submission and completion. Failure paths and changed commits return work to review.

src/diagrams/lifecycle.tsx

Used by
diagramComponents.lifecycle → SkillPage

Live React
Lifecycle workflow drawingImplementation moves through review and approval to optional submission or completion. Fixes and new commits require another review.ImplementingFresh implementationReviewableFreeze source commitReviewIndependent reviewerApprovedCommit-bound verdictNeeds fixFix → new commitSubmittedOptional pull requestFinishedFinish directly or after PRSUCCESSFAILUREReview againSubmitFinishFinishNew commit invalidates the previous verdict
Parts
Lifecycle
Props
title: string, description: string (DiagramProps)
States & variants
Success, failure, repeat-review and completion paths.

05.06

Records

Use the registered records drawing to explain durable workflow records and their relationships. The component is selected through a diagram key in content frontmatter.

src/diagrams/records.tsx

Used by
diagramComponents.records → SkillPage

Live React
Records workflow drawingPhase-start, phase-result and phase-complete events feed append-only records, immutable reviews and snapshots, and replaceable projections.Phase-startBefore the child runsPhase-resultPersist the outcomePhase-completeParent verificationevents/ · append-onlyAuthoritative phase receiptsReviews + snapshotsImmutable outputs / referencesManifest + projectionsReplaceable current viewsEvidence referenceResolve its route separatelyImmutableReplaceable
Parts
Records
Props
title: string, description: string (DiagramProps)
States & variants
Complete records drawing.

06 / Component chapter

Guide components

Authoring guides and their live examples use the same compound composition and spacing rules.

06.01

ComponentExample

Use Preview and Code tabs for one working example. Arrow keys, Home and End move between tabs. Both panels stay mounted so demo state survives tab changes. Shared CopyButton owns clipboard handling and feedback.

src/components/ComponentExample/ComponentExample.tsx

Used by
DesignSystem

Live React
Live React
Parts
ComponentExample
Props
id, title, code, isolated?: boolean, children
States & variants
Preview, code, copy pending, copied and clipboard-unavailable feedback. Isolated full-document demos.

06.02

DesignSystem

This page uses numbered chapters with usage notes beside live examples. Add new component documentation to this inventory, its live demo and its code example together.

src/components/DesignSystem/DesignSystem.tsx

Used by
/design-system/components/ route

Live React

This page is the live DesignSystem instance. Return to its header ↑. Its route composes this guide without nesting a second guide.

Parts
DesignSystem
Props
No props.
States & variants
Foundation tokens, exhaustive component chapters and route-composition appendix.

06.03

PageLayoutThumbnail

Use the schematic to explain page anatomy, not to replace a live component demo. Each instance creates unique title and description IDs. Region labels and descriptions preserve meaning without colour.

src/components/PageLayoutThumbnail/PageLayoutThumbnail.tsx

Used by
PageKinds

Live React
Skill reference layoutA page identity block above a wide instructions article and a narrower metadata column, followed by a footer.SiteHeaderPage.HeaderProse / instructionsMetadataSiteFooter
Skill reference
Missing page layoutA compact missing-page identity block, a short explanation and two recovery links; no full site shell.404 / NotFoundExplanationHomeBundles
Missing page
Parts
PageLayoutThumbnail
Props
kind: PageKind (name, description and labelled regions, alongside its recipe)
States & variants
Nine page layouts; six consistent region roles; compact mobile thumbnails.

06.04

PageKinds

Use this authoring reference to select a page composition. Thumbnails stay to the left of always-visible guidance. The skill-reference layout uses a 280px metadata rail that follows the article on narrow screens.

src/components/PageKinds/PageKinds.tsx

Used by
/page-kinds/ route

Live React

Open the Page kinds guide → to inspect the full composition, all nine layouts and their guidance.

Parts
PageKinds
Props
No props.
States & variants
Nine page kinds, component-reference links, page anchors and shared composition rules.

06.05

DesignSystemOverview

Use the overview as the entry point to the design system. It explains the shared visual language, then directs readers to page-kind guidance or the live component catalogue.

src/components/DesignSystemOverview/DesignSystemOverview.tsx

Used by
/design-system/ route

Live React

Open the design-system overview → for the explanation and section links to page guidance and this catalogue.

Parts
DesignSystemOverview
Props
No props.
States & variants
Explanation, section links, page-guidance links and component-reference links.
07

Inventory boundaries

Route compositions & supporting modules

The 22 original shared families and four complete drawings are all shown above. The authoring guides add five families. Route-local helpers compose those parts; they are not separate reusable APIs.

Route-local compositions

CompositionSourceRole
RootDocumentsrc/routes/__root.tsxHTML shell, metadata, stylesheet, font preload and scripts. NotFound handles unmatched routes.
HomePage / SectionContentsrc/routes/index.tsxLanding composition, article/reference section switch and shared footer.
BundlesPagesrc/routes/bundles/index.tsxBundle links, support matrix, harness table and explanatory prose.
BundlePage / Articles / HowTos / Referencesrc/routes/bundles/$bundle/index.tsxFour Diátaxis chapters. Private helpers render docs, guide links, skill search, agents and hooks.
SkillPagesrc/routes/bundles/$bundle/skill/$skill/index.tsxSkillDocument with compiled prose, metadata, optional explanation, diagrams and source note.
HowToPagesrc/routes/bundles/$bundle/skill/$skill/how-to.tsxSkillDocument with one or more guides and conditional guide navigation.
/404 routesrc/routes/404.tsxRedirect-aware route with NotFound as its component.
/design-system routesrc/routes/design-system/index.tsxDesignSystemOverview explanation and resource links.
/design-system/components routesrc/routes/design-system/components.tsxDesignSystem component catalogue and page metadata.
/page-kinds routesrc/routes/page-kinds.tsxPageKinds authoring reference and page metadata.

Hooks, context and utilities

ModuleContract
useDocSectionDocSection context; Heading, Content and Article stay inside the root.
useDiagramDiagram context; drawing parts stay inside Svg.
useSkillIndexSkillIndex context; Filter and Groups stay inside the root.
useOverflowHintResizeObserver-based overflow detection for DiagramBlock.Viewport.
diagramComponents / DiagramPropsFour registered drawings with shared title and description props.
siteHref / cx / headingSlugBase-aware links, conditional classes and stable heading slugs. These are utilities, not components.

ComponentExample also owns useComponentExample for isolated-frame sizing. The guide’s local PageDemo, DisclosureDemo and MetadataDemo show controlled sample states. Framework shell components (HeadContent and Scripts) and React context providers are integration dependencies, not website design primitives.

Keep this inventory current

When you add or change a component, update inventory.ts, demos.tsx and examples.ts in src/components/DesignSystem. Keep the source path, consumers, compound parts, props and state notes together. The examples use real components; labelled sample data demonstrates empty and populated states.