First article
Each article gets a permalink.
Design system / Component reference
Build documentation with the website’s existing parts. Read the usage notes, try the live React example, then copy its code.
The “Used by” notes list consumers outside this guide’s demonstrations.
Choose a page kind →background#191521card#241d33foreground#e6e1f2primary#c9a6ffmutedforeground 70% + backgroundborderforeground 22% + backgroundsuccess#9ccfd8error#f58b92JetBrains 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.
// Semantic colour and type utilities from src/styles/app.css:
<div className="border border-border bg-card p-4 text-foreground">
<h2 className="text-[18px]">Section heading</h2>
<p className="text-[11px] text-muted">Supporting context.</p>
<a href="#reference" className="text-primary">Read reference</a>
<span className="text-success">Supported</span>
<span className="text-error">Not supported</span>
</div>
// JetBrains Mono: weights 400 and 500.
// 4px spacing base. narrow ≤760px; tiny ≤380px; wide ≥1600px.
// Keep colour paired with meaningful text, never colour alone.Usage example. Import components from src/components and diagrams from src/diagrams.
01 / Component chapter
Keep the brand, destinations and keyboard entry points consistent.
01.01
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.tsxUsed by
All page shells, including module, guide, bundle, skill, design-system and missing pages
Isolated document. Links and keyboard focus work inside this frame.
import { SiteHeader } from "./components/SiteHeader";
<SiteHeader current="modules" />
// The header reads its fixed destinations from content/navigation.yaml.
// Nested pages identify their parent: intro, guides, modules or bundles.
// Omit current on a missing page.Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Brand, Nav, NavLink, RepositoryRoot: className?, current?: intro | guides | modules | bundles. Brand: href, mark, label. Nav: label, children. NavLink: href, current?: boolean, children: string. Repository: href, children: string.01.02
Place this first in the page. Its target must exist and accept focus. Focus the frame, then press Tab to reveal the link.
src/components/SkipLink/SkipLink.tsxUsed by
HomePage, BundlesPage, BundlePage, SkillDocument, PageKinds, DesignSystemOverview
Isolated document. Links and keyboard focus work inside this frame.
<SkipLink href="#main">Skip to content</SkipLink>
{/* Header and navigation go here. */}
<Page.Main id="main">Page content</Page.Main>Usage example. Import components from src/components and diagrams from src/diagrams.
SkipLinkhref, children: string01.03
Put a wrapping jump list below a page header. Each link needs a stable section ID. The list is hidden in print.
src/components/SectionLinks/SectionLinks.tsxUsed by
BundlePage, SkillPage, DesignSystemOverview
Both links go to components on this page.
<SectionLinks label="Jump to a chapter">
<SectionLinks.Link href="#actions" number="01">
Actions
</SectionLinks.Link>
<SectionLinks.Link href="#reference" number="02">
Reference
</SectionLinks.Link>
</SectionLinks>
<section id="actions">Action guidance</section>
<section id="reference">Reference guidance</section>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, LinkRoot: label, children. Link: href, number, children: string.02 / Component chapter
Use compound components to assemble headers, introductions and numbered chapters.
02.01
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.tsxUsed by
HomePage, BundlesPage, BundlePage, SkillPage, HowToPage, SkillDocument, NotFound, PageKinds, DesignSystemOverview
Isolated document. Links and keyboard focus work inside this frame.
<Page.Main id="main" width="contained">
<Page.Header>
<Page.Eyebrow>Website / Reference</Page.Eyebrow>
<Page.Title>Page anatomy</Page.Title>
<Page.Description html="<p>One clear title and a short description.</p>" />
<Page.Details items={["Contained width", "Focusable main"]} />
</Page.Header>
</Page.Main>
// Use width="full" for wide content.
// Page itself is an alias for Page.Main.Usage example. Import components from src/components and diagrams from src/diagrams.
Main (root), Header, Eyebrow, Title, Description, DetailsMain: id, width?: contained | full, children. Header: children. Eyebrow and Title: children: string. Description: html. Details: items: string[].02.02
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.tsxUsed by
HomePage
Isolated document. Links and keyboard focus work inside this frame.
<div className="[--section-nav-height:80px]">
<Landing labelledBy="landing-title">
<Landing.Bar>
<span>Workstation documentation</span>
<Landing.Badge>Reference</Landing.Badge>
</Landing.Bar>
<Landing.Body>
<Landing.Introduction>
<Landing.Eyebrow>dotfiles / website</Landing.Eyebrow>
<Landing.Title id="landing-title">A consistent starting point.</Landing.Title>
<Landing.Lead>Build with the existing parts.</Landing.Lead>
<Landing.Actions>
<Button href={siteHref("/bundles/")} variant="primary">
Agent bundles
</Button>
</Landing.Actions>
<Landing.Note>Keep source links close.</Landing.Note>
</Landing.Introduction>
</Landing.Body>
</Landing>
<Landing.Index label="Explore">
<Landing.IndexItem href={siteHref("/bundles/")} number="01"
title="Agent bundles" summary="Skills and harness support." />
</Landing.Index>
</div>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Bar, Badge, Body, Introduction, Eyebrow, Title, Lead, Actions, Note, Index, IndexItemRoot: 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.02.03
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.tsxUsed by
HomePage, BundlesPage, BundlePage, DesignSystemOverview
<DocSection id="example-chapter">
<DocSection.Heading number="01" eyebrow="Reference"
title="Example chapter" summary="Explain the part beside its content." />
<DocSection.Content>
<DocSection.Article title="First article">
<p>Each article gets a permalink.</p>
</DocSection.Article>
<DocSection.Article title="Second article">
<p>Adjacent articles get a separator.</p>
</DocSection.Article>
</DocSection.Content>
</DocSection>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Heading, Content, ArticleRoot: id, children. Heading: number, eyebrow, title, summary. Content: className?, children. Article: id?, title, children.02.04
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.tsxUsed by
SkillPage, HowToPage
Isolated document. Links and keyboard focus work inside this frame.
// In a skill route, pass the summary returned by its loader.
const document = Route.useLoaderData();
<SkillDocument skill={document.skill}>
<Page.Header>
<Page.Eyebrow>Skill instructions</Page.Eyebrow>
<Page.Title>{document.skill.name}</Page.Title>
<p>{document.skill.description}</p>
</Page.Header>
<Prose html={document.skill.html} className="skill-prose" />
</SkillDocument>Usage example. Import components from src/components and diagrams from src/diagrams.
SkillDocumentskill: BundleSkill, children02.05
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.tsxUsed by
Root route notFoundComponent, /404 route
Isolated document. Links and keyboard focus work inside this frame.
import { NotFound } from "./components/NotFound";
// In the root route configuration:
createRootRoute({
notFoundComponent: NotFound,
});
// Or render the fallback directly:
<NotFound />Usage example. Import components from src/components and diagrams from src/diagrams.
NotFoundNo props.03 / Component chapter
Use clear headings, trusted prose and links with explicit destinations.
03.01
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.tsxUsed by
Page, Landing, DocSection, DiagramBlock, SkillMetadata, SkillPage, HowToPage, PageKinds
<Heading as="h2" id="installation" title="Installation"
className="mb-4 text-[18px]" />
<Heading as="h3" id="install-command" title="Install command"
className="text-[14px]">
Run <code>mise install</code>
</Heading>Usage example. Import components from src/components and diagrams from src/diagrams.
Headingas: h1 | h2 | h3, id, title, className?, children?: ReactNode03.02
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.tsxUsed by
Page.Description, SourceNote, DiagramBlock.Caption, HomePage, BundlesPage, BundlePage, SkillPage, HowToPage, GuideDocumentation
Use clear labels, short instructions and inline code.
This sample is trusted HTML, not user input.
mise run website:dev| Token | Use |
|---|---|
| primary | Links and focus |
// Use HTML compiled from trusted repository content.
<Prose html={document.skill.html} className="skill-prose" />
// Root-relative links receive the site's base path:
<Prose html='<p><a href="/bundles/">Agent bundles</a></p>' />
// Do not pass untrusted HTML. Prose does not sanitize it.Usage example. Import components from src/components and diagrams from src/diagrams.
Prosehtml: string, className?: string, render?: (html: string) => ReactNode03.03
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.tsxUsed by
SiteHeader, SiteFooter, Landing, ReferenceList, SupportMatrix, HomePage
The text carries the meaning. The glyphs are hidden from assistive technology.
<span>Continue <Glyph>→</Glyph></span>
<span>Supported <Glyph>✓</Glyph></span>
<span>Not supported <Glyph>✗</Glyph></span>
<Glyph /> // Renders nothing.
// Each non-empty glyph has aria-hidden="true".Usage example. Import components from src/components and diagrams from src/diagrams.
Glyphchildren?: string03.04
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.tsxUsed by
HomePage, NotFound
<Button href="#reference" variant="primary">
Read references <Glyph>→</Glyph>
</Button>
<Button href="#source">View source note</Button>
// Both render <a>, not <button>.
// Use a native button for an in-page action.Usage example. Import components from src/components and diagrams from src/diagrams.
Buttonhref: string, variant?: default | primary, children: ReactNode03.05
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.tsxUsed by
ComponentExample, Prose, DesignSystem
/skill:worktree tasks INITIATIVE_IDCopy 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.
import { CopyButton } from "./components/CopyButton";
const command = "/skill:worktree tasks INITIATIVE_ID";
<CopyButton value={command} aria-label="Copy worktree task command" />
<CopyButton value={command} asChild>
<button type="button" className="copy-inline">
<code>{command}</code>
</button>
</CopyButton>
// asChild requires one native button; it does not add a nested button.
// Enter and Space activate it. A child's onClick can preventDefault to cancel copying.
// Without children: Copy → Copying… → Copied or Copy again.
// Inline child text stays unchanged; a live status announces pending, success or error.
// Pending keeps keyboard focus and blocks duplicate copies.
// If clipboard access fails, select and copy the text manually. Nothing is executed.Usage example. Import components from src/components and diagrams from src/diagrams.
CopyButtonvalue: string, asChild?: boolean, children?: ReactNode; standard button DOM props and ref. Defaults: type=button, label=Copy.03.06
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.tsxUsed by
Prose, DesignSystem
mise run website:checkHover 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.
import { CodeBlock } from "./components/CodeBlock";
import { CopyButton } from "./components/CopyButton";
const source = "mise run website:check";
<CodeBlock>
<pre><code>{source}</code></pre>
<CopyButton value={source} aria-label="Copy code block" />
</CodeBlock>
// CodeBlock anchors the composed CopyButton at the top right.
// Hover or keyboard focus reveals it; touch controls stay visible.
// Pass the same source to code and CopyButton. Copying never executes it.Usage example. Import components from src/components and diagrams from src/diagrams.
CodeBlock; compose pre, code and CopyButton as childrenStandard div DOM props, children?: ReactNode, className?: string.03.07
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.tsxUsed by
HomePage SectionContent, BundlesPage, DesignSystemOverview
<ReferenceList>
<ReferenceList.Item href={siteHref("/bundles/")}
title="Agent bundles"
description="Skills, agents, hooks and harness support." />
<ReferenceList.Item href={siteHref("/")} title="Workstation guide" />
</ReferenceList>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, ItemRoot: children, dividers?: boolean (default true). Item: href, title, description?: string.03.08
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.tsxUsed by
SkillPage, PageKinds
<SourceNote label="Source provenance"
html='<p>Built from repository content. <a href="https://github.com/zenobi-us/dotfiles">Read the source</a>.</p>' />Usage example. Import components from src/components and diagrams from src/diagrams.
SourceNotelabel: string, html: string04 / Component chapter
Keep large reference sets searchable, readable and clear about missing information.
04.01
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.tsxUsed by
SkillIndex.Groups
SKILL.md — instructions
howto.md — usage guide
No reference files are available for this example.
const [open, setOpen] = useState(false);
<Disclosure>
<Disclosure.Summary title="Reference files" count={2} />
<Disclosure.Content>
<p>SKILL.md — instructions</p>
<p>howto.md — usage guide</p>
</Disclosure.Content>
</Disclosure>
<Disclosure open={open} onToggle={setOpen}>
<Disclosure.Summary title="Controlled reference" count={0} />
<Disclosure.Content>
<p>No reference files are available.</p>
</Disclosure.Content>
</Disclosure>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Summary, ContentRoot: open?: boolean, onToggle?: (open: boolean) => void, children. Summary: title: string, count: number. Content: children.04.02
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.tsxUsed by
SupportMatrix, BundlesPage, BundlePage Reference and reload instructions
| Component | Purpose | Source path |
|---|---|---|
| Button | Navigation action | src/components/Button/Button.tsx |
| ComponentExample | Live example and usage code | src/components/ComponentExample/ComponentExample.tsx |
<DataTable label="Component contracts">
<DataTable.Head columns={["Component", "Purpose", "Source"]} />
<DataTable.Body>
<DataTable.Row id="component-button">
<DataTable.Cell code>Button</DataTable.Cell>
<DataTable.Cell>Navigation action</DataTable.Cell>
<DataTable.Cell muted>src/components/Button/Button.tsx</DataTable.Cell>
</DataTable.Row>
</DataTable.Body>
</DataTable>
<a href="#component-button">Highlight the Button row</a>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Head, Body, Row, CellRoot: label, children. Head: columns: string[]. Body: children. Row: id?, children. Cell: code?: boolean, muted?: boolean, children.04.03
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.tsxUsed by
BundlesPage, BundlePage Reference
| Part | Claude Code | OMP | Pi | Zot | Codex |
|---|---|---|---|---|---|
| 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 |
import { harnessSupport, partsOf } from "./content";
// The full site matrix:
<SupportMatrix parts={harnessSupport.parts} />
// Only the parts present in a loaded bundle:
<SupportMatrix parts={partsOf(bundle)} />Usage example. Import components from src/components and diagrams from src/diagrams.
SupportMatrixparts: { id: string; name: string; description: string; harnesses: string[] }[]04.04
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.tsxUsed by
BundlePage Reference
const categories = [
["workflow", [
{ name: "review", anchor: "example-review" },
{ name: "implement", anchor: "example-implement" },
]],
] satisfies (readonly [string, { name: string; anchor: string }[]])[];
<SkillIndex>
<SkillIndex.Filter label="Filter skills" placeholder="Try review" />
<SkillIndex.Groups categories={categories}>
{(category, items) => (
<ul aria-label={category}>
{items.map(item => (
<li key={item.anchor} id={item.anchor}>{item.name}</li>
))}
</ul>
)}
</SkillIndex.Groups>
</SkillIndex>
<a href="#example-review">Reveal review</a>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Filter, Groups; exported SkillIndexItem typeRoot: children. Filter: label, placeholder. Groups<T extends SkillIndexItem>: categories: (readonly [string, T[]])[], children: (category, items) => ReactNode. SkillIndexItem: name, anchor.04.05
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.tsxUsed by
SkillPage
Isolated document. Links and keyboard focus work inside this frame.
// skillPageOf loads the summary plus document metadata.
const document = Route.useLoaderData();
<div className="grid grid-cols-[minmax(0,1fr)_280px] gap-8 narrow:grid-cols-1">
<article className="min-w-0">
<Prose html={document.skill.html} className="skill-prose" />
</article>
<SkillMetadata skill={document.skill} />
</div>
// null versions render "Not declared".
// Empty references and artifacts get explicit empty-state text.Usage example. Import components from src/components and diagrams from src/diagrams.
SkillMetadataskill: BundleSkill & SkillDocumentContent (html, source, schemaVersion, version, references, artifacts)05 / Component chapter
Use diagrams for ownership, state and handoff relationships. Keep a text description with each drawing.
05.01
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.tsxUsed by
Ownership, Handoff, Lifecycle, Records
Scroll this diagram sideways →
<DiagramBlock.Viewport label="Review flow">
<Diagram.Svg id="review-flow" title="Review flow"
description="Implementation moves to review." height={280}>
<Diagram.Lane x={100} from={20} to={260} />
<Diagram.Node x={180} y={40} width={240}
title="Implement" subtitle="Default node" />
<Diagram.Edge d="M420 72H650" />
<Diagram.Node x={650} y={40} width={240}
title="Review" subtitle="Highlighted node" highlighted />
<Diagram.Edge d="M770 104V170H300" failure />
<Diagram.Edge d="M300 170V104" dashed />
<Diagram.Text x={180} y={240} tone="success" anchor="start">
Approved
</Diagram.Text>
</Diagram.Svg>
</DiagramBlock.Viewport>Usage example. Import components from src/components and diagrams from src/diagrams.
Svg (root), Node, Edge, Text, Lane; exported useDiagram hookSvg: 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.05.02
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.tsxUsed by
SkillPage
<DiagramBlock id="review-example">
<DiagramBlock.Head>
<DiagramBlock.Title id="review-example" number="01">
Implementation to review
</DiagramBlock.Title>
<DiagramBlock.Kind>State transition</DiagramBlock.Kind>
</DiagramBlock.Head>
<DiagramBlock.Figure>
<DiagramBlock.Viewport label="Implementation to review">
<Diagram.Svg id="review-drawing" title="Review flow"
description="Implementation moves to review." height={160}>
<Diagram.Node x={180} y={40} width={240} title="Implement" />
<Diagram.Edge d="M420 72H650" />
<Diagram.Node x={650} y={40} width={240} title="Review" highlighted />
</Diagram.Svg>
</DiagramBlock.Viewport>
<DiagramBlock.Caption html="<p>Work moves to independent review.</p>" />
</DiagramBlock.Figure>
</DiagramBlock>Usage example. Import components from src/components and diagrams from src/diagrams.
Root, Head, Title, Kind, Figure, Viewport, Caption; useOverflowHint moduleRoot: id, children. Head and Figure: children. Title: id, number, children: string. Kind: children: string. Viewport: label, children. Caption: html.05.03
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.tsxUsed by
diagramComponents.ownership → SkillPage
Scroll this diagram sideways →
import { Ownership } from "./diagrams/ownership";
<DiagramBlock.Viewport label="Workflow ownership">
<Ownership title="Workflow ownership"
description="The playbook coordinates tools that own storage, sessions, Git and tickets." />
</DiagramBlock.Viewport>Usage example. Import components from src/components and diagrams from src/diagrams.
Ownershiptitle: string, description: string (DiagramProps)05.04
Use the registered handoff drawing to show which information crosses between workflow roles. Keep the description tied to the actual relationship.
src/diagrams/handoff.tsxUsed by
diagramComponents.handoff → SkillPage
Scroll this diagram sideways →
import { Handoff } from "./diagrams/handoff";
<DiagramBlock.Viewport label="Agent handoff">
<Handoff title="Agent handoff"
description="The playbook starts fresh implementers and reviewers and verifies receipts." />
</DiagramBlock.Viewport>Usage example. Import components from src/components and diagrams from src/diagrams.
Handofftitle: string, description: string (DiagramProps)05.05
Use this drawing for implementation, review, approval, submission and completion. Failure paths and changed commits return work to review.
src/diagrams/lifecycle.tsxUsed by
diagramComponents.lifecycle → SkillPage
Scroll this diagram sideways →
import { Lifecycle } from "./diagrams/lifecycle";
<DiagramBlock.Viewport label="Work lifecycle">
<Lifecycle title="Work lifecycle"
description="Implementation moves through review and approval to submission or completion; changes require new review." />
</DiagramBlock.Viewport>Usage example. Import components from src/components and diagrams from src/diagrams.
Lifecycletitle: string, description: string (DiagramProps)05.06
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.tsxUsed by
diagramComponents.records → SkillPage
Scroll this diagram sideways →
import { Records } from "./diagrams/records";
<DiagramBlock.Viewport label="Workflow records">
<Records title="Workflow records"
description="Append-only events link to immutable artifacts and replaceable projections." />
</DiagramBlock.Viewport>Usage example. Import components from src/components and diagrams from src/diagrams.
Recordstitle: string, description: string (DiagramProps)06 / Component chapter
Authoring guides and their live examples use the same compound composition and spacing rules.
06.01
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.tsxUsed by
DesignSystem
<Button href="#component-Button">Read action guidance</Button>Usage example. Import components from src/components and diagrams from src/diagrams.
<ComponentExample id="action-example" title="Action"
code={'<Button href="#reference">Read reference</Button>'}>
<Button href="#reference">Read reference</Button>
</ComponentExample>
// Add isolated for a full-document demo with its own landmarks or IDs.Usage example. Import components from src/components and diagrams from src/diagrams.
ComponentExampleid, title, code, isolated?: boolean, children06.02
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.tsxUsed by
/design-system/components/ route
This page is the live DesignSystem instance. Return to its header ↑. Its route composes this guide without nesting a second guide.
import { createFileRoute } from "@tanstack/react-router";
import { DesignSystem } from "../../components/DesignSystem/DesignSystem";
export const Route = createFileRoute("/design-system/components")({
head: () => ({
meta: [{ title: "Components — design system — dotfiles" }],
}),
component: DesignSystem,
});
// inventory.ts owns chapters and component contracts.
// demos.tsx owns live examples. examples.ts owns usage snippets.Usage example. Import components from src/components and diagrams from src/diagrams.
DesignSystemNo props.06.03
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.tsxUsed by
PageKinds
import { PageLayoutThumbnail } from "./components/PageLayoutThumbnail/PageLayoutThumbnail";
import { pageKinds } from "./components/PageKinds/page-kinds";
{pageKinds.map(kind => (
<figure key={kind.id}>
<PageLayoutThumbnail kind={kind} />
<figcaption>{kind.name}</figcaption>
</figure>
))}Usage example. Import components from src/components and diagrams from src/diagrams.
PageLayoutThumbnailkind: PageKind (name, description and labelled regions, alongside its recipe)06.04
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.tsxUsed by
/page-kinds/ route
Open the Page kinds guide → to inspect the full composition, all nine layouts and their guidance.
import { PageKinds } from "./components/PageKinds/PageKinds";
<PageKinds />
// Full page: owns its shell, page title, article, metadata rail and footer.
// page-kinds.ts defines the nine recipes and their labelled schematic regions.Usage example. Import components from src/components and diagrams from src/diagrams.
PageKindsNo props.06.05
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.tsxUsed by
/design-system/ route
Open the design-system overview → for the explanation and section links to page guidance and this catalogue.
import { DesignSystemOverview } from "./components/DesignSystemOverview/DesignSystemOverview";
<DesignSystemOverview />
// Overview page: explains the system and links page guidance and components.Usage example. Import components from src/components and diagrams from src/diagrams.
DesignSystemOverviewNo props.| Composition | Source | Role |
|---|---|---|
| RootDocument | src/routes/__root.tsx | HTML shell, metadata, stylesheet, font preload and scripts. NotFound handles unmatched routes. |
| HomePage / SectionContent | src/routes/index.tsx | Landing composition, article/reference section switch and shared footer. |
| BundlesPage | src/routes/bundles/index.tsx | Bundle links, support matrix, harness table and explanatory prose. |
| BundlePage / Articles / HowTos / Reference | src/routes/bundles/$bundle/index.tsx | Four Diátaxis chapters. Private helpers render docs, guide links, skill search, agents and hooks. |
| SkillPage | src/routes/bundles/$bundle/skill/$skill/index.tsx | SkillDocument with compiled prose, metadata, optional explanation, diagrams and source note. |
| HowToPage | src/routes/bundles/$bundle/skill/$skill/how-to.tsx | SkillDocument with one or more guides and conditional guide navigation. |
| /404 route | src/routes/404.tsx | Redirect-aware route with NotFound as its component. |
| /design-system route | src/routes/design-system/index.tsx | DesignSystemOverview explanation and resource links. |
| /design-system/components route | src/routes/design-system/components.tsx | DesignSystem component catalogue and page metadata. |
| /page-kinds route | src/routes/page-kinds.tsx | PageKinds authoring reference and page metadata. |
| Module | Contract |
|---|---|
| useDocSection | DocSection context; Heading, Content and Article stay inside the root. |
| useDiagram | Diagram context; drawing parts stay inside Svg. |
| useSkillIndex | SkillIndex context; Filter and Groups stay inside the root. |
| useOverflowHint | ResizeObserver-based overflow detection for DiagramBlock.Viewport. |
| diagramComponents / DiagramProps | Four registered drawings with shared title and description props. |
| siteHref / cx / headingSlug | Base-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.
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.