[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D29GV93KXR9GZMGWKE4VR2":3,"skill-same:01M6D29GV93KXR9GZMGWKE4VR2":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":49,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6D29GV93KXR9GZMGWKE4VR2","ui-page-docs",null,"How to build documentation and long articles: the three-column layout with a navigation tree, text at 65 to 75ch and an on-this-page list, search with a keyboard shortcut, versions, code blocks with copy buttons and tabs, callouts, API reference pages, heading anchors, edit and last-updated links, the phone drawer, both themes, and the four kinds of docs. Read before building or reworking a docs site, a docs page or an article.","enowdev\u002Fenowxcli","enowdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179420349?v=4","01M6D1MVX2KC0X3Z9NESE7P22K","Enow Dev.","01M6D1MW1FMZGBDKWAJY4GQX81",67,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-page-docs\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ui page docs","ui","page","docs","before building","pages","article","layout","three","phone","list","edit","read","docs site","text","how","api","search","code","documentation","2026-11-10 10:12:30",false,"---\nname: ui-page-docs\ndescription: \"How to build documentation and long articles: the three-column layout with a navigation tree, text at 65 to 75ch and an on-this-page list, search with a keyboard shortcut, versions, code blocks with copy buttons and tabs, callouts, API reference pages, heading anchors, edit and last-updated links, the phone drawer, both themes, and the four kinds of docs. Read before building or reworking a docs site, a docs page or an article.\"\n---\n\n# Documentation or article\n\nA generated docs site is a landing page that lost its way: a gradient hero\non the docs home, a flat alphabetical sidebar, text across a wide screen, a\nsearch box that searches nothing, code blocks that copy the `$` with the\ncommand, a callout on every paragraph, a dark code theme glaring on a light\npage, pages half tutorial, half reference. Readers arrive from a search or\nmid-task, want one answer and leave; this skill is the layout that serves them.\n\nOne kind of page. The measures are in `ui-layout`, its parts (header,\nsearch, tabs, drawers, breadcrumbs, back to top) in their `ui-part-*`\nskills, what to write and how to split it in the `docs` skill.\n\n## 1. Four kinds of page\n\nEach page is one kind (the Diátaxis split, `docs`), and the kind sets its\nshape. A page that mixes them serves nobody.\n\n| Kind | The reader asks | Its shape |\n|---|---|---|\n| Tutorial | \"Teach me\" | One path, numbered steps, each ending in a visible result |\n| How-to guide | \"How do I rotate a key?\" | Title as the task, prerequisites, steps, variations |\n| Reference | \"What does this option take?\" | Tables and signatures, the same layout for every entry |\n| Explanation | \"Why does it work like this?\" | Prose and diagrams, no steps |\n\nThe navigation groups pages by kind, or by topic with the kinds inside.\nThe docs home routes by task: one line on what the product is, Install and\nQuick start first, each section with one line, no marketing.\n\n## 2. The skeleton\n\n```\n┌─────────────────────────────────────────────────────────────────────────┐\n│ ◉ Docs   Guides  Reference  API  Changelog   [⌕ Search docs  ⌘K]  v3▾ ◐ │ sticky\n├───────────────┬──────────────────────────────────────────┬──────────────┤\n│ Get started   │ Guides \u002F Deploy                          │ On this page │\n│   Install     │ Deploy to a server                       │ Requirements │\n│   Quick start │ One line on what this page gets you to.  │ ▌Build       │\n│ Guides        │                                          │ Configure    │\n│ ▌ Deploy      │ Requirements                           # │ Run          │\n│   Environment │ Text at 65 to 75ch, 16 to 18px.          │              │\n│ Reference     │ ┌ npm │ pnpm │ yarn ─────────── Copy ┐   │ Edit page    │\n│   CLI         │ │ npm install product-cli            │   │              │\n│   Config      │ └────────────────────────────────────┘   │              │\n│               │ ▍Note: one sentence, where it matters.   │              │\n│               │ ← Install                  Environment → │              │\n│               │ Edit this page · Updated 12 Sep 2026     │              │\n└───────────────┴──────────────────────────────────────────┴──────────────┘\n```\n\n- Header 56 to 64px: the name to the docs home, the sections, search, the\n  version switcher (only with versions), the theme toggle, the repository.\n- Three columns on wide screens: navigation 240 to 280px on the left, the\n  text at 65ch (65 to 75) in the middle, the \"on this page\" list (200 to\n  240px) on the right, hidden below 1200px. Code blocks full width of the\n  text column.\n- The header sticks, and both side columns stick under it (`position:\n  sticky` with `top` set to the header's height), each scrolling on its own\n  when it is taller than the screen; `scroll-padding-top` keeps a heading\n  reached by its anchor clear of the header.\n\n```css\nhtml { scroll-padding-top: calc(var(--header-h) + 16px); }\n.docs { display: grid; gap: 48px; padding-inline: 24px;\n  grid-template-columns: 260px minmax(0, 1fr) 220px; }\n.docs-nav, .docs-toc {\n  position: sticky; top: var(--header-h);\n  align-self: start; \u002F* a stretched grid item has no room to stick *\u002F\n  max-height: calc(100dvh - var(--header-h));\n  overflow-y: auto; overscroll-behavior: contain;\n}\n.docs-article { max-width: 70ch; }\n@media (max-width: 1199px) {\n  .docs { grid-template-columns: 240px minmax(0, 1fr); }\n  .docs-toc { display: none; } \u002F* a collapsible list in the article instead *\u002F\n}\n@media (max-width: 1023px) {\n  .docs { grid-template-columns: minmax(0, 1fr); }\n  .docs-nav { display: none; } \u002F* the same tree, as a drawer *\u002F\n}\n```\n\n## 3. The navigation tree\n\n- Groups under short headings (not links), two levels, three at most, in\n  the reader's order (install, then the first task), not the alphabet;\n  labels are the pages' titles, with no icon on every item. Several areas:\n  the areas in the header, the sidebar holding the current one's tree.\n- The current page marked by weight and a bar, with `aria-current=\"page\"`;\n  its group open; collapsible groups are buttons with `aria-expanded`. On\n  load the current item scrolls into view inside the nav\n  (`scrollIntoView({ block: \"nearest\" })`), not the page.\n\n## 4. The page\n\n- Breadcrumbs, the `h1` (the nav label's words), then one line on what the\n  page gets the reader to (it doubles as the meta description). Text 16 to\n  18px at a line height of 1.6 to 1.7; ordered lists for steps, tables for\n  options.\n- `h2` and `h3` (an `h4` rarely), each with a stable `id` and an anchor\n  link shown on hover and focus (always, on touch), named \"Link to this\n  section\". Renaming a heading breaks links to it: keep the old id on an\n  empty element when the page is widely linked.\n- \"On this page\" lists the `h2` and `h3` and marks the section being read\n  (one IntersectionObserver, `aria-current=\"true\"`).\n- At the end: previous and next as two blocks (the direction and the\n  title), \"Edit this page\" to the source file in the repository, \"Updated\n  12 Sep 2026\" from the file's last commit at build time in a `\u003Ctime>`, and\n  \"Was this helpful?\" only when someone reads the answers.\n\n## 5. Search\n\n- In the header on every page: a button drawn as a field (\"Search docs\"\n  and the shortcut, `⌘K` on Apple, `Ctrl K` elsewhere) opening a dialog\n  with the combobox pattern: arrows move, Enter opens, Escape closes and\n  returns focus. `Ctrl+K` or `Cmd+K` open it, and `\u002F` when focus is not in\n  a text field; never take a key the reader is typing into an input.\n- Results: page title, heading and a snippet with the match marked, linking\n  to the anchor; when empty, the query and what to try. With versions,\n  search the reader's version only.\n- **Pagefind** for static sites: indexes the built HTML (`npx pagefind\n  --site dist`), loads its index in chunks, needs no server, is built into\n  Starlight; `data-pagefind-body` on the content, `data-pagefind-ignore` on\n  repeated parts. **Algolia DocSearch**: free for public technical docs, a\n  crawler plus `@docsearch\u002Fjs`, its search-only key public by design.\n\n## 6. Code blocks\n\n- Highlighted at build time (Shiki, or Expressive Code in Starlight), a\n  theme per mode (`github-light`, `github-dark`) switching with the page\n  (`ui-themes`); comments at 4.5:1, which many themes miss.\n- The language or the file name as the block's title; a Copy button at the\n  top right, visible on hover, on focus and always on touch, turning to\n  \"Copied\" through `aria-live=\"polite\"`.\n- The copied text is what runs: no `$` prompt (leave it out, or draw it\n  with CSS), no line numbers, one command per line, output in its own block\n  labelled Output.\n- Tabs per package manager (npm, pnpm, yarn, bun) or language (curl,\n  TypeScript, Python), synced across the page and remembered in\n  `localStorage` (`ui-part-tabs`).\n- Highlight the lines the text discusses (`{2-4}`, added and removed);\n  line numbers only when the text cites them.\n- Long lines scroll inside the block (`overflow-x: auto`, and `tabindex=\"0\"`\n  with a name on a scrolling `pre`). Examples run as written: real values,\n  or placeholders that say so (`\u003Cyour-api-key>`), never a real secret.\n\n## 7. Callouts\n\n- Note, tip, warning (danger for what cannot be undone), one or two per\n  screen at most: a page of boxes has no emphasis. A warning that belongs\n  to a step goes in the step.\n- The kind in words (\"Warning\") first, a left rule or tinted surface from\n  the status tokens, an icon optional; a `div` with `role=\"note\"` rather\n  than an `aside` per callout, which some screen readers list as landmarks.\n\n## 8. API reference\n\n```\n│ POST \u002Fv1\u002Forders                        │ ┌ curl │ TypeScript │ Python ┐ │\n│ Creates an order. Scope: orders:write  │ │ curl -X POST ...\u002Fv1\u002Forders │ │\n│ Body                                   │ └────────────────────────────┘ │\n│ items      array    required  ...      │ ┌ 201 │ 400 │ 409 ───────────┐ │\n│ note       string   optional  ...      │ │ { \"id\": \"ord_...\", ... }   │ │\n```\n\n- Parameters on the left; examples on the right, sticky on wide screens,\n  after the parameters below 1200px. The method as text (not colour alone),\n  the path in monospace, one line on what it does, auth and scopes.\n- Parameters grouped by where they go (path, query, header, body): name,\n  type, required in words, default, allowed values; nested objects expand.\n- Examples in curl first, then the languages users use, with realistic\n  values; every response status with its body; errors, pagination and rate\n  limits explained once and linked.\n- Generated from the OpenAPI document (Scalar, Redoc, Stoplight Elements)\n  so it cannot drift, with written guides around it (`docs`).\n\n## 9. Versions\n\nOnly when readers run old versions (libraries, self-hosted software); a\nhosted product with one live version has no switcher. The switcher sits in\nthe header or atop the nav and keeps the reader on the same page when it\nexists. The latest lives at `\u002Fdocs\u002F...`, older ones at `\u002Fdocs\u002Fv2\u002F...` with\na banner (\"These docs are for v2. The current version is v3.\") linking to\nthe same page; old versions are `noindex` or canonical to the latest.\n\n## 10. On a phone\n\n- Under 1024px the tree is a drawer from the left behind a labelled \"Menu\"\n  button in the sticky header, opening at the current page and closing when\n  a link is chosen (`ui-part-drawers`). Under 1200px \"On this page\" is a\n  collapsed `details` under the title; search is a named icon button.\n- Text 16 to 17px, side padding 16 to 20px; code and tables scroll in their\n  own containers; tabs scroll or become a select; previous and next stack\n  full width; a back-to-top control (`ui-part-back-to-top`).\n\n## 11. Themes, speed and search engines\n\n- Both themes, following the system, with a toggle: code, callouts,\n  diagrams (drawn from tokens) and screenshots checked in each\n  (`ui-themes`). Static HTML that reads without JavaScript; search, tab\n  syncing and copy are enhancements; the index loads when search opens.\n- Titles \"Page title · Product docs\" within 60 characters, the one-line\n  summary as the description, canonical URLs, a sitemap, `BreadcrumbList`\n  data, readable paths (`\u002Fdocs\u002Fguides\u002Fdeploy`), a 301 for every page that\n  moves (`frontend-seo`). Starlight gives most of this (`ui-stack-astro`).\n\n## 12. An article\n\nNo tree: one column of 60 to 75ch, body 17 to 20px at a line height of\n1.6, the title large; a byline with the author and the published and\nupdated dates; a sticky table of contents on the right for long pieces;\nfigures wider than the text, with captions; footnotes; related pieces; a\nfeed. A long article has a back-to-top control (`ui-part-back-to-top`).\n\n## Check it\n\n- `preview` at 360, 768 and 1440px: nothing overflows from code or tables,\n  the drawer works, the right column shows only from 1200px, the header and\n  columns stick, long pages have a way back to the top.\n- Follow three anchors (each lands below the header); search a term from a\n  deep page; press `\u002F` in a text field and see it typed; paste a copied\n  block into a terminal and see it run; switch the theme.\n- Keyboard: skip link, tree, tabs with arrow keys, search dialog, copy.\n- View the source (the text is in the HTML); run a link checker (lychee, or\n  the generator's own) and `ui_check`.\n\n## Avoid\n\nA hero, testimonials or pop-ups on docs pages; a flat alphabetical sidebar;\ntext across the full width; a search that finds nothing; `$` and line\nnumbers in copied code; highlighting that flashes in after load; one dark\ncode theme for both modes; a callout on every paragraph; a tutorial that\nturns into a reference table halfway; a version switcher with one version;\nold versions indexed; screenshots older than the interface; a wrapper with\n`overflow: hidden` that stops the columns sticking.\n","# Documentation or article\n\nA generated docs site is a landing page that lost its way: a gradient hero\non the docs home, a flat alphabetical sidebar, text across a wide screen, a\nsearch box that searches nothing, code blocks that copy the `$` with the\ncommand, a callout on every paragraph, a dark code theme glaring on a light\npage, pages half tutorial, half reference. Readers arrive from a search or\nmid-task, want one answer and leave; this skill is the layout that serves them.\n\nOne kind of page. The measures are in `ui-layout`, its parts (header,\nsearch, tabs, drawers, breadcrumbs, back to top) in their `ui-part-*`\nskills, what to write and how to split it in the `docs` skill.\n\n## 1. Four kinds of page\n\nEach page is one kind (the Diátaxis split, `docs`), and the kind sets its\nshape. A page that mixes them serves nobody.\n\n| Kind | The reader asks | Its shape |\n|---|---|---|\n| Tutorial | \"Teach me\" | One path, numbered steps, each ending in a visible result |\n| How-to guide | \"How do I rotate a key?\" | Title as the task, prerequisites, steps, variations |\n| Reference | \"What does this option take?\" | Tables and signatures, the same layout for every entry |\n| Explanation | \"Why does it work like this?\" | Prose and diagrams, no steps |\n\nThe navigation groups pages by kind, or by topic with the kinds inside.\nThe docs home routes by task: one line on what the product is, Install and\nQuick start first, each section with one line, no marketing.\n\n## 2. The skeleton\n\n```\n┌─────────────────────────────────────────────────────────────────────────┐\n│ ◉ Docs   Guides  Reference  API  Changelog   [⌕ Search docs  ⌘K]  v3▾ ◐ │ sticky\n├───────────────┬──────────────────────────────────────────┬──────────────┤\n│ Get started   │ Guides \u002F Deploy                          │ On this page │\n│   Install     │ Deploy to a server                       │ Requirements │\n│   Quick start │ One line on what this page gets you to.  │ ▌Build       │\n│ Guides        │                                          │ Configure    │\n│ ▌ Deploy      │ Requirements                           # │ Run          │\n│   Environment │ Text at 65 to 75ch, 16 to 18px.          │              │\n│ Reference     │ ┌ npm │ pnpm │ yarn ─────────── Copy ┐   │ Edit page    │\n│   CLI         │ │ npm install product-cli            │   │              │\n│   Config      │ └────────────────────────────────────┘   │              │\n│               │ ▍Note: one sentence, where it matters.   │              │\n│               │ ← Install                  Environment → │              │\n│               │ Edit this page · Updated 12 Sep 2026     │              │\n└───────────────┴──────────────────────────────────────────┴──────────────┘\n```\n\n- Header 56 to 64px: the name to the docs home, the sections, search, the\n  version switcher (only with versions), the theme toggle, the repository.\n- Three columns on wide screens: navigation 240 to 280px on the left, the\n  text at 65ch (65 to 75) in the middle, the \"on this page\" list (200 to\n  240px) on the right, hidden below 1200px. Code blocks full width of the\n  text column.\n- The header sticks, and both side columns stick under it (`position:\n  sticky` with `top` set to the header's height), each scrolling on its own\n  when it is taller than the screen; `scroll-padding-top` keeps a heading\n  reached by its anchor clear of the header.\n\n```css\nhtml { scroll-padding-top: calc(var(--header-h) + 16px); }\n.docs { display: grid; gap: 48px; padding-inline: 24px;\n  grid-template-columns: 260px minmax(0, 1fr) 220px; }\n.docs-nav, .docs-toc {\n  position: sticky; top: var(--header-h);\n  align-self: start; \u002F* a stretched grid item has no room to stick *\u002F\n  max-height: calc(100dvh - var(--header-h));\n  overflow-y: auto; overscroll-behavior: contain;\n}\n.docs-article { max-width: 70ch; }\n@media (max-width: 1199px) {\n  .docs { grid-template-columns: 240px minmax(0, 1fr); }\n  .docs-toc { display: none; } \u002F* a collapsible list in the article instead *\u002F\n}\n@media (max-width: 1023px) {\n  .docs { grid-template-columns: minmax(0, 1fr); }\n  .docs-nav { display: none; } \u002F* the same tree, as a drawer *\u002F\n}\n```\n\n## 3. The navigation tree\n\n- Groups under short headings (not links), two levels, three at most, in\n  the reader's order (install, then the first task), not the alphabet;\n  labels are the pages' titles, with no icon on every item. Several areas:\n  the areas in the header, the sidebar holding the current one's tree.\n- The current page marked by weight and a bar, with `aria-current=\"page\"`;\n  its group open; collapsible groups are buttons with `aria-expanded`. On\n  load the current item scrolls into view inside the nav\n  (`scrollIntoView({ block: \"nearest\" })`), not the page.\n\n## 4. The page\n\n- Breadcrumbs, the `h1` (the nav label's words), then one line on what the\n  page gets the reader to (it doubles as the meta description). Text 16 to\n  18px at a line height of 1.6 to 1.7; ordered lists for steps, tables for\n  options.\n- `h2` and `h3` (an `h4` rarely), each with a stable `id` and an anchor\n  link shown on hover and focus (always, on touch), named \"Link to this\n  section\". Renaming a heading breaks links to it: keep the old id on an\n  empty element when the page is widely linked.\n- \"On this page\" lists the `h2` and `h3` and marks the section being read\n  (one IntersectionObserver, `aria-current=\"true\"`).\n- At the end: previous and next as two blocks (the direction and the\n  title), \"Edit this page\" to the source file in the repository, \"Updated\n  12 Sep 2026\" from the file's last commit at build time in a `\u003Ctime>`, and\n  \"Was this helpful?\" only when someone reads the answers.\n\n## 5. Search\n\n- In the header on every page: a button drawn as a field (\"Search docs\"\n  and the shortcut, `⌘K` on Apple, `Ctrl K` elsewhere) opening a dialog\n  with the combobox pattern: arrows move, Enter opens, Escape closes and\n  returns focus. `Ctrl+K` or `Cmd+K` open it, and `\u002F` when focus is not in\n  a text field; never take a key the reader is typing into an input.\n- Results: page title, heading and a snippet with the match marked, linking\n  to the anchor; when empty, the query and what to try. With versions,\n  search the reader's version only.\n- **Pagefind** for static sites: indexes the built HTML (`npx pagefind\n  --site dist`), loads its index in chunks, needs no server, is built into\n  Starlight; `data-pagefind-body` on the content, `data-pagefind-ignore` on\n  repeated parts. **Algolia DocSearch**: free for public technical docs, a\n  crawler plus `@docsearch\u002Fjs`, its search-only key public by design.\n\n## 6. Code blocks\n\n- Highlighted at build time (Shiki, or Expressive Code in Starlight), a\n  theme per mode (`github-light`, `github-dark`) switching with the page\n  (`ui-themes`); comments at 4.5:1, which many themes miss.\n- The language or the file name as the block's title; a Copy button at the\n  top right, visible on hover, on focus and always on touch, turning to\n  \"Copied\" through `aria-live=\"polite\"`.\n- The copied text is what runs: no `$` prompt (leave it out, or draw it\n  with CSS), no line numbers, one command per line, output in its own block\n  labelled Output.\n- Tabs per package manager (npm, pnpm, yarn, bun) or language (curl,\n  TypeScript, Python), synced across the page and remembered in\n  `localStorage` (`ui-part-tabs`).\n- Highlight the lines the text discusses (`{2-4}`, added and removed);\n  line numbers only when the text cites them.\n- Long lines scroll inside the block (`overflow-x: auto`, and `tabindex=\"0\"`\n  with a name on a scrolling `pre`). Examples run as written: real values,\n  or placeholders that say so (`\u003Cyour-api-key>`), never a real secret.\n\n## 7. Callouts\n\n- Note, tip, warning (danger for what cannot be undone), one or two per\n  screen at most: a page of boxes has no emphasis. A warning that belongs\n  to a step goes in the step.\n- The kind in words (\"Warning\") first, a left rule or tinted surface from\n  the status tokens, an icon optional; a `div` with `role=\"note\"` rather\n  than an `aside` per callout, which some screen readers list as landmarks.\n\n## 8. API reference\n\n```\n│ POST \u002Fv1\u002Forders                        │ ┌ curl │ TypeScript │ Python ┐ │\n│ Creates an order. Scope: orders:write  │ │ curl -X POST ...\u002Fv1\u002Forders │ │\n│ Body                                   │ └────────────────────────────┘ │\n│ items      array    required  ...      │ ┌ 201 │ 400 │ 409 ───────────┐ │\n│ note       string   optional  ...      │ │ { \"id\": \"ord_...\", ... }   │ │\n```\n\n- Parameters on the left; examples on the right, sticky on wide screens,\n  after the parameters below 1200px. The method as text (not colour alone),\n  the path in monospace, one line on what it does, auth and scopes.\n- Parameters grouped by where they go (path, query, header, body): name,\n  type, required in words, default, allowed values; nested objects expand.\n- Examples in curl first, then the languages users use, with realistic\n  values; every response status with its body; errors, pagination and rate\n  limits explained once and linked.\n- Generated from the OpenAPI document (Scalar, Redoc, Stoplight Elements)\n  so it cannot drift, with written guides around it (`docs`).\n\n## 9. Versions\n\nOnly when readers run old versions (libraries, self-hosted software); a\nhosted product with one live version has no switcher. The switcher sits in\nthe header or atop the nav and keeps the reader on the same page when it\nexists. The latest lives at `\u002Fdocs\u002F...`, older ones at `\u002Fdocs\u002Fv2\u002F...` with\na banner (\"These docs are for v2. The current version is v3.\") linking to\nthe same page; old versions are `noindex` or canonical to the latest.\n\n## 10. On a phone\n\n- Under 1024px the tree is a drawer from the left behind a labelled \"Menu\"\n  button in the sticky header, opening at the current page and closing when\n  a link is chosen (`ui-part-drawers`). Under 1200px \"On this page\" is a\n  collapsed `details` under the title; search is a named icon button.\n- Text 16 to 17px, side padding 16 to 20px; code and tables scroll in their\n  own containers; tabs scroll or become a select; previous and next stack\n  full width; a back-to-top control (`ui-part-back-to-top`).\n\n## 11. Themes, speed and search engines\n\n- Both themes, following the system, with a toggle: code, callouts,\n  diagrams (drawn from tokens) and screenshots checked in each\n  (`ui-themes`). Static HTML that reads without JavaScript; search, tab\n  syncing and copy are enhancements; the index loads when search opens.\n- Titles \"Page title · Product docs\" within 60 characters, the one-line\n  summary as the description, canonical URLs, a sitemap, `BreadcrumbList`\n  data, readable paths (`\u002Fdocs\u002Fguides\u002Fdeploy`), a 301 for every page that\n  moves (`frontend-seo`). Starlight gives most of this (`ui-stack-astro`).\n\n## 12. An article\n\nNo tree: one column of 60 to 75ch, body 17 to 20px at a line height of\n1.6, the title large; a byline with the author and the published and\nupdated dates; a sticky table of contents on the right for long pieces;\nfigures wider than the text, with captions; footnotes; related pieces; a\nfeed. A long article has a back-to-top control (`ui-part-back-to-top`).\n\n## Check it\n\n- `preview` at 360, 768 and 1440px: nothing overflows from code or tables,\n  the drawer works, the right column shows only from 1200px, the header and\n  columns stick, long pages have a way back to the top.\n- Follow three anchors (each lands below the header); search a term from a\n  deep page; press `\u002F` in a text field and see it typed; paste a copied\n  block into a terminal and see it run; switch the theme.\n- Keyboard: skip link, tree, tabs with arrow keys, search dialog, copy.\n- View the source (the text is in the HTML); run a link checker (lychee, or\n  the generator's own) and `ui_check`.\n\n## Avoid\n\nA hero, testimonials or pop-ups on docs pages; a flat alphabetical sidebar;\ntext across the full width; a search that finds nothing; `$` and line\nnumbers in copied code; highlighting that flashes in after load; one dark\ncode theme for both modes; a callout on every paragraph; a tutorial that\nturns into a reference table halfway; a version switcher with one version;\nold versions indexed; screenshots older than the interface; a wrapper with\n`overflow: hidden` that stops the columns sticking.\n",{"name":5,"description":7},"main","38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fui-page-docs",21,"https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli","https:\u002F\u002Fenowx.ai","https:\u002F\u002Fgithub.com\u002Fenowdev","Pretending to be a Developer","2026-10-06 02:05:35",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add enowdev\u002Fenowxcli --skill ui-page-docs",{"tool":59,"command":60},"bunx","bunx skills add enowdev\u002Fenowxcli --skill ui-page-docs",{"tool":62,"command":63},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill ui-page-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-page-docs\u002FSKILL.md",true,[],[68,79,93,103,123,139],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":39},"01M6D2HQYSQD9N7MTNDT4A7CBM","demo-skill","Project-scope demo skill for tests.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fworkspace\u002F.agents\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[75,76,77,78,31],"demo skill","demo","tests","project",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":39},"01M6D2HM0GCPM0TM2HPG9HHR2R","writing","Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fwriting\u002FSKILL.md",[],[81,33,86,87,88,89,31,21,90,91,38,92],"emails","empty","drop","document","voice","notifications","translate",{"skillNo":94,"name":20,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6D2HG07YS49NM196Q0R3AZ8","Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui\u002FSKILL.md",[],[20,99,100,101,102,21,26,31,23],"icons","components","SET","responsive",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":39},"01M6D2HB59HZHWG1RYZDV4SJ91","ui-themes","Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-themes\u002FSKILL.md",[],[20,110,111,112,113,114,115,116,117,31,23,118,21,37,119,120,99,121,122],"ui themes","switching","photos","tokens","drawing","focus","maps","Art","flash","Charts","content","screenshots","logo",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M6D2H5R5KRAE524C8QX0T7Q0","ui-structure","Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",[],[130,20,131,100,132,133,37,134,25,135,26,113,136,137,29,31,23,21,138,34],"structure","ui structure","pricing","dashboard","Blueprint","anatomy","styling","primitives","why",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":39},"01M6D2H0ZZBJG77MBGPZHA6MWD","ui-stack-vue","Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-vue\u002FSKILL.md",[],[20,146,147,148,149,24,150,151,26,78,152,153,31,154,155,156,157,158,159,160],"vue","stack","ui stack vue","forms","watch","runtime","transitions","fetch","pinia","nuxt","template","server","config","directory","testing"]