[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D2ERMMJ92XAAS24458H3EM":3,"skill-same:01M6D2ERMMJ92XAAS24458H3EM":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6D2ERMMJ92XAAS24458H3EM","color-scheme-a11y",null,"WCAG-baseline contrast rules for zudo-doc's two ramp-native color schemes (Default Light, Default Dark — sharing one set of base\u002Faccent\u002Fstate ramps). MUST be consulted before adding a new scheme, or editing\u002Ftweaking the shared ramps or a scheme's per-mode `map` in packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts, for accessibility. Covers the finalized fg\u002Fbg pair matrix + thresholds, the OKLCH hue-preserving tweak methodology, the muted dual-role decision, the verification workflow, and the new-scheme checklist. Triggered by 'color scheme', 'contrast', 'WCAG', 'a11y color', 'ramp tweak', 'scheme accessibility'.","zudolab\u002Fzudo-doc","zudolab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266356510?v=4","01M6D2E9N9X9851YB24CEQF04H","01M6D2E9SFKZ0FWBMPB2625H28",1,"MIT","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcolor-scheme-a11y\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"scheme","color","a11y","color scheme a11y","baseline","contrast","matrix","oklch","native","new","mode","doc","methodology","base","accessibility","src","sharing","packages","verification","state","WCAG","workflow","Rules","map","decision","default","editing","SET","shared","2026-11-10 10:12:30",false,"---\nname: color-scheme-a11y\ndescription: \"WCAG-baseline contrast rules for zudo-doc's two ramp-native color schemes (Default Light, Default Dark — sharing one set of base\u002Faccent\u002Fstate ramps). MUST be consulted before adding a new scheme, or editing\u002Ftweaking the shared ramps or a scheme's per-mode `map` in packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts, for accessibility. Covers the finalized fg\u002Fbg pair matrix + thresholds, the OKLCH hue-preserving tweak methodology, the muted dual-role decision, the verification workflow, and the new-scheme checklist. Triggered by 'color scheme', 'contrast', 'WCAG', 'a11y color', 'ramp tweak', 'scheme accessibility'.\"\n---\n\n# Color-Scheme Accessibility Rules (scheme-a11y, epic #2489; re-grounded for the Color Ramp Restructure #2584\u002F#2602)\n\n**IMPORTANT — this is the executable spec.** An agent tweaking a ramp or a scheme's `map`\nmust be able to produce correct edits from **this document + `pnpm contrast:audit` output\nalone**. Every rule here is concrete. When in doubt, the AA text floor wins.\n\nzudo-doc ships **two color schemes** — `Default Light` and `Default Dark` — defined in\n`packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts` (package-owned since the\nminimal-scaffold cutover, epic zudolab\u002Fzudo-doc#2651, Wave 6 #2661 — the former host copy,\n`src\u002Fconfig\u002Fcolor-schemes.ts`, was byte-identical to this and deleted; both the showcase and\nevery `create-zudo-doc` project ride this package default unless they pass a `colorSchemes`\noverride to `zudoDoc({...})`). A `ColorScheme` is `{ ramps, map }`: both schemes **share**\none set of Tier-1 ramps (`base` — 5 stops, `accent` — 3 stops, `state` — 4 named colors:\n`danger`\u002F`success`\u002F`warning`\u002F`info`) and differ only in their per-mode `map` (which ramp\nstop, or literal OKLCH override, each of the 4 base roles + 23 semantic roles points at).\n**This file is the single canonical color surface** — do NOT touch e2e fixtures\n(`e2e\u002Ffixtures\u002F*\u002Fsrc\u002Fconfig\u002F…`), which carry unguarded hex copies by design.\n\n\u003CNote>\n\n**History.** An earlier iteration of this project (epic #2489\u002F#2510) shipped 52 schemes —\nthe 2 defaults above plus **50 ghostty-sourced ANSI terminal presets** in a since-deleted\n`src\u002Fconfig\u002Fcolor-tweak-presets.ts`, loaded live via a zdtp \"Scheme…\" dropdown. The Color\nRamp Restructure (epic #2584, minimized in #2602) **deleted the preset file and the\ndropdown** — the ramps themselves are now the editable surface, via zdtp's **Palette** tab\ncurve editor. Most of this skill's original content concerned deriving `semantic`\noverrides for those 50 ANSI-convention presets (`p8`–`p15` bright-variant mismatches); that\nrecipe no longer applies to anything currently in the codebase and has been removed below.\nWhat remains is the contrast-pair matrix and OKLCH tuning methodology, re-grounded in the\n2 current schemes.\n\n\u003C\u002FNote>\n\nBoth schemes currently **pass the full matrix with an empty allowlist** (`pnpm\ncontrast:audit` → 25\u002F25 pairs PASS for each). Keep it that way: a new allowlist entry is a\nlast resort, not a starting point (§2.3).\n\n## 1. The pair matrix + thresholds\n\nHow a color renders decides its threshold: **text ≥ 4.5:1 (AA normal text), non-text\ngraphics\u002FUI ≥ 3.0:1 (WCAG 1.4.11).** Every pair below was verified to render as **text**\nsomewhere in the product — evidence cited. AA text floors are **non-negotiable**; a pair\ndrops to Tier 2 only with proof it never renders as text.\n\nThe matrix is data-driven and lives in `scripts\u002Fcontrast-pair-matrix.ts`\n(`PAIR_MATRIX`\u002F`evaluateScheme`) — shared by `scripts\u002Fcontrast-audit.ts` (the CLI),\n`scripts\u002Fcontrast-suggest.ts` (--suggest derivation), and\n`src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts` (the vitest guard) so this skill, the audit tool,\nand the test can never drift. Resolve every pair through the package resolvers\n(`resolveSemanticColors` \u002F `schemeToCssPairs` in `@takazudo\u002Fzudo-doc\u002Fcolor-scheme-utils`)\n— the same path production uses. Admonition backgrounds are\n`color-mix(in srgb, \u003Ccolor> 12%, var(--color-bg))` (`packages\u002Fzudo-doc\u002Fsrc\u002Fcontent.css`).\n\nThe **\"Default ramp ref\"** column is `SEMANTIC_RAMP_DEFAULTS` (`surface: { base: 4 }`,\n`muted: { base: 1 }`, `accent: { accent: 1 }`, `codeBg: { base: 3 }`, `codeFg: { base: 0 }`,\n…) — the Default Dark reference wiring. Default Light re-points several roles to a\ndifferent ramp stop, and several roles on **both** schemes carry a **per-mode literal\nOKLCH override** instead of a ramp ref (an AA tune that only one mode needs) — see §1.1.\n\n### Tier 1 — text, AA ≥ 4.5:1\n\n| Pair (fg \u002F bg) | Default ramp ref | Renders as text — evidence | Threshold |\n|---|---|---|---|\n| `fg` \u002F `bg` | fg=`{base:0}`, bg=`{base:4}` | Body copy; `--zd-fg` on `--zd-bg`. `schemeToCssPairs` → `--zd-fg`\u002F`--zd-bg`. | 4.5 |\n| `fg` \u002F `surface` | surface=`{base:4}` (= `bg`) | Text on elevated panels: footer `bg-surface` (`packages\u002Fzudo-doc\u002Fsrc\u002Ffooter\u002Ffooter.tsx:89`), toolbar `bg-surface` (`…\u002Fdoclayout\u002Fdoc-layout-with-defaults.tsx:367`), dropdown\u002Fdialog panels (`…\u002Fi18n-version\u002Fversion-switcher.tsx:216`, `…\u002Fisland-types\u002Findex.ts:78`). | 4.5 |\n| `muted` \u002F `bg` | muted=`{base:1}` | **Secondary body text** — blockquote body `text-muted italic` (`…\u002Fcontent\u002Fcontent-blockquote.tsx:11`), footer text (`footer.tsx:84,116,144`), TOC inactive links (`…\u002Ftoc\u002Ftoc.tsx:102`, `…\u002Ftoc\u002Fmobile-toc.tsx:122`), doc-pager labels (`…\u002Fdoc-pager\u002Findex.tsx:59`), `li::marker` (`content.css:163`), code-block title (`features.css:228`). Dual-role — see §3. **Multi-bg — see the three rows below (#2510).** | 4.5 |\n| `muted` \u002F `surface` | muted=`{base:1}`, surface=`{base:4}` | Muted text on the **elevated surface** chrome: footer link\u002Ftag columns `text-muted` on the `\u003Cfooter bg-surface>` (`footer.tsx:89` + `:116,:144`), toolbar (`…\u002Fdoclayout\u002Fdoc-layout-with-defaults.tsx:367`), doc-history trigger (`…\u002Fdoc-history\u002Findex.tsx:561`), html-preview toolbar labels (`…\u002Fhtml-preview-wrapper\u002Fpreview-base.tsx:142,161`). Added #2510. | 4.5 |\n| `muted` \u002F `codeBg` | muted=`{base:1}`, codeBg=`{base:3}` | `.code-block-title` — `color: var(--color-muted)` on `background: var(--color-code-bg)` (`features.css:225-229`). Added #2510. | 4.5 |\n| `muted` \u002F `chatAssistantBg` | muted=`{base:1}`, chatAssistantBg=`{base:4}` | ai-chat loading bubble — `text-muted` on `bg-chat-assistant-bg` (`…\u002Fai-chat-modal\u002Findex.tsx:210-215`, \"Thinking…\"). Added #2510. | 4.5 |\n| `accent` \u002F `bg` | accent=`{accent:1}` | **Links are body text** — `text-accent underline` (`…\u002Fcontent\u002Fcontent-link.tsx:41`), heading hash-link `#` (`content.css:131`), footnote\u002FUI links (`features.css:507`). **Raised 3.0→4.5** (epic). | 4.5 |\n| `accent` \u002F `surface` | accent=`{accent:1}`, surface=`{base:4}` | Accent text on the **elevated surface** chrome: footer copyright links `[&_a]:text-accent` on `\u003Cfooter bg-surface>` (`footer.tsx:84-85,89`), footer link `hover:text-accent` (`footer.tsx:116,144`), `\u003Csummary bg-surface … hover:text-accent>` (`…\u002Fdetails\u002Fdetails.tsx:28`), preset-generator button `text-accent bg-surface` (`src\u002Fcomponents\u002Fpreset-generator.tsx:792`). Added #2510. | 4.5 |\n| `accentHover` \u002F `bg` | accentHover=`{accent:0}` | Link hover text — `hover:text-accent-hover` (`content-link.tsx:41`, `features.css:512`). | 4.5 |\n| `codeFg` \u002F `codeBg` | codeFg=`{base:0}`, codeBg=`{base:3}` | Inline code + code-block base text (`features.css:256-257`, `features.css:533-534`). Governs base text only — syntax tokens are out of scope (§6). | 4.5 |\n| admonition **note** = `accent` \u002F mix(accent 12%, bg) | accent=`{accent:1}` | Title text (`content.css:336`) on tinted bg (`content.css:332`). Semibold `text-small` (16px) — normal-text territory, full 4.5. | 4.5 |\n| admonition **tip** = `success` \u002F mix(success 12%, bg) | success=`{state:\"success\"}` | Title (`content.css:352`) on tint (`content.css:348`). | 4.5 |\n| admonition **info** = `info` \u002F mix(info 12%, bg) | info=`{state:\"info\"}` | Title (`content.css:368`) on tint (`content.css:364`). | 4.5 |\n| admonition **warning** = `warning` \u002F mix(warning 12%, bg) | warning=`{state:\"warning\"}` | Title (`content.css:384`) on tint (`content.css:378`). | 4.5 |\n| admonition **danger** = `danger` \u002F mix(danger 12%, bg) | danger=per-mode literal (see §1.1) | Title (`content.css:400`) on tint (`content.css:394`). Also drives `caution` (`content.css:434`, reuses `--color-danger`). | 4.5 |\n| admonition **important** = `accent` \u002F mix(accent 12%, bg) | accent=`{accent:1}` | Title reads **semantic `--color-accent`** (`content.css:411-417`, tint `content.css:412`) — NOT a raw ramp stop. Unlike the pre-restructure model, there is no raw-palette render path here anymore; see §2. | 4.5 |\n| `selectionFg` \u002F `selectionBg` | fg\u002Fbg fallbacks | Selected text (`src\u002Fstyles\u002Fglobal.css:326-328`, `::selection`). | 4.5 |\n| `matchedKeywordFg` \u002F `matchedKeywordBg` | both shared literals (see §1.1) | Search `\u003Cmark>` text (`global.css:362-363`). | 4.5 |\n| `chatUserText` \u002F `chatUserBg` | text=`{base:4}`, bg=`{accent:1}` | Chat user bubble text (`…\u002Fai-chat-modal\u002Findex.tsx:41`). | 4.5 |\n| `chatAssistantText` \u002F `chatAssistantBg` | text=`{base:0}`, bg=`{base:4}` (= `bg`) | Chat assistant bubble text (`…\u002Fai-chat-modal\u002Findex.tsx:46`). | 4.5 |\n\n### Tier 2 — graphics \u002F UI, ≥ 3.0:1 (mermaid text keeps 4.5)\n\n| Pair | Default ramp ref | Why this tier | Threshold |\n|---|---|---|---|\n| `mermaidText` \u002F `mermaidNodeBg` | text=`{base:0}`, nodeBg=`{base:3}` | **Text inside diagram nodes** — text floor applies. | 4.5 |\n| `mermaidText` \u002F `mermaidLabelBg` | text=`{base:0}`, labelBg=`{base:3}` | Text on edge labels — text floor. | 4.5 |\n| `mermaidText` \u002F `mermaidNoteBg` | text=`{base:0}`, noteBg=`{base:2}` | **Text inside diagram note boxes.** `mermaid-init-script.ts:346-347` maps `--zd-mermaid-note-bg`→`noteBkgColor`, `--zd-mermaid-text`→`noteTextColor`. Text floor. | 4.5 |\n| `mermaidLine` \u002F `bg` | line=`{base:1}` | Diagram edges\u002Farrows = non-text graphics. | 3.0 |\n| `imageOverlayFg` \u002F `imageOverlayBg` | fg=`{base:0}`, bg=`{base:4}` (= `bg`) | Enlarge\u002Fclose **icon** buttons over images (`features.css:631,684`; 80% mix) — icon glyphs, not text. | 3.0 |\n\n**Excluded (vestigial, no CSS consumer):** `shikiTheme` (highlighting is syntect's, not\nShiki). `cursor` is not vestigial — it was **deleted** in the ramp restructure (no\n`--zd-cursor` exists at all). Neither is audited or tweaked.\n\n**No pair was downgraded from the S1 spec.** `mermaidText\u002F*` is nominally \"graphics\" but\ncarries the 4.5 text floor because it labels nodes. If a future audit finds a Tier-1 pair\nthat provably never renders as text in this product, downgrade it *with the file:line\nproof inline* — not on a hunch.\n\n### 1.1 Per-mode literal overrides (not a shared ramp ref)\n\nA handful of roles can't be satisfied by a shared ramp stop in both modes — the accent and\nstate ramps are authored against a **dark** background, so several need a darker literal on\nlight mode to clear AA:\n\n- **Default Dark**: `danger` = `oklch(.655 .170 25)` — a per-mode AA tune slightly lighter\n  than the shared `state.danger` (`oklch(.640 .170 25)`), so the danger-admonition title\n  clears AA on its dark-mode 12%-tint background.\n- **Default Light**: `accentHover`, `success`, `danger`, `warning`, `info` are all per-mode\n  literals (darkened versions of the shared ramp\u002Fstate colors) to clear AA on the\n  near-white page background.\n- **Both modes**: `matchedKeywordBg` \u002F `matchedKeywordFg` are shared literals (not ramp\n  refs) — the amber search-highlight is deliberately identical in both modes.\n\nThese are documented per-value in `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`\n(search for \"per-mode AA-tuned literal\" \u002F \"carried from #2593\"\u002F\"#2595\"). When retuning one, keep it a literal\n(don't try to force it back onto a shared ramp stop) unless the retune is meant to move the\n*shared* ramp value for both modes at once.\n\n## 2. Tweak methodology\n\nAdjust the failing color **in the data file**, not the pipeline. Work per scheme, per\nfailing pair.\n\n> **Fix everything data-side. Do NOT change `SEMANTIC_RAMP_DEFAULTS` or any code in\n> `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-scheme-utils.ts`.** Both schemes rely on the current\n> mapping, and a mechanism change ripples to every downstream consumer of the package.\n> Every fix here is a per-scheme edit to `map.semantic` (or, for a change that should apply\n> to both modes at once, a shared `ramps.base`\u002F`ramps.accent`\u002F`ramps.state` stop) in\n> `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`.\n\n### 2.1 OKLCH hue-preserving minimal move\n\n1. Parse the failing color to OKLCH (`culori` `oklch()`).\n2. **Keep hue (H) fixed.** Move **lightness (L)** in the direction that raises contrast —\n   *lighten* against a dark bg, *darken* against a light bg — by the **smallest** step that\n   clears the threshold (search in ~0.002 L increments). This preserves scheme character.\n3. **Reduce chroma (C) only** if the L move gamut-clips in sRGB (culori returns\n   out-of-gamut components). Never reduce C preemptively — desaturating dulls the theme.\n4. Re-resolve and confirm the pair (and every *other* pair the same ramp stop or literal\n   feeds — one stop often drives multiple pairs, and moving a **shared ramp stop** affects\n   both schemes at once, not just the one you're fixing).\n\n**Never tune to the exact floor — target `threshold + 0.1` headroom.** Live-browser\nverification of the original epic (#2489, S8) found colors tuned to EXACTLY the WCAG floor\n(e.g. 4.51:1) rendering at 4.47-4.50:1 in the real DOM: browser `color-mix(in srgb, X 12%,\nbg)` compositing and 8-bit sRGB quantization eat up to ~0.03-0.05 of ratio between the\ncomputed math and what the page actually paints. The suggest engine\n(`scripts\u002Fcontrast-suggest.ts`, `HEADROOM = 0.1`) targets `threshold + 0.1` by default for\nevery nudge — a hand-tune should do the same (hard minimum `threshold + 0.05` if\ngamut-clipping genuinely prevents the full 0.1; note it when that happens). The PASS\u002FFAIL\nfloors themselves (4.5 \u002F 3.0, in `contrast-pair-matrix.ts` and the vitest guard) stay at\nthe raw WCAG thresholds — headroom is a tuning target, not a new floor.\n\n### 2.2 (retired) ANSI-palette preset recipe\n\nThe former §2.2 covered deriving `semantic` overrides for the 50 ghostty ANSI-terminal\npresets, whose `p8`–`p15` \"bright variant\" convention broke the project's palette-index\nassumptions. Those presets and the palette-index model are both gone (see the History note\nabove) — this recipe no longer applies to anything in the codebase and has been removed.\n\n### 2.3 Semantic-override-first — no raw-ramp render path remains\n\nFix a failing pair via a `map.semantic.\u003Crole>` override (either a different `RampRef` or a\nliteral OKLCH string). **There is no raw-ramp render path left in the product** to work\naround: the pre-restructure `important` admonition read a raw palette slot (`--color-p5`)\ndirectly, bypassing the semantic layer — that was the ONE such path, and it's gone. The\n`important` admonition now reads `var(--color-accent)` like every other role\n(`packages\u002Fzudo-doc\u002Fsrc\u002Fcontent.css:409-417`). So every fix here is a normal semantic\n(or shared-ramp) edit — there is no special \"fix at the raw slot\" case to remember.\n\nIf you ever find a NEW component that reads a raw `--palette-*` custom property directly\n(bypassing the semantic `--zd-*` layer), treat that as a design smell worth flagging, not a\npattern to replicate — see [Reaching a raw ramp stop](..\u002F..\u002Freference\u002Fcolor.mdx#reaching-a-raw-ramp-stop-rare)\nin the Color reference doc.\n\n### 2.4 Comment format — required on every tweaked value\n\n```\n\u002F* per-mode AA-tuned literal — \u003Cwhy> (scheme-a11y #2489) *\u002F\n```\n\nState *why* the value is a literal (which pair it clears, and against which background) so\na future reader doesn't try to collapse it back onto a shared ramp stop. This mirrors the\ncomment style already in `color-schemes-defaults\u002Findex.ts` (e.g. \"carried from #2593\",\n\"carried from #2595\").\n\n### 2.5 Allowlist = last resort\n\nOnly for a pair **provably not user-visible in this product**, with a one-line\njustification naming *why it never renders*. \"Upstream fidelity\" \u002F \"palette intrinsic\" is\n**not** an acceptable reason — tweak the color instead. Both `ALLOWLIST` and\n`ADMONITION_ALLOWLIST` in `src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts` are currently **empty**\n— both schemes clear the full matrix outright. Keep it that way; default to tweaking.\n\n## 3. The `muted` dual-role DECISION\n\n`muted` is **both** secondary text (4.5 floor — blockquote body, footer, TOC, pager;\ncitations in §1) **and** borders (`border-muted`: table borders `content.css:197,215,229`;\nadmonition left border `content.css:284`; blockquote `border-l-[3px]`\n`content-blockquote.tsx:11`; ~20 component `border-muted` sites). Raising `muted` to the\ntext floor also lightens those borders.\n\n### DECISION: raise `muted` to 4.5 — accept the marginally crisper borders. Do NOT split a border token.\n\nThis decision was made and applied during the original epic and carries forward unchanged\nthrough the ramp restructure — both current schemes already clear `muted`-vs-`bg` (Default\nDark 7.10:1, Default Light 5.91:1 — `pnpm contrast:audit`).\n\n**Reasoning:**\n\n1. **The floor is forced regardless of borders.** `muted` unambiguously renders as\n   body-level secondary text (blockquote body copy, footer, TOC links). Leaving it below\n   4.5 ships unreadable secondary text — so the move is not optional.\n2. **The border side effect is negligible.** A `muted` tuned to just clear 4.5 raises\n   border contrast by well under a ratio point on 1–4px lines — imperceptibly crisper, not\n   \"heavier\" (weight\u002Fthickness is unchanged).\n3. **Splitting a border token is disproportionate churn.** A new `--zd-border` would ripple\n   through the package API (`SEMANTIC_KEYS`, `SEMANTIC_CSS_NAMES`, `resolveSemanticColors`,\n   `schemeToCssPairs` in `color-scheme-utils.ts`), both `theme.css` `:root` blocks, every\n   `border-muted` site in `content.css` \u002F `features.css` \u002F ~20 components, the\n   `create-zudo-doc` templates, e2e fixtures, and `settings.ts` — for a fraction of a ratio\n   point of border crispness.\n\n**If a future scheme's `muted` fails:** fix by lightening\u002Fdarkening `muted` (via\n`map.semantic.muted`, or moving the shared `base` stop it points at — check whether that\nstop also feeds anything else first) to the 4.5 floor. Do not add a border token.\n\n### `muted` has MULTIPLE background constraints (#2510) — clear the WORST one\n\n`muted` does not render on the page `bg` alone. It is also secondary text on the elevated\nbackgrounds **`surface`** (footer\u002Ftoolbar\u002Fdropdown chrome), **`codeBg`** (`.code-block-title`),\nand **`chatAssistantBg`** (ai-chat loading bubble) — see the four `muted`\u002F`accent` rows in\n§1. **One `muted` value must clear ALL of its backgrounds at threshold+0.1**, so tune it\nagainst its *worst-contrast* background, not just page bg.\n\nIn the current ramp model, `surface` and `chatAssistantBg` are **merged onto `bg`** in both\nschemes (role-merge philosophy — see the Color reference doc), so `muted`'s worst-case\nbackground is effectively `min(bg, codeBg)`. `codeBg` sits on its own ramp stop\n(`{base:3}` dark \u002F `{base:0}` light) close to `bg`, so a `muted` tuned to clear `bg` needs\nonly a small extra nudge, if any, to also clear `codeBg` — `contrast-suggest.ts` computes\nthe `min` over these backgrounds automatically.\n\n## 4. Verification workflow\n\n1. **Audit (primary, both schemes):**\n   ```sh\n   pnpm contrast:audit          # per-scheme table: pair, resolved colors, ratio, PASS\u002FFAIL\n   pnpm contrast:audit --html   # self-contained visual preview (gitignored out dir)\n   ```\n\n   The audit tool derives every color via the package resolvers and mirrors the real\n   `content.css` construction (12% srgb mix), so its ratios match the DOM. Open the\n   `--html` preview to eyeball tinted admonitions, links, muted text, chat bubbles,\n   selection, `\u003Cmark>`, and mermaid samples with their computed ratios.\n\n   **Current state:** both `Default Light` and `Default Dark` pass all 25 pairs\n   (`pnpm contrast:audit` → `25\u002F25 pairs pass` for each, 50 checks total, zero allowlist\n   entries).\n2. **Unit guard:**\n   ```sh\n   pnpm test:unit   # runs src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts (full matrix)\n   ```\n\n   Must be green with empty allowlists. A stale allowlist key (never consulted) fails the\n   integrity test — remove keys as you fix their schemes.\n3. **Live computed check (`\u002Fverify-ui`-style):** before verifying colors on the running\n   doc, **clear persisted zdtp state** or it overrides scheme values and you'll verify the\n   wrong colors. In devtools console:\n\n   ```js\n   Object.keys(localStorage).filter(k => k.startsWith('zudo-doc-tweak')).forEach(k => localStorage.removeItem(k)); location.reload();\n   ```\n\n   (Clears `zudo-doc-tweak-state-v3` \u002F `-v2` \u002F v1 — the persisted tweak envelope.) Then read\n   computed `color` \u002F `background-color` on real elements (a link, blockquote, an admonition\n   title, `\u003Cmark>`). Note: worktree agents do **not** run dev servers\u002Fbrowsers — this step\n   is for manual\u002Flive confirm sweeps, not batch tweak edits.\n\n## 5. New-scheme checklist\n\nBefore adding a new entry to `colorSchemes` in\n`packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`, it must:\n\n- [ ] Define its own `ramps` (or explicitly reuse an existing `Ramps` object, as Default\n      Light\u002FDark do) and a `map` covering the 4 base roles + all 23 semantic roles — spread\n      `SEMANTIC_RAMP_DEFAULTS` and override only what needs to differ (see the Color\n      reference doc's \"Adding a Custom Color Scheme\" section).\n- [ ] Pass **every Tier-1 pair at ≥ 4.5** and **every Tier-2 pair at its floor** (§1) via\n      `pnpm contrast:audit` — zero new allowlist entries.\n- [ ] Use a per-mode **literal OKLCH override** (not a ramp ref) for any role that can't\n      clear AA at any of its ramp's existing stops (§1.1) — document why with the §2.4\n      comment format.\n- [ ] Keep OKLCH hue fixed on all tweaks; reduce chroma only where noted for gamut.\n- [ ] No template-mirror step needed anymore — since the minimal-scaffold cutover (epic\n      #2651), both this showcase and every `create-zudo-doc` project source `colorSchemes`\n      from this SAME package file unless they pass their own `colorSchemes` override to\n      `zudoDoc({...})`, so a package-side edit here reaches both automatically. If a project\n      DOES carry its own `colorSchemes` override (an escape-hatch field on `ZudoDocConfig`,\n      not a file), that project owns its own contrast audit independently.\n- [ ] NOT touch e2e fixtures.\n\n## 6. Documented exceptions & scope\n\n- **Syntax highlighting is out of scope.** `--shiki-*` code-token colors (base16-ocean,\n  configured in `zfb.config.ts`) are scheme-independent and set by syntect, not by these\n  schemes. `codeFg`\u002F`codeBg` governs inline code and code-block **base text** only — do not\n  try to reach syntax token colors from here.\n- **There is no raw-ramp render path to exempt.** The pre-restructure `important`\n  admonition read a raw palette slot directly (`--color-p5`) and was a documented exception\n  here; it now reads semantic `--color-accent` like every other role (§2.3), so this\n  exception no longer applies to anything in the product.\n- **Downstream persisted zdtp tweaks keep old colors.** Users who saved custom colors carry\n  a persisted `zudo-doc-tweak-*` envelope that overrides scheme values; they won't see these\n  fixes until they reset. Acceptable and out of scope.\n- **`shikiTheme` is vestigial** — no CSS consumes it; excluded from the matrix. `cursor` is\n  not vestigial-but-present — it was deleted outright in the ramp restructure (no\n  `--zd-cursor` exists to audit).\n- **Theme packs are a different surface — see `pnpm theme-a11y:audit` instead.** This\n  skill and `pnpm contrast:audit` cover only the 2 built-in **color schemes** (Default\n  Light\u002FDark), checked statically via the package resolvers — no browser, no theme-pack\n  CSS. For rendered, per-**theme-pack** contrast (the CSS a pack layers on top of a\n  scheme — e.g. an active-nav chip losing contrast under one pack's stylesheet, invisible\n  to a static check), use `pnpm theme-a11y:audit` (`scripts\u002Ftheme-a11y-audit.ts`) — a\n  real-browser audit wired into the `theme-a11y` T3 nightly exam job. See TESTING.md's\n  \"Theme A11y Audit\" section (#3036).\n\n## 7. Theme-pack nav `:hover` guard (pack-author contract, epic #4032)\n\nThis section is the theme-pack counterpart to §6's \"different surface\" pointer — the\nconcrete rule a pack author must follow, not just the tool that catches a violation.\n\n**Rule.** A theme pack (`packages\u002Fzudo-doc\u002Fsrc\u002Ftheme-packs\u002F*\u002Fpack.css`) that authors a\nnav `:hover` rule setting `color` **or** `background` MUST exclude\n`[aria-current=\"page\"]`, on the **anchor**, in **both** header DOM shapes. Before epic\n#4032 this existed only as a code comment inside one pack (`blueprint\u002Fpack.css`, \"the\nscandi\u002Fwashi guard pattern\"). The survey that drove the epic found 14 packs violating\nit and four packs guarding with the wrong attribute.\n\n**Why.** The active nav item carries the base inverted fill —\n`NAV_TOP_ACTIVE = [\"bg-fg\", \"text-bg\"]` (`packages\u002Fzudo-doc\u002Fsrc\u002Fheader\u002Fnav-class-tokens.ts:28`).\nAn unlayered pack selector like `html[data-theme-pack=\"x\"] [data-nav-item]:hover` sits\nat specificity `(0,3,1)`, which beats the base `@layer utilities` `text-bg` rule at\n`(0,1,0)`. An unguarded hover repaints the active pill's ink or background and\ncollapses the contrast — measured as low as **1.00:1** (identical fg\u002Fbg, text\nliterally invisible).\n\n**Reference pattern** —\n`packages\u002Fzudo-doc\u002Fsrc\u002Ftheme-packs\u002Fphosphor\u002Fpack.css:241-251` guards both shapes:\n`a[data-nav-item]:not([aria-current=\"page\"]):hover` and\n`[data-nav-item-dropdown] > a:not([aria-current=\"page\"]):hover`. Guarding only the\nwrapper `div` is ineffective — the colors live on the child `\u003Ca>`.\n\n**The `data-nav-active` trap.** `:not([data-nav-active])` is not the same guard:\n\n- It is **never emitted on header nav items** — `header.tsx:487` and `:550` set only\n  `aria-current`. `:not([data-nav-active])` on the header is a no-op.\n- It is **incomplete on the sidebar** — an active root\u002Fcategory node gets\n  `aria-current=\"page\"` at `sidebar-tree-island\u002Findex.tsx:766` WITHOUT\n  `data-nav-active` (`:767` sets it only when `!isRoot && isActive`). observatory,\n  washi, riso, and sakura shipped exactly this guard and still failed.\n\nUse `:not([aria-current=\"page\"])`, and only that.\n\n**Audit-gated exception.** A rule that sets `color` **and** `background` together\nreplaces the pill wholesale rather than tinting it, and several packs (sakura, scandi,\nbauhaus, drift's header rule) do this deliberately, unguarded, and measure AA-clean.\nThe guard is optional **only while `pnpm theme-a11y:audit` proves the state green** —\nthe audit is the arbiter, not the shape of the rule.\n\n**A second trap the static formula in §4 can't see: descendant color.** A pack's\n`color` on the anchor reaches only what inherits from it. Card-style links can set\ntheir own ink on a `group-hover:text-fg` \u002F `group-hover:text-accent` utility on a\ndescendant `\u003Cspan>`, which wins over the anchor's inherited color.\n`brutalist\u002Fpack.css:389-414` is the concrete case — the prose-link hover rule\n(`:400-407`) needed a companion `… a:hover *` rule (`:408-414`) to actually reach the\nnote-tray card spans sharing its selector. This is exactly why `theme-a11y:audit`\nrenders real pages and reads computed styles, unlike `contrast:audit` above.\n","# Color-Scheme Accessibility Rules (scheme-a11y, epic #2489; re-grounded for the Color Ramp Restructure #2584\u002F#2602)\n\n**IMPORTANT — this is the executable spec.** An agent tweaking a ramp or a scheme's `map`\nmust be able to produce correct edits from **this document + `pnpm contrast:audit` output\nalone**. Every rule here is concrete. When in doubt, the AA text floor wins.\n\nzudo-doc ships **two color schemes** — `Default Light` and `Default Dark` — defined in\n`packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts` (package-owned since the\nminimal-scaffold cutover, epic zudolab\u002Fzudo-doc#2651, Wave 6 #2661 — the former host copy,\n`src\u002Fconfig\u002Fcolor-schemes.ts`, was byte-identical to this and deleted; both the showcase and\nevery `create-zudo-doc` project ride this package default unless they pass a `colorSchemes`\noverride to `zudoDoc({...})`). A `ColorScheme` is `{ ramps, map }`: both schemes **share**\none set of Tier-1 ramps (`base` — 5 stops, `accent` — 3 stops, `state` — 4 named colors:\n`danger`\u002F`success`\u002F`warning`\u002F`info`) and differ only in their per-mode `map` (which ramp\nstop, or literal OKLCH override, each of the 4 base roles + 23 semantic roles points at).\n**This file is the single canonical color surface** — do NOT touch e2e fixtures\n(`e2e\u002Ffixtures\u002F*\u002Fsrc\u002Fconfig\u002F…`), which carry unguarded hex copies by design.\n\n\u003CNote>\n\n**History.** An earlier iteration of this project (epic #2489\u002F#2510) shipped 52 schemes —\nthe 2 defaults above plus **50 ghostty-sourced ANSI terminal presets** in a since-deleted\n`src\u002Fconfig\u002Fcolor-tweak-presets.ts`, loaded live via a zdtp \"Scheme…\" dropdown. The Color\nRamp Restructure (epic #2584, minimized in #2602) **deleted the preset file and the\ndropdown** — the ramps themselves are now the editable surface, via zdtp's **Palette** tab\ncurve editor. Most of this skill's original content concerned deriving `semantic`\noverrides for those 50 ANSI-convention presets (`p8`–`p15` bright-variant mismatches); that\nrecipe no longer applies to anything currently in the codebase and has been removed below.\nWhat remains is the contrast-pair matrix and OKLCH tuning methodology, re-grounded in the\n2 current schemes.\n\n\u003C\u002FNote>\n\nBoth schemes currently **pass the full matrix with an empty allowlist** (`pnpm\ncontrast:audit` → 25\u002F25 pairs PASS for each). Keep it that way: a new allowlist entry is a\nlast resort, not a starting point (§2.3).\n\n## 1. The pair matrix + thresholds\n\nHow a color renders decides its threshold: **text ≥ 4.5:1 (AA normal text), non-text\ngraphics\u002FUI ≥ 3.0:1 (WCAG 1.4.11).** Every pair below was verified to render as **text**\nsomewhere in the product — evidence cited. AA text floors are **non-negotiable**; a pair\ndrops to Tier 2 only with proof it never renders as text.\n\nThe matrix is data-driven and lives in `scripts\u002Fcontrast-pair-matrix.ts`\n(`PAIR_MATRIX`\u002F`evaluateScheme`) — shared by `scripts\u002Fcontrast-audit.ts` (the CLI),\n`scripts\u002Fcontrast-suggest.ts` (--suggest derivation), and\n`src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts` (the vitest guard) so this skill, the audit tool,\nand the test can never drift. Resolve every pair through the package resolvers\n(`resolveSemanticColors` \u002F `schemeToCssPairs` in `@takazudo\u002Fzudo-doc\u002Fcolor-scheme-utils`)\n— the same path production uses. Admonition backgrounds are\n`color-mix(in srgb, \u003Ccolor> 12%, var(--color-bg))` (`packages\u002Fzudo-doc\u002Fsrc\u002Fcontent.css`).\n\nThe **\"Default ramp ref\"** column is `SEMANTIC_RAMP_DEFAULTS` (`surface: { base: 4 }`,\n`muted: { base: 1 }`, `accent: { accent: 1 }`, `codeBg: { base: 3 }`, `codeFg: { base: 0 }`,\n…) — the Default Dark reference wiring. Default Light re-points several roles to a\ndifferent ramp stop, and several roles on **both** schemes carry a **per-mode literal\nOKLCH override** instead of a ramp ref (an AA tune that only one mode needs) — see §1.1.\n\n### Tier 1 — text, AA ≥ 4.5:1\n\n| Pair (fg \u002F bg) | Default ramp ref | Renders as text — evidence | Threshold |\n|---|---|---|---|\n| `fg` \u002F `bg` | fg=`{base:0}`, bg=`{base:4}` | Body copy; `--zd-fg` on `--zd-bg`. `schemeToCssPairs` → `--zd-fg`\u002F`--zd-bg`. | 4.5 |\n| `fg` \u002F `surface` | surface=`{base:4}` (= `bg`) | Text on elevated panels: footer `bg-surface` (`packages\u002Fzudo-doc\u002Fsrc\u002Ffooter\u002Ffooter.tsx:89`), toolbar `bg-surface` (`…\u002Fdoclayout\u002Fdoc-layout-with-defaults.tsx:367`), dropdown\u002Fdialog panels (`…\u002Fi18n-version\u002Fversion-switcher.tsx:216`, `…\u002Fisland-types\u002Findex.ts:78`). | 4.5 |\n| `muted` \u002F `bg` | muted=`{base:1}` | **Secondary body text** — blockquote body `text-muted italic` (`…\u002Fcontent\u002Fcontent-blockquote.tsx:11`), footer text (`footer.tsx:84,116,144`), TOC inactive links (`…\u002Ftoc\u002Ftoc.tsx:102`, `…\u002Ftoc\u002Fmobile-toc.tsx:122`), doc-pager labels (`…\u002Fdoc-pager\u002Findex.tsx:59`), `li::marker` (`content.css:163`), code-block title (`features.css:228`). Dual-role — see §3. **Multi-bg — see the three rows below (#2510).** | 4.5 |\n| `muted` \u002F `surface` | muted=`{base:1}`, surface=`{base:4}` | Muted text on the **elevated surface** chrome: footer link\u002Ftag columns `text-muted` on the `\u003Cfooter bg-surface>` (`footer.tsx:89` + `:116,:144`), toolbar (`…\u002Fdoclayout\u002Fdoc-layout-with-defaults.tsx:367`), doc-history trigger (`…\u002Fdoc-history\u002Findex.tsx:561`), html-preview toolbar labels (`…\u002Fhtml-preview-wrapper\u002Fpreview-base.tsx:142,161`). Added #2510. | 4.5 |\n| `muted` \u002F `codeBg` | muted=`{base:1}`, codeBg=`{base:3}` | `.code-block-title` — `color: var(--color-muted)` on `background: var(--color-code-bg)` (`features.css:225-229`). Added #2510. | 4.5 |\n| `muted` \u002F `chatAssistantBg` | muted=`{base:1}`, chatAssistantBg=`{base:4}` | ai-chat loading bubble — `text-muted` on `bg-chat-assistant-bg` (`…\u002Fai-chat-modal\u002Findex.tsx:210-215`, \"Thinking…\"). Added #2510. | 4.5 |\n| `accent` \u002F `bg` | accent=`{accent:1}` | **Links are body text** — `text-accent underline` (`…\u002Fcontent\u002Fcontent-link.tsx:41`), heading hash-link `#` (`content.css:131`), footnote\u002FUI links (`features.css:507`). **Raised 3.0→4.5** (epic). | 4.5 |\n| `accent` \u002F `surface` | accent=`{accent:1}`, surface=`{base:4}` | Accent text on the **elevated surface** chrome: footer copyright links `[&_a]:text-accent` on `\u003Cfooter bg-surface>` (`footer.tsx:84-85,89`), footer link `hover:text-accent` (`footer.tsx:116,144`), `\u003Csummary bg-surface … hover:text-accent>` (`…\u002Fdetails\u002Fdetails.tsx:28`), preset-generator button `text-accent bg-surface` (`src\u002Fcomponents\u002Fpreset-generator.tsx:792`). Added #2510. | 4.5 |\n| `accentHover` \u002F `bg` | accentHover=`{accent:0}` | Link hover text — `hover:text-accent-hover` (`content-link.tsx:41`, `features.css:512`). | 4.5 |\n| `codeFg` \u002F `codeBg` | codeFg=`{base:0}`, codeBg=`{base:3}` | Inline code + code-block base text (`features.css:256-257`, `features.css:533-534`). Governs base text only — syntax tokens are out of scope (§6). | 4.5 |\n| admonition **note** = `accent` \u002F mix(accent 12%, bg) | accent=`{accent:1}` | Title text (`content.css:336`) on tinted bg (`content.css:332`). Semibold `text-small` (16px) — normal-text territory, full 4.5. | 4.5 |\n| admonition **tip** = `success` \u002F mix(success 12%, bg) | success=`{state:\"success\"}` | Title (`content.css:352`) on tint (`content.css:348`). | 4.5 |\n| admonition **info** = `info` \u002F mix(info 12%, bg) | info=`{state:\"info\"}` | Title (`content.css:368`) on tint (`content.css:364`). | 4.5 |\n| admonition **warning** = `warning` \u002F mix(warning 12%, bg) | warning=`{state:\"warning\"}` | Title (`content.css:384`) on tint (`content.css:378`). | 4.5 |\n| admonition **danger** = `danger` \u002F mix(danger 12%, bg) | danger=per-mode literal (see §1.1) | Title (`content.css:400`) on tint (`content.css:394`). Also drives `caution` (`content.css:434`, reuses `--color-danger`). | 4.5 |\n| admonition **important** = `accent` \u002F mix(accent 12%, bg) | accent=`{accent:1}` | Title reads **semantic `--color-accent`** (`content.css:411-417`, tint `content.css:412`) — NOT a raw ramp stop. Unlike the pre-restructure model, there is no raw-palette render path here anymore; see §2. | 4.5 |\n| `selectionFg` \u002F `selectionBg` | fg\u002Fbg fallbacks | Selected text (`src\u002Fstyles\u002Fglobal.css:326-328`, `::selection`). | 4.5 |\n| `matchedKeywordFg` \u002F `matchedKeywordBg` | both shared literals (see §1.1) | Search `\u003Cmark>` text (`global.css:362-363`). | 4.5 |\n| `chatUserText` \u002F `chatUserBg` | text=`{base:4}`, bg=`{accent:1}` | Chat user bubble text (`…\u002Fai-chat-modal\u002Findex.tsx:41`). | 4.5 |\n| `chatAssistantText` \u002F `chatAssistantBg` | text=`{base:0}`, bg=`{base:4}` (= `bg`) | Chat assistant bubble text (`…\u002Fai-chat-modal\u002Findex.tsx:46`). | 4.5 |\n\n### Tier 2 — graphics \u002F UI, ≥ 3.0:1 (mermaid text keeps 4.5)\n\n| Pair | Default ramp ref | Why this tier | Threshold |\n|---|---|---|---|\n| `mermaidText` \u002F `mermaidNodeBg` | text=`{base:0}`, nodeBg=`{base:3}` | **Text inside diagram nodes** — text floor applies. | 4.5 |\n| `mermaidText` \u002F `mermaidLabelBg` | text=`{base:0}`, labelBg=`{base:3}` | Text on edge labels — text floor. | 4.5 |\n| `mermaidText` \u002F `mermaidNoteBg` | text=`{base:0}`, noteBg=`{base:2}` | **Text inside diagram note boxes.** `mermaid-init-script.ts:346-347` maps `--zd-mermaid-note-bg`→`noteBkgColor`, `--zd-mermaid-text`→`noteTextColor`. Text floor. | 4.5 |\n| `mermaidLine` \u002F `bg` | line=`{base:1}` | Diagram edges\u002Farrows = non-text graphics. | 3.0 |\n| `imageOverlayFg` \u002F `imageOverlayBg` | fg=`{base:0}`, bg=`{base:4}` (= `bg`) | Enlarge\u002Fclose **icon** buttons over images (`features.css:631,684`; 80% mix) — icon glyphs, not text. | 3.0 |\n\n**Excluded (vestigial, no CSS consumer):** `shikiTheme` (highlighting is syntect's, not\nShiki). `cursor` is not vestigial — it was **deleted** in the ramp restructure (no\n`--zd-cursor` exists at all). Neither is audited or tweaked.\n\n**No pair was downgraded from the S1 spec.** `mermaidText\u002F*` is nominally \"graphics\" but\ncarries the 4.5 text floor because it labels nodes. If a future audit finds a Tier-1 pair\nthat provably never renders as text in this product, downgrade it *with the file:line\nproof inline* — not on a hunch.\n\n### 1.1 Per-mode literal overrides (not a shared ramp ref)\n\nA handful of roles can't be satisfied by a shared ramp stop in both modes — the accent and\nstate ramps are authored against a **dark** background, so several need a darker literal on\nlight mode to clear AA:\n\n- **Default Dark**: `danger` = `oklch(.655 .170 25)` — a per-mode AA tune slightly lighter\n  than the shared `state.danger` (`oklch(.640 .170 25)`), so the danger-admonition title\n  clears AA on its dark-mode 12%-tint background.\n- **Default Light**: `accentHover`, `success`, `danger`, `warning`, `info` are all per-mode\n  literals (darkened versions of the shared ramp\u002Fstate colors) to clear AA on the\n  near-white page background.\n- **Both modes**: `matchedKeywordBg` \u002F `matchedKeywordFg` are shared literals (not ramp\n  refs) — the amber search-highlight is deliberately identical in both modes.\n\nThese are documented per-value in `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`\n(search for \"per-mode AA-tuned literal\" \u002F \"carried from #2593\"\u002F\"#2595\"). When retuning one, keep it a literal\n(don't try to force it back onto a shared ramp stop) unless the retune is meant to move the\n*shared* ramp value for both modes at once.\n\n## 2. Tweak methodology\n\nAdjust the failing color **in the data file**, not the pipeline. Work per scheme, per\nfailing pair.\n\n> **Fix everything data-side. Do NOT change `SEMANTIC_RAMP_DEFAULTS` or any code in\n> `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-scheme-utils.ts`.** Both schemes rely on the current\n> mapping, and a mechanism change ripples to every downstream consumer of the package.\n> Every fix here is a per-scheme edit to `map.semantic` (or, for a change that should apply\n> to both modes at once, a shared `ramps.base`\u002F`ramps.accent`\u002F`ramps.state` stop) in\n> `packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`.\n\n### 2.1 OKLCH hue-preserving minimal move\n\n1. Parse the failing color to OKLCH (`culori` `oklch()`).\n2. **Keep hue (H) fixed.** Move **lightness (L)** in the direction that raises contrast —\n   *lighten* against a dark bg, *darken* against a light bg — by the **smallest** step that\n   clears the threshold (search in ~0.002 L increments). This preserves scheme character.\n3. **Reduce chroma (C) only** if the L move gamut-clips in sRGB (culori returns\n   out-of-gamut components). Never reduce C preemptively — desaturating dulls the theme.\n4. Re-resolve and confirm the pair (and every *other* pair the same ramp stop or literal\n   feeds — one stop often drives multiple pairs, and moving a **shared ramp stop** affects\n   both schemes at once, not just the one you're fixing).\n\n**Never tune to the exact floor — target `threshold + 0.1` headroom.** Live-browser\nverification of the original epic (#2489, S8) found colors tuned to EXACTLY the WCAG floor\n(e.g. 4.51:1) rendering at 4.47-4.50:1 in the real DOM: browser `color-mix(in srgb, X 12%,\nbg)` compositing and 8-bit sRGB quantization eat up to ~0.03-0.05 of ratio between the\ncomputed math and what the page actually paints. The suggest engine\n(`scripts\u002Fcontrast-suggest.ts`, `HEADROOM = 0.1`) targets `threshold + 0.1` by default for\nevery nudge — a hand-tune should do the same (hard minimum `threshold + 0.05` if\ngamut-clipping genuinely prevents the full 0.1; note it when that happens). The PASS\u002FFAIL\nfloors themselves (4.5 \u002F 3.0, in `contrast-pair-matrix.ts` and the vitest guard) stay at\nthe raw WCAG thresholds — headroom is a tuning target, not a new floor.\n\n### 2.2 (retired) ANSI-palette preset recipe\n\nThe former §2.2 covered deriving `semantic` overrides for the 50 ghostty ANSI-terminal\npresets, whose `p8`–`p15` \"bright variant\" convention broke the project's palette-index\nassumptions. Those presets and the palette-index model are both gone (see the History note\nabove) — this recipe no longer applies to anything in the codebase and has been removed.\n\n### 2.3 Semantic-override-first — no raw-ramp render path remains\n\nFix a failing pair via a `map.semantic.\u003Crole>` override (either a different `RampRef` or a\nliteral OKLCH string). **There is no raw-ramp render path left in the product** to work\naround: the pre-restructure `important` admonition read a raw palette slot (`--color-p5`)\ndirectly, bypassing the semantic layer — that was the ONE such path, and it's gone. The\n`important` admonition now reads `var(--color-accent)` like every other role\n(`packages\u002Fzudo-doc\u002Fsrc\u002Fcontent.css:409-417`). So every fix here is a normal semantic\n(or shared-ramp) edit — there is no special \"fix at the raw slot\" case to remember.\n\nIf you ever find a NEW component that reads a raw `--palette-*` custom property directly\n(bypassing the semantic `--zd-*` layer), treat that as a design smell worth flagging, not a\npattern to replicate — see [Reaching a raw ramp stop](..\u002F..\u002Freference\u002Fcolor.mdx#reaching-a-raw-ramp-stop-rare)\nin the Color reference doc.\n\n### 2.4 Comment format — required on every tweaked value\n\n```\n\u002F* per-mode AA-tuned literal — \u003Cwhy> (scheme-a11y #2489) *\u002F\n```\n\nState *why* the value is a literal (which pair it clears, and against which background) so\na future reader doesn't try to collapse it back onto a shared ramp stop. This mirrors the\ncomment style already in `color-schemes-defaults\u002Findex.ts` (e.g. \"carried from #2593\",\n\"carried from #2595\").\n\n### 2.5 Allowlist = last resort\n\nOnly for a pair **provably not user-visible in this product**, with a one-line\njustification naming *why it never renders*. \"Upstream fidelity\" \u002F \"palette intrinsic\" is\n**not** an acceptable reason — tweak the color instead. Both `ALLOWLIST` and\n`ADMONITION_ALLOWLIST` in `src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts` are currently **empty**\n— both schemes clear the full matrix outright. Keep it that way; default to tweaking.\n\n## 3. The `muted` dual-role DECISION\n\n`muted` is **both** secondary text (4.5 floor — blockquote body, footer, TOC, pager;\ncitations in §1) **and** borders (`border-muted`: table borders `content.css:197,215,229`;\nadmonition left border `content.css:284`; blockquote `border-l-[3px]`\n`content-blockquote.tsx:11`; ~20 component `border-muted` sites). Raising `muted` to the\ntext floor also lightens those borders.\n\n### DECISION: raise `muted` to 4.5 — accept the marginally crisper borders. Do NOT split a border token.\n\nThis decision was made and applied during the original epic and carries forward unchanged\nthrough the ramp restructure — both current schemes already clear `muted`-vs-`bg` (Default\nDark 7.10:1, Default Light 5.91:1 — `pnpm contrast:audit`).\n\n**Reasoning:**\n\n1. **The floor is forced regardless of borders.** `muted` unambiguously renders as\n   body-level secondary text (blockquote body copy, footer, TOC links). Leaving it below\n   4.5 ships unreadable secondary text — so the move is not optional.\n2. **The border side effect is negligible.** A `muted` tuned to just clear 4.5 raises\n   border contrast by well under a ratio point on 1–4px lines — imperceptibly crisper, not\n   \"heavier\" (weight\u002Fthickness is unchanged).\n3. **Splitting a border token is disproportionate churn.** A new `--zd-border` would ripple\n   through the package API (`SEMANTIC_KEYS`, `SEMANTIC_CSS_NAMES`, `resolveSemanticColors`,\n   `schemeToCssPairs` in `color-scheme-utils.ts`), both `theme.css` `:root` blocks, every\n   `border-muted` site in `content.css` \u002F `features.css` \u002F ~20 components, the\n   `create-zudo-doc` templates, e2e fixtures, and `settings.ts` — for a fraction of a ratio\n   point of border crispness.\n\n**If a future scheme's `muted` fails:** fix by lightening\u002Fdarkening `muted` (via\n`map.semantic.muted`, or moving the shared `base` stop it points at — check whether that\nstop also feeds anything else first) to the 4.5 floor. Do not add a border token.\n\n### `muted` has MULTIPLE background constraints (#2510) — clear the WORST one\n\n`muted` does not render on the page `bg` alone. It is also secondary text on the elevated\nbackgrounds **`surface`** (footer\u002Ftoolbar\u002Fdropdown chrome), **`codeBg`** (`.code-block-title`),\nand **`chatAssistantBg`** (ai-chat loading bubble) — see the four `muted`\u002F`accent` rows in\n§1. **One `muted` value must clear ALL of its backgrounds at threshold+0.1**, so tune it\nagainst its *worst-contrast* background, not just page bg.\n\nIn the current ramp model, `surface` and `chatAssistantBg` are **merged onto `bg`** in both\nschemes (role-merge philosophy — see the Color reference doc), so `muted`'s worst-case\nbackground is effectively `min(bg, codeBg)`. `codeBg` sits on its own ramp stop\n(`{base:3}` dark \u002F `{base:0}` light) close to `bg`, so a `muted` tuned to clear `bg` needs\nonly a small extra nudge, if any, to also clear `codeBg` — `contrast-suggest.ts` computes\nthe `min` over these backgrounds automatically.\n\n## 4. Verification workflow\n\n1. **Audit (primary, both schemes):**\n   ```sh\n   pnpm contrast:audit          # per-scheme table: pair, resolved colors, ratio, PASS\u002FFAIL\n   pnpm contrast:audit --html   # self-contained visual preview (gitignored out dir)\n   ```\n\n   The audit tool derives every color via the package resolvers and mirrors the real\n   `content.css` construction (12% srgb mix), so its ratios match the DOM. Open the\n   `--html` preview to eyeball tinted admonitions, links, muted text, chat bubbles,\n   selection, `\u003Cmark>`, and mermaid samples with their computed ratios.\n\n   **Current state:** both `Default Light` and `Default Dark` pass all 25 pairs\n   (`pnpm contrast:audit` → `25\u002F25 pairs pass` for each, 50 checks total, zero allowlist\n   entries).\n2. **Unit guard:**\n   ```sh\n   pnpm test:unit   # runs src\u002Fconfig\u002F__tests__\u002Fcontrast.test.ts (full matrix)\n   ```\n\n   Must be green with empty allowlists. A stale allowlist key (never consulted) fails the\n   integrity test — remove keys as you fix their schemes.\n3. **Live computed check (`\u002Fverify-ui`-style):** before verifying colors on the running\n   doc, **clear persisted zdtp state** or it overrides scheme values and you'll verify the\n   wrong colors. In devtools console:\n\n   ```js\n   Object.keys(localStorage).filter(k => k.startsWith('zudo-doc-tweak')).forEach(k => localStorage.removeItem(k)); location.reload();\n   ```\n\n   (Clears `zudo-doc-tweak-state-v3` \u002F `-v2` \u002F v1 — the persisted tweak envelope.) Then read\n   computed `color` \u002F `background-color` on real elements (a link, blockquote, an admonition\n   title, `\u003Cmark>`). Note: worktree agents do **not** run dev servers\u002Fbrowsers — this step\n   is for manual\u002Flive confirm sweeps, not batch tweak edits.\n\n## 5. New-scheme checklist\n\nBefore adding a new entry to `colorSchemes` in\n`packages\u002Fzudo-doc\u002Fsrc\u002Fcolor-schemes-defaults\u002Findex.ts`, it must:\n\n- [ ] Define its own `ramps` (or explicitly reuse an existing `Ramps` object, as Default\n      Light\u002FDark do) and a `map` covering the 4 base roles + all 23 semantic roles — spread\n      `SEMANTIC_RAMP_DEFAULTS` and override only what needs to differ (see the Color\n      reference doc's \"Adding a Custom Color Scheme\" section).\n- [ ] Pass **every Tier-1 pair at ≥ 4.5** and **every Tier-2 pair at its floor** (§1) via\n      `pnpm contrast:audit` — zero new allowlist entries.\n- [ ] Use a per-mode **literal OKLCH override** (not a ramp ref) for any role that can't\n      clear AA at any of its ramp's existing stops (§1.1) — document why with the §2.4\n      comment format.\n- [ ] Keep OKLCH hue fixed on all tweaks; reduce chroma only where noted for gamut.\n- [ ] No template-mirror step needed anymore — since the minimal-scaffold cutover (epic\n      #2651), both this showcase and every `create-zudo-doc` project source `colorSchemes`\n      from this SAME package file unless they pass their own `colorSchemes` override to\n      `zudoDoc({...})`, so a package-side edit here reaches both automatically. If a project\n      DOES carry its own `colorSchemes` override (an escape-hatch field on `ZudoDocConfig`,\n      not a file), that project owns its own contrast audit independently.\n- [ ] NOT touch e2e fixtures.\n\n## 6. Documented exceptions & scope\n\n- **Syntax highlighting is out of scope.** `--shiki-*` code-token colors (base16-ocean,\n  configured in `zfb.config.ts`) are scheme-independent and set by syntect, not by these\n  schemes. `codeFg`\u002F`codeBg` governs inline code and code-block **base text** only — do not\n  try to reach syntax token colors from here.\n- **There is no raw-ramp render path to exempt.** The pre-restructure `important`\n  admonition read a raw palette slot directly (`--color-p5`) and was a documented exception\n  here; it now reads semantic `--color-accent` like every other role (§2.3), so this\n  exception no longer applies to anything in the product.\n- **Downstream persisted zdtp tweaks keep old colors.** Users who saved custom colors carry\n  a persisted `zudo-doc-tweak-*` envelope that overrides scheme values; they won't see these\n  fixes until they reset. Acceptable and out of scope.\n- **`shikiTheme` is vestigial** — no CSS consumes it; excluded from the matrix. `cursor` is\n  not vestigial-but-present — it was deleted outright in the ramp restructure (no\n  `--zd-cursor` exists to audit).\n- **Theme packs are a different surface — see `pnpm theme-a11y:audit` instead.** This\n  skill and `pnpm contrast:audit` cover only the 2 built-in **color schemes** (Default\n  Light\u002FDark), checked statically via the package resolvers — no browser, no theme-pack\n  CSS. For rendered, per-**theme-pack** contrast (the CSS a pack layers on top of a\n  scheme — e.g. an active-nav chip losing contrast under one pack's stylesheet, invisible\n  to a static check), use `pnpm theme-a11y:audit` (`scripts\u002Ftheme-a11y-audit.ts`) — a\n  real-browser audit wired into the `theme-a11y` T3 nightly exam job. See TESTING.md's\n  \"Theme A11y Audit\" section (#3036).\n\n## 7. Theme-pack nav `:hover` guard (pack-author contract, epic #4032)\n\nThis section is the theme-pack counterpart to §6's \"different surface\" pointer — the\nconcrete rule a pack author must follow, not just the tool that catches a violation.\n\n**Rule.** A theme pack (`packages\u002Fzudo-doc\u002Fsrc\u002Ftheme-packs\u002F*\u002Fpack.css`) that authors a\nnav `:hover` rule setting `color` **or** `background` MUST exclude\n`[aria-current=\"page\"]`, on the **anchor**, in **both** header DOM shapes. Before epic\n#4032 this existed only as a code comment inside one pack (`blueprint\u002Fpack.css`, \"the\nscandi\u002Fwashi guard pattern\"). The survey that drove the epic found 14 packs violating\nit and four packs guarding with the wrong attribute.\n\n**Why.** The active nav item carries the base inverted fill —\n`NAV_TOP_ACTIVE = [\"bg-fg\", \"text-bg\"]` (`packages\u002Fzudo-doc\u002Fsrc\u002Fheader\u002Fnav-class-tokens.ts:28`).\nAn unlayered pack selector like `html[data-theme-pack=\"x\"] [data-nav-item]:hover` sits\nat specificity `(0,3,1)`, which beats the base `@layer utilities` `text-bg` rule at\n`(0,1,0)`. An unguarded hover repaints the active pill's ink or background and\ncollapses the contrast — measured as low as **1.00:1** (identical fg\u002Fbg, text\nliterally invisible).\n\n**Reference pattern** —\n`packages\u002Fzudo-doc\u002Fsrc\u002Ftheme-packs\u002Fphosphor\u002Fpack.css:241-251` guards both shapes:\n`a[data-nav-item]:not([aria-current=\"page\"]):hover` and\n`[data-nav-item-dropdown] > a:not([aria-current=\"page\"]):hover`. Guarding only the\nwrapper `div` is ineffective — the colors live on the child `\u003Ca>`.\n\n**The `data-nav-active` trap.** `:not([data-nav-active])` is not the same guard:\n\n- It is **never emitted on header nav items** — `header.tsx:487` and `:550` set only\n  `aria-current`. `:not([data-nav-active])` on the header is a no-op.\n- It is **incomplete on the sidebar** — an active root\u002Fcategory node gets\n  `aria-current=\"page\"` at `sidebar-tree-island\u002Findex.tsx:766` WITHOUT\n  `data-nav-active` (`:767` sets it only when `!isRoot && isActive`). observatory,\n  washi, riso, and sakura shipped exactly this guard and still failed.\n\nUse `:not([aria-current=\"page\"])`, and only that.\n\n**Audit-gated exception.** A rule that sets `color` **and** `background` together\nreplaces the pill wholesale rather than tinting it, and several packs (sakura, scandi,\nbauhaus, drift's header rule) do this deliberately, unguarded, and measure AA-clean.\nThe guard is optional **only while `pnpm theme-a11y:audit` proves the state green** —\nthe audit is the arbiter, not the shape of the rule.\n\n**A second trap the static formula in §4 can't see: descendant color.** A pack's\n`color` on the anchor reaches only what inherits from it. Card-style links can set\ntheir own ink on a `group-hover:text-fg` \u002F `group-hover:text-accent` utility on a\ndescendant `\u003Cspan>`, which wins over the anchor's inherited color.\n`brutalist\u002Fpack.css:389-414` is the concrete case — the prose-link hover rule\n(`:400-407`) needed a companion `… a:hover *` rule (`:408-414`) to actually reach the\nnote-tray card spans sharing its selector. This is exactly why `theme-a11y:audit`\nrenders real pages and reads computed styles, unlike `contrast:audit` above.\n",{"name":5,"description":7},"main","2b67af76ba78c1da6117a21efb72878fedcdc151",".claude\u002Fskills\u002Fcolor-scheme-a11y",0,"https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc","https:\u002F\u002Fgithub.com\u002Fzudolab","2026-11-14 11:23:40",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add zudolab\u002Fzudo-doc --skill color-scheme-a11y",{"tool":65,"command":66},"bunx","bunx skills add zudolab\u002Fzudo-doc --skill color-scheme-a11y",{"tool":68,"command":69},"pnpm","pnpm dlx skills add zudolab\u002Fzudo-doc --skill color-scheme-a11y","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fcolor-scheme-a11y\u002FSKILL.md",true,[],[74,97,124,140,166,178],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":47},"01M6D2GZKKY2E651Q297NEZEGV","zudo-doc-writing","Doc-writing and navigation-structure guide for this zudo-doc project. Consult BEFORE creating pages, adding categories, designing header navigation, or writing\u002Fediting mdx content under src\u002Fcontent\u002F. Covers: reading the AUTHORING.md editorial policy and its four placement questions, when to run a structure review, plan-the-nav-tree-first workflow, tree vs note-tray categories, the recommended 3-level hierarchy (header → sidebar → nested), filesystem navigation as the default, linked versus heading-only category rows, category index pages, sidebar_position discipline, frontmatter schema, no-h1 rule, relative .mdx links, and admonition syntax. Triggered by 'write docs', 'add a page', 'create a page', 'add category', 'structure navigation', 'nav design', 'zudo-doc-writing'.","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002Fpackages\u002Fcreate-zudo-doc\u002Ftemplates\u002Ffeatures\u002FclaudeSkillsWriting\u002Ffiles\u002F.claude\u002Fskills\u002Fzudo-doc-writing\u002FSKILL.md",[],[81,82,29,83,43,84,85,39,86,87,88,89,90,91,92,93,94,95,96,33],"writing","zudo doc writing","project","design","only","consult","create","structure","plan","discipline","categories","when","review","hierarchy","filesystem navigation","run",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":47},"01M6D2GWFZ81SCB168Z4P4NYYN","zudo-doc-version-bump","Bump package version, update changelog and versioned docs snapshot (if those features are enabled), commit, tag, and create a GitHub release. Use when: (1) User says 'version bump', 'bump version', 'release', or 'zudo-doc-version-bump', (2) User wants to create a new release of this project.","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002Fpackages\u002Fcreate-zudo-doc\u002Ftemplates\u002Ffeatures\u002FclaudeSkills\u002Ffiles\u002F.claude\u002Fskills\u002Fzudo-doc-version-bump\u002FSKILL.md",[],[104,105,106,107,29,83,108,109,110,111,112,87,113,114,115,116,117,118,119,120,121,27,92,122,123],"bump","zudo doc version bump","version","version bump","update changelog","package","use","patch","commit","changelog","github","update","release","snapshot","bump version","docs","user","proposal","features","github release",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":47},"01M6D2GRJ1MKMMEACKDFSAKF20","zudo-doc-translate","Translate zudo-doc documentation between the locales configured in this project, with Japanese conventions applied only to the `ja` locale.","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002Fpackages\u002Fcreate-zudo-doc\u002Ftemplates\u002Ffeatures\u002FclaudeSkills\u002Ffiles\u002F.claude\u002Fskills\u002Fzudo-doc-translate\u002FSKILL.md",[],[131,132,29,133,134,135,83,85,136,119,137,138,139],"translate","zudo doc translate","documentation","i18n","japanese","conventions","translate docs","with","locale",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":47},"01M6D2GMXQGVKJZTA35Q9AZN7V","zudo-doc-design-system","Project-specific CSS and component rules for zudo-doc. Must be consulted before writing or editing CSS, zudo-wind utilities, color tokens, or component markup in this project. Covers: component-first strategy, design token system, three-tier color architecture, and palette index convention. Triggered by 'design system', 'zudo-doc-design-system', 'zudo-doc-css-wisdom' (old name).","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002Fpackages\u002Fcreate-zudo-doc\u002Ftemplates\u002Ffeatures\u002FclaudeSkills\u002Ffiles\u002F.claude\u002Fskills\u002Fzudo-doc-design-system\u002FSKILL.md",[],[147,148,84,29,149,150,151,83,44,152,153,81,154,40,155,156,157,158,159,160,161,162,163,164,19,165],"zudo doc design system","system","design system","css","three","tokens","strategy","wisdom","architecture","component","first","token","design-system","index","design token","wind","palette","Utilities","for",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":47},"01M6D2GJYJQRZTHVY1CN884E96","localized-shell","Fixture skill for localized generated resource routes.","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002Fe2e\u002Ffixtures\u002Fi18n\u002Fsrc\u002Fcontent\u002Fresources\u002F.claude\u002Fskills\u002Flocalized-shell\u002FSKILL.md",[],[173,174,175,176,177,165],"localized shell","shell","fixture","generated","fixture skill",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":47},"01M6D2GF8BK70Y7TE3B7NCX87H","zudo-doc-writing-rules","Doc-writing rules for zudo-doc content (mdx files under src\u002Fcontent\u002Fdocs\u002F and src\u002Fcontent\u002Fdocs-ja\u002F). Consult before writing or editing doc content. Covers: no h1 in content, sidebar_position is mandatory, kebab-case file names, bilingual rule, linking conventions, and admonition syntax. Triggered by 'writing rules', 'zudo-doc-writing-rules', 'doc rule', 'mdx rule', 'write a doc', 'create a page'.","https:\u002F\u002Fgithub.com\u002Fzudolab\u002Fzudo-doc\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fzudo-doc-writing-rules\u002FSKILL.md",[],[185,29,81,40,82,186,87,187,44,33,188,189,136,190,191,86,165,192,193,194],"zudo doc writing rules","writing rules","page","write","syntax","files","file","true","case","linking"]