--- name: public-documentation description: >- Defines authoring, multi-version tabbing, multi-SDK code example, diagram, and PR preview standards for the A2UI developer site (docs/site/). Progressively routes by page type (guides, concepts, components/landing pages, and specifications/agent manifests) so agents load only the rules relevant to their task. metadata: internal: true --- # Public documentation authoring skill This skill defines universal authoring standards for the A2UI developer site (`docs/site/`) and routes by high-level page type so you load only the instructions needed for the content you are creating, editing, or reviewing. --- ## Progressive routing by page type All changes to `docs/site/` must follow the **Universal standards** and **Verification and pull request reviews** sections in this file. Beyond those universal rules, identify the high-level page type or site layer in your task and read **only** the matching reference file(s) below: | Page type / site layer | Scope | Reference file to load | | :-------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **Guides, tutorials, and quickstarts** | Procedural integration guides, step-by-step tutorials, and onboarding quickstarts (e.g. `docs/site/src/content/docs/guides/**`) | [`references/guides-and-quickstarts.md`](references/guides-and-quickstarts.md) — Lean 4–5 step core path, application code before wire JSON, "No Missing Glue" entry points, v1.0-focused prose, and runtime snippet lifecycle hygiene. | | **Conceptual pages and diagrams** | Architectural overviews, mental-model explanations, glossary definitions, and visual diagrams (e.g. `docs/site/src/content/docs/concepts/**`) | [`references/concepts-and-diagrams.md`](references/concepts-and-diagrams.md) — Mental-model framing, v1.0/v0.9.1 wire comparisons, hybrid diagram pattern, Mermaid vs. ``, and glossary/schema deep-linking. | | **Custom Astro components, landing, and directory pages** | Reusable `.astro` components and site styles (`docs/site/src/components/**`, `docs/site/src/styles/**`), plus marketing/landing, overview, and curated directory pages | [`references/components-and-landing-pages.md`](references/components-and-landing-pages.md) — Scoped Astro styles, container queries, design tokens, defensive client scripts, and overview/directory page conventions. | | **Specifications, schemas, and AI agent manifests** | Specification include wrappers (`docs/site/src/content/docs/specification/**`), `docs/site/llms.txt`, dynamic `.md` endpoints (`docs/site/src/pages/**/*.md.ts`), and site build scripts (`docs/site/scripts/**`) | [`references/specifications-and-agent-manifests.md`](references/specifications-and-agent-manifests.md) — `--8<--` spec inclusions, version status labels, `llms.txt` placeholders, fence-aware `llms-full.txt` bundling, and `.md` endpoints. | If you are **only** writing a conceptual page (and not adding a custom `.astro` component), read [`references/concepts-and-diagrams.md`](references/concepts-and-diagrams.md) and skip the guide, component, and manifest references. If a conceptual or guide page also introduces a new `.astro` visual component under `src/components/`, load [`references/components-and-landing-pages.md`](references/components-and-landing-pages.md) as well. --- ## Universal standards (apply to every page) Every page across `docs/site/` must follow these style, component, tabbing, and linking rules regardless of page category. ### Tone, style, and list conventions - **Natural writing**: Follow [`natural-writing`](../natural-writing/SKILL.md). State technical facts directly, use plain copulas ("is", "are") rather than figurative phrasing ("serves as", "stands as"), and never use promotional buzzwords or AI-isms (such as _seamlessly_, _robust_, _delve_, _empower_, _leverage_, _tapestry_). - **First-sentence purpose statement**: Every documentation page (excluding marketing hero pages and raw `--8<--` specification wrappers) must open immediately with a natural, concise sentence explaining what the page covers so readers can tell right away whether it answers their question. Avoid meta-formulas such as "This page covers...", "This page lists...", or "In this guide, we will...". - **Descriptive, unnumbered headings**: Never prefix headings with numbers (such as `## 1. Overview` or `### 2. Setup`) unless the numbers carry formal meaning (such as numbered specification clauses or strict protocol execution phases). For sequential tutorial steps, use Starlight `` or unnumbered prose headings instead. - **Never use numbered lists for unordered items**: - Use **unordered bullet points (`-`)** whenever items do not have an inherent chronological, procedural, or ranked sequence—including feature lists, component properties, architectural layers, design principles, configuration flags, or alternative options. - Reserve **numbered lists (`1.`, `2.`, `3.`)** strictly for sequential step-by-step instructions, ordered execution phases, or explicit precedence rankings. - **Link key terms**: Link domain concepts (such as surface, catalog, data model, renderer) to their formal glossary or specification definitions on first mention. ### Starlight and MDX authoring conventions - **Explicit component imports**: Import Starlight components at the top of `.mdx` files: ```typescript import {Aside, Badge, Steps, Tabs, TabItem} from '@astrojs/starlight/components'; ``` - **Callouts with `