[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71JE3DWBVQV0EGKSJ1R8FE1":3,"skill-same:01M71JE3DWBVQV0EGKSJ1R8FE1":77},{"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":28,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":54,"commitSha":55,"skillDirectory":5,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M71JE3DWBVQV0EGKSJ1R8FE1","create-design-md",null,"Create or update a DESIGN.md from an existing product repository or public website. Use when asked to document an interface's design language, reconstruct its visual system, extract design tokens and guidance from current evidence, or give coding agents persistent UI context. Do not modify product source or promote accidental implementation patterns into design decisions.","caezium\u002Fskills","caezium","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113233555?v=4","01M71JB77ZPBAWEK009Y2W8BP7","Henry Zhang","01M71JB792NVXCWSYD27HQ0964",3,"MIT","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fcreate-design-md\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"design","create","design md","create design md","product","design language","visual","decisions","when","document","Existing","use","interface","extract design","tokens","system","modify","promote","evidence","do","2026-11-10 10:12:30",false,"---\nname: create-design-md\ndescription: Create or update a DESIGN.md from an existing product repository or public website. Use when asked to document an interface's design language, reconstruct its visual system, extract design tokens and guidance from current evidence, or give coding agents persistent UI context. Do not modify product source or promote accidental implementation patterns into design decisions.\n---\n\n# Create DESIGN.md\n\nCreate a `DESIGN.md` for one product or coherent website. Record the design language that governs it, not every value that happens to exist.\n\n## Boundaries\n\n- Modify only `DESIGN.md`. Do not change product source, dependencies, configuration, or generated files.\n- Use the DESIGN.md format contract below. Do not invent a competing schema.\n- Do not copy every discovered token or component into the document.\n- Do not convert repetition, local styling, or visual preference into product intent.\n\n## 1. Choose the mode\n\n### Repository mode\n\nUse when a local product repository is available. Create or update `DESIGN.md` at the root of the selected product.\n\nIf the repository contains multiple deployable products, select the one named by the user. If the request does not identify one and ownership is ambiguous, ask before writing.\n\nRepository evidence may establish normative values, token names, component ownership, and documented rationale.\n\n### URL mode\n\nUse when the user provides a public URL without its source repository. Create a reconstructed `DESIGN.md` draft in the current workspace.\n\nURL mode requires rendered browser access. Inspect the DOM, computed styles, and publicly loaded stylesheets at desktop and mobile widths. Screenshots may support interpretation but cannot establish exact values by themselves.\n\nInspect the supplied page and shared chrome. For a site-wide request, sample up to three same-origin pages that represent distinct templates.\n\nURL evidence may establish only observable visual patterns and computed values. It cannot establish internal token names, component ownership, undocumented rationale, or whether a pattern is intentionally canonical.\n\nIf rendered inspection is unavailable, ask for screenshots or source files. Do not create a DESIGN.md from copy, metadata, or HTML structure alone.\n\nChoose repository mode whenever source is available. A supplied URL may verify rendered presentation but does not replace repository evidence.\n\n## Shared evidence pipeline\n\nThe modes differ only in how they collect evidence. They must use the same record and output pipeline:\n\n```text\nrole → value → source → scope → recurrence → confidence\n```\n\n1. Collect evidence using the selected mode.\n2. Record the source, scope, and recurrence for each candidate.\n3. Normalize candidates into the DESIGN.md schema.\n4. Omit candidates that are uncertain, local without a contract, or not implementation-relevant.\n5. Validate frontmatter shape and export compatibility.\n6. Write Markdown only after the normalized frontmatter passes.\n\nNever let repository or URL evidence introduce a second token schema. The same flat token names, mapping-shaped typography, omission rules, and export gates apply to both modes.\n\nThe generated document is private until validation passes. Never return, display, or summarize a DESIGN.md draft before lint and export succeed. If validation reports an invalid shape or missing export category, rewrite the frontmatter and rerun; if the category cannot be repaired, remove it and report it as omitted.\n\n## 2. Trace the evidence\n\nIn repository mode, inspect in this order:\n\n1. Existing `DESIGN.md` and explicit repository guidance\n2. Tokens, themes, variables, and global styles\n3. Shared primitives and their variants\n4. Representative routes and rendered consumers\n5. Surface-local implementations\n\nA source participates only when the selected product imports, references, inherits, or renders it. Exclude proposals, migrations, examples, generated outputs, legacy implementations, and similarly named packages unless the selected product uses them.\n\nIn URL mode, sample representative elements for:\n\n- colors and surface roles\n- typography roles\n- spacing and layout\n- borders, radii, and elevation\n- navigation, buttons, inputs, cards, and repeated content structures\n- desktop and mobile presentation\n\nPrefer computed values and loaded CSS declarations over visual estimation.\n\nBefore drafting URL-mode prose or YAML, build a private evidence ledger for each sampled page and viewport. For each candidate, record: page, viewport, element role, computed property\u002Fvalue, and the matching loaded-CSS declaration or custom property when available. Inspect the public stylesheets loaded by the page, including custom properties and media-query rules; a stylesheet value is usable only when it is connected to a rendered element or recurs across the sampled pages.\n\nPromote a URL value into DESIGN.md when either (a) the rendered computed value and a loaded declaration\u002Fcustom property agree, or (b) the same computed value recurs for the same role across the required samples. If neither condition holds, omit the value. You may preserve an exposed custom-property name only when its declaration and rendered use are directly observable; do not invent semantic aliases from a raw value.\n\nFor every URL-mode claim, require all three proofs before writing it:\n\n1. Observation: the pattern or value is visible or computed on the rendered page.\n2. Basis: it is measured, or recurs across the required sampled pages\u002Fviewports.\n3. Consequence: it changes a concrete implementation choice in DESIGN.md.\n\nIf any proof is missing, omit the claim. Do not turn a visual impression into a token, a single occurrence into a site-wide rule, or a guessed value into YAML. Exact values require computed styles or loaded CSS; otherwise describe the role without a value or omit it.\n\n## 3. Decide what belongs\n\nIn repository mode, find explicit product intent or a design reference before describing product character. In URL mode, do not invent product character; the Overview may state only the site's observable purpose and presentation, and must identify the document as reconstructed.\n\nWrite YAML only from named shared tokens and roles in governing sources. Do not turn utility classes, repeated literals, or component values into token scales.\n\nTreat frontmatter shape as a hard gate, not a stylistic choice: a value that is a token group must be a mapping whose children are the schema's fields. Never emit scalar typography entries (`sans: Geist`), arbitrary nested source objects (`font-family: { mono: ... }`), or rounded keys copied from CSS variable names (`radius-sm`, `radius-md`, etc.).\n\nUse mappings, never sequences, for token groups. When a governing source defines one group-level token such as `--radius`, normalize it to `base`; otherwise preserve the source token names.\n\nMap source values into DESIGN.md schema fields. Preserve semantic token names, not source object nesting. For example, write `typography.mono.fontFamily: Geist Mono`, never `typography.mono: Geist Mono`; write `rounded.base: 0.625rem` when the source has only `--radius`, never `rounded.radius` or derived radius steps.\n\nResolve framework utilities through the active theme or configuration before writing exact values.\n\nIdentify the repository's export target before writing frontmatter: `css-tailwind` for Tailwind v4, `json-tailwind` for Tailwind v3, and `dtcg` otherwise. Token names must be valid for that target.\n\nCheck the installed DESIGN.md specification before encoding theme modes:\n\n```bash\nnpx @google\u002Fdesign.md spec\n```\n\nIf the specification supports `themes` and `default-theme`, use its theme-aware token syntax. Otherwise, put the default-theme value under each canonical semantic token and preserve exact alternate-theme values in a `## Themes` table. Do not create parallel `-light` and `-dark` token names, discard alternate-theme values, or use unreleased syntax. A fallback Themes table is documentation only; do not pretend it makes the frontmatter theme-aware.\n\nIn repository mode, every prose rule must be supported by explicit guidance, a named shared token or variant, or a shared owner used by at least two audited surfaces. Otherwise omit it.\n\nIn URL mode, every prose rule must be directly observable. A site-wide rule must recur across at least two sampled templates; otherwise scope it to the inspected page. Use reconstructed role-based names and label the document as a draft.\n\nURL-mode YAML is intentionally sparse, but not empty when measured evidence exists. Add a category when at least one supported value or role survives the three-proof gate. Colors may use computed values or verified public custom properties, but must remain flat and export-safe; typography must use canonical fields such as `fontFamily`, `fontSize`, `lineHeight`, and `fontWeight`; rounded and spacing values must come from computed styles or loaded declarations. Do not create aliases such as `primary`, `elevated`, or `display` merely to organize observations. A component section requires the same interaction or surface treatment to recur across at least two sampled pages and to change a concrete implementation choice.\n\nURL reconstruction does not change the frontmatter schema. Use only these typography property names: `fontFamily`, `fontSize`, `lineHeight`, `fontWeight`, and `letterSpacing`. For example:\n\n```yaml\ntypography:\n  sans:\n    fontFamily: Inter Variable\n  display:\n    fontFamily: Inter Variable\n    fontSize: 64px\n    lineHeight: 64px\n    fontWeight: 510\n```\n\nNever emit URL-specific aliases such as `family`, `size`, `weight`, `mobile-display`, or nested `sans`\u002F`mono` values inside a typography scale. Reconstructed role names may vary; schema field names may not.\n\nFor URL output, use `css-tailwind` as the compatibility export target unless the user specifies another target. Flatten reconstructed color roles into valid token names. Use `background-primary`, `foreground-secondary`, or `border-muted`, not nested keys such as `background.primary` or `foreground.secondary`. Every emitted token name must match `^[a-zA-Z0-9][a-zA-Z0-9-]*$`; reject and rewrite any key that would fail this test.\n\nNormalize URL frontmatter before writing any Markdown. The order is: collect evidence, choose the export target, map evidence into the canonical schema, reject invalid shapes, then write the document. Never draft prose first and retrofit the YAML afterward.\n\nURL frontmatter must satisfy these shape rules:\n\n- `colors` is a flat mapping of valid token names to values.\n- `typography` is a mapping of named scales; each scale is a mapping using only canonical fields.\n- `rounded` and `spacing` are flat mappings of valid token names to values.\n- `components` may reference canonical token paths but may not introduce a second token schema.\n\nIf normalization would require inventing a token name, field, scale, or semantic relationship, omit the candidate.\n\nOutside the Overview, every Markdown sentence must change an implementation choice. Delete component inventories, generic design advice, and prose that only restates YAML.\n\nPreserve the scope and direction of every rule. When implementation conflicts with explicit guidance, document the guidance and report the conflict outside `DESIGN.md`.\n\n## 4. Write the document\n\nStart with the smallest valid frontmatter:\n\n```yaml\n---\nversion: alpha\nname: \u003Cstring>\ndescription: \u003Cstring>\n---\n```\n\nOnly `name` is required. Add `colors`, `typography`, `rounded`, `spacing`, or `components` only when a governing source already defines that named system or contract. Do not create token names to organize implementation values. Token references use `{path.to.token}`.\n\nUse schema-shaped mappings, not copied source nesting. A typography scale is always named and maps its properties beneath it:\n\n```yaml\ntypography:\n  sans:\n    fontFamily: Geist\n  mono:\n    fontFamily: Geist Mono\n```\n\nIf the source defines only `--radius`, write `rounded.base`, not `rounded.radius`; do not derive `sm`, `md`, `lg`, or `xl` from utility classes or repeated values. Before saving, inspect the parsed frontmatter and reject it yourself if any `typography` child is scalar or if `rounded` contains keys not present in the governing source.\n\nStart with `## Overview`. State only the product's purpose and evidenced design direction. Do not summarize pages, components, tokens, or implementation. Add only supported sections from this order:\n\n1. Colors\n2. Themes\n3. Typography\n4. Layout\n5. Elevation & Depth\n6. Shapes\n7. Components\n8. Do's and Don'ts\n\nDo not create a section merely because it exists in the format. Do not reorder or duplicate included sections. Add an unknown section only when supported guidance cannot fit a standard section.\n\nMarkdown records design intent and application guidance. Except for the fallback `## Themes` table, do not put token inventories, component configuration, source syntax, or documentation methodology in Markdown.\n\nInclude a Don't only when a governing source states an explicit prohibition.\n\n- Put exact normative values in YAML frontmatter, except alternate-theme values when the installed specification cannot represent modes.\n- Put supported rationale and application guidance in Markdown.\n- Preserve accepted decisions from an existing `DESIGN.md` unless the user or current governing evidence replaces them.\n- Do not invent brand personality, audience, or emotional rationale.\n- Do not include citations, audit notes, rejected candidates, conflicts, or unresolved questions inside `DESIGN.md`.\n\nBefore saving, delete:\n\n- any YAML token not already named by a governing source\n- any page-local behavior presented as a product-wide rule\n- any implementation pattern that conflicts with explicit guidance\n- any prohibition not explicitly stated\n- any exact implementation value outside YAML frontmatter or the fallback `## Themes` table\n- any component configuration or documentation methodology in Markdown\n- any sentence that does not change the resulting DESIGN.md\n\nRun one final no-op pass: remove vague advice such as “be thorough,” “keep it polished,” or “use good judgment.” Keep only evidence gates, schema constraints, or application rules that change the document.\n\n## 5. Validate\n\nRun structural linting:\n\n```bash\nnpx @google\u002Fdesign.md lint DESIGN.md\n```\n\nThen run one compatibility export using the target selected above:\n\n```bash\nnpx @google\u002Fdesign.md export --format \u003Cformat> DESIGN.md\n```\n\nInspect the output. Every populated frontmatter category supported by the target must emit its corresponding token category; an empty or missing category is a schema failure even when the command exits successfully. Rewrite the frontmatter and rerun validation until the category is emitted, unless the target genuinely cannot represent it. Do not report success while any populated category is missing from the export. Do not return the document while lint or export fails. Do not remove supported design information solely to satisfy an exporter limitation; report that limitation instead. Do not create or retain exported files.\n\nFor `css-tailwind`, verify these output families: `colors` → `--color-*`, `typography.\u003Cname>.fontFamily` → `--font-*`, `typography.\u003Cname>.fontSize` → `--text-*`, `rounded` → `--radius-*`, and `spacing` → `--spacing-*`. Typography entries are named scales; put `fontFamily`, `fontSize`, and `lineHeight` inside each scale, never under arbitrary source nesting such as `font-family`. If `typography` is populated but the export contains neither `--font-*` nor `--text-*`, the document is invalid and must be rewritten before reporting.\n\nWhen updating an existing document, preserve its original contents temporarily and run:\n\n```bash\nnpx @google\u002Fdesign.md diff \u003Cprevious-file> DESIGN.md\n```\n\nRestore any removed accepted decision unless current governing evidence or the user explicitly replaces it.\n\n## 6. Report\n\nReturn:\n\n- mode and audited product or URL\n- created or updated `DESIGN.md`\n- governing sources used\n- conflicts or unsupported areas omitted from the document\n- final lint and export results\n\nIn URL mode, label the output as a reconstructed draft.\n","# Create DESIGN.md\n\nCreate a `DESIGN.md` for one product or coherent website. Record the design language that governs it, not every value that happens to exist.\n\n## Boundaries\n\n- Modify only `DESIGN.md`. Do not change product source, dependencies, configuration, or generated files.\n- Use the DESIGN.md format contract below. Do not invent a competing schema.\n- Do not copy every discovered token or component into the document.\n- Do not convert repetition, local styling, or visual preference into product intent.\n\n## 1. Choose the mode\n\n### Repository mode\n\nUse when a local product repository is available. Create or update `DESIGN.md` at the root of the selected product.\n\nIf the repository contains multiple deployable products, select the one named by the user. If the request does not identify one and ownership is ambiguous, ask before writing.\n\nRepository evidence may establish normative values, token names, component ownership, and documented rationale.\n\n### URL mode\n\nUse when the user provides a public URL without its source repository. Create a reconstructed `DESIGN.md` draft in the current workspace.\n\nURL mode requires rendered browser access. Inspect the DOM, computed styles, and publicly loaded stylesheets at desktop and mobile widths. Screenshots may support interpretation but cannot establish exact values by themselves.\n\nInspect the supplied page and shared chrome. For a site-wide request, sample up to three same-origin pages that represent distinct templates.\n\nURL evidence may establish only observable visual patterns and computed values. It cannot establish internal token names, component ownership, undocumented rationale, or whether a pattern is intentionally canonical.\n\nIf rendered inspection is unavailable, ask for screenshots or source files. Do not create a DESIGN.md from copy, metadata, or HTML structure alone.\n\nChoose repository mode whenever source is available. A supplied URL may verify rendered presentation but does not replace repository evidence.\n\n## Shared evidence pipeline\n\nThe modes differ only in how they collect evidence. They must use the same record and output pipeline:\n\n```text\nrole → value → source → scope → recurrence → confidence\n```\n\n1. Collect evidence using the selected mode.\n2. Record the source, scope, and recurrence for each candidate.\n3. Normalize candidates into the DESIGN.md schema.\n4. Omit candidates that are uncertain, local without a contract, or not implementation-relevant.\n5. Validate frontmatter shape and export compatibility.\n6. Write Markdown only after the normalized frontmatter passes.\n\nNever let repository or URL evidence introduce a second token schema. The same flat token names, mapping-shaped typography, omission rules, and export gates apply to both modes.\n\nThe generated document is private until validation passes. Never return, display, or summarize a DESIGN.md draft before lint and export succeed. If validation reports an invalid shape or missing export category, rewrite the frontmatter and rerun; if the category cannot be repaired, remove it and report it as omitted.\n\n## 2. Trace the evidence\n\nIn repository mode, inspect in this order:\n\n1. Existing `DESIGN.md` and explicit repository guidance\n2. Tokens, themes, variables, and global styles\n3. Shared primitives and their variants\n4. Representative routes and rendered consumers\n5. Surface-local implementations\n\nA source participates only when the selected product imports, references, inherits, or renders it. Exclude proposals, migrations, examples, generated outputs, legacy implementations, and similarly named packages unless the selected product uses them.\n\nIn URL mode, sample representative elements for:\n\n- colors and surface roles\n- typography roles\n- spacing and layout\n- borders, radii, and elevation\n- navigation, buttons, inputs, cards, and repeated content structures\n- desktop and mobile presentation\n\nPrefer computed values and loaded CSS declarations over visual estimation.\n\nBefore drafting URL-mode prose or YAML, build a private evidence ledger for each sampled page and viewport. For each candidate, record: page, viewport, element role, computed property\u002Fvalue, and the matching loaded-CSS declaration or custom property when available. Inspect the public stylesheets loaded by the page, including custom properties and media-query rules; a stylesheet value is usable only when it is connected to a rendered element or recurs across the sampled pages.\n\nPromote a URL value into DESIGN.md when either (a) the rendered computed value and a loaded declaration\u002Fcustom property agree, or (b) the same computed value recurs for the same role across the required samples. If neither condition holds, omit the value. You may preserve an exposed custom-property name only when its declaration and rendered use are directly observable; do not invent semantic aliases from a raw value.\n\nFor every URL-mode claim, require all three proofs before writing it:\n\n1. Observation: the pattern or value is visible or computed on the rendered page.\n2. Basis: it is measured, or recurs across the required sampled pages\u002Fviewports.\n3. Consequence: it changes a concrete implementation choice in DESIGN.md.\n\nIf any proof is missing, omit the claim. Do not turn a visual impression into a token, a single occurrence into a site-wide rule, or a guessed value into YAML. Exact values require computed styles or loaded CSS; otherwise describe the role without a value or omit it.\n\n## 3. Decide what belongs\n\nIn repository mode, find explicit product intent or a design reference before describing product character. In URL mode, do not invent product character; the Overview may state only the site's observable purpose and presentation, and must identify the document as reconstructed.\n\nWrite YAML only from named shared tokens and roles in governing sources. Do not turn utility classes, repeated literals, or component values into token scales.\n\nTreat frontmatter shape as a hard gate, not a stylistic choice: a value that is a token group must be a mapping whose children are the schema's fields. Never emit scalar typography entries (`sans: Geist`), arbitrary nested source objects (`font-family: { mono: ... }`), or rounded keys copied from CSS variable names (`radius-sm`, `radius-md`, etc.).\n\nUse mappings, never sequences, for token groups. When a governing source defines one group-level token such as `--radius`, normalize it to `base`; otherwise preserve the source token names.\n\nMap source values into DESIGN.md schema fields. Preserve semantic token names, not source object nesting. For example, write `typography.mono.fontFamily: Geist Mono`, never `typography.mono: Geist Mono`; write `rounded.base: 0.625rem` when the source has only `--radius`, never `rounded.radius` or derived radius steps.\n\nResolve framework utilities through the active theme or configuration before writing exact values.\n\nIdentify the repository's export target before writing frontmatter: `css-tailwind` for Tailwind v4, `json-tailwind` for Tailwind v3, and `dtcg` otherwise. Token names must be valid for that target.\n\nCheck the installed DESIGN.md specification before encoding theme modes:\n\n```bash\nnpx @google\u002Fdesign.md spec\n```\n\nIf the specification supports `themes` and `default-theme`, use its theme-aware token syntax. Otherwise, put the default-theme value under each canonical semantic token and preserve exact alternate-theme values in a `## Themes` table. Do not create parallel `-light` and `-dark` token names, discard alternate-theme values, or use unreleased syntax. A fallback Themes table is documentation only; do not pretend it makes the frontmatter theme-aware.\n\nIn repository mode, every prose rule must be supported by explicit guidance, a named shared token or variant, or a shared owner used by at least two audited surfaces. Otherwise omit it.\n\nIn URL mode, every prose rule must be directly observable. A site-wide rule must recur across at least two sampled templates; otherwise scope it to the inspected page. Use reconstructed role-based names and label the document as a draft.\n\nURL-mode YAML is intentionally sparse, but not empty when measured evidence exists. Add a category when at least one supported value or role survives the three-proof gate. Colors may use computed values or verified public custom properties, but must remain flat and export-safe; typography must use canonical fields such as `fontFamily`, `fontSize`, `lineHeight`, and `fontWeight`; rounded and spacing values must come from computed styles or loaded declarations. Do not create aliases such as `primary`, `elevated`, or `display` merely to organize observations. A component section requires the same interaction or surface treatment to recur across at least two sampled pages and to change a concrete implementation choice.\n\nURL reconstruction does not change the frontmatter schema. Use only these typography property names: `fontFamily`, `fontSize`, `lineHeight`, `fontWeight`, and `letterSpacing`. For example:\n\n```yaml\ntypography:\n  sans:\n    fontFamily: Inter Variable\n  display:\n    fontFamily: Inter Variable\n    fontSize: 64px\n    lineHeight: 64px\n    fontWeight: 510\n```\n\nNever emit URL-specific aliases such as `family`, `size`, `weight`, `mobile-display`, or nested `sans`\u002F`mono` values inside a typography scale. Reconstructed role names may vary; schema field names may not.\n\nFor URL output, use `css-tailwind` as the compatibility export target unless the user specifies another target. Flatten reconstructed color roles into valid token names. Use `background-primary`, `foreground-secondary`, or `border-muted`, not nested keys such as `background.primary` or `foreground.secondary`. Every emitted token name must match `^[a-zA-Z0-9][a-zA-Z0-9-]*$`; reject and rewrite any key that would fail this test.\n\nNormalize URL frontmatter before writing any Markdown. The order is: collect evidence, choose the export target, map evidence into the canonical schema, reject invalid shapes, then write the document. Never draft prose first and retrofit the YAML afterward.\n\nURL frontmatter must satisfy these shape rules:\n\n- `colors` is a flat mapping of valid token names to values.\n- `typography` is a mapping of named scales; each scale is a mapping using only canonical fields.\n- `rounded` and `spacing` are flat mappings of valid token names to values.\n- `components` may reference canonical token paths but may not introduce a second token schema.\n\nIf normalization would require inventing a token name, field, scale, or semantic relationship, omit the candidate.\n\nOutside the Overview, every Markdown sentence must change an implementation choice. Delete component inventories, generic design advice, and prose that only restates YAML.\n\nPreserve the scope and direction of every rule. When implementation conflicts with explicit guidance, document the guidance and report the conflict outside `DESIGN.md`.\n\n## 4. Write the document\n\nStart with the smallest valid frontmatter:\n\n```yaml\n---\nversion: alpha\nname: \u003Cstring>\ndescription: \u003Cstring>\n---\n```\n\nOnly `name` is required. Add `colors`, `typography`, `rounded`, `spacing`, or `components` only when a governing source already defines that named system or contract. Do not create token names to organize implementation values. Token references use `{path.to.token}`.\n\nUse schema-shaped mappings, not copied source nesting. A typography scale is always named and maps its properties beneath it:\n\n```yaml\ntypography:\n  sans:\n    fontFamily: Geist\n  mono:\n    fontFamily: Geist Mono\n```\n\nIf the source defines only `--radius`, write `rounded.base`, not `rounded.radius`; do not derive `sm`, `md`, `lg`, or `xl` from utility classes or repeated values. Before saving, inspect the parsed frontmatter and reject it yourself if any `typography` child is scalar or if `rounded` contains keys not present in the governing source.\n\nStart with `## Overview`. State only the product's purpose and evidenced design direction. Do not summarize pages, components, tokens, or implementation. Add only supported sections from this order:\n\n1. Colors\n2. Themes\n3. Typography\n4. Layout\n5. Elevation & Depth\n6. Shapes\n7. Components\n8. Do's and Don'ts\n\nDo not create a section merely because it exists in the format. Do not reorder or duplicate included sections. Add an unknown section only when supported guidance cannot fit a standard section.\n\nMarkdown records design intent and application guidance. Except for the fallback `## Themes` table, do not put token inventories, component configuration, source syntax, or documentation methodology in Markdown.\n\nInclude a Don't only when a governing source states an explicit prohibition.\n\n- Put exact normative values in YAML frontmatter, except alternate-theme values when the installed specification cannot represent modes.\n- Put supported rationale and application guidance in Markdown.\n- Preserve accepted decisions from an existing `DESIGN.md` unless the user or current governing evidence replaces them.\n- Do not invent brand personality, audience, or emotional rationale.\n- Do not include citations, audit notes, rejected candidates, conflicts, or unresolved questions inside `DESIGN.md`.\n\nBefore saving, delete:\n\n- any YAML token not already named by a governing source\n- any page-local behavior presented as a product-wide rule\n- any implementation pattern that conflicts with explicit guidance\n- any prohibition not explicitly stated\n- any exact implementation value outside YAML frontmatter or the fallback `## Themes` table\n- any component configuration or documentation methodology in Markdown\n- any sentence that does not change the resulting DESIGN.md\n\nRun one final no-op pass: remove vague advice such as “be thorough,” “keep it polished,” or “use good judgment.” Keep only evidence gates, schema constraints, or application rules that change the document.\n\n## 5. Validate\n\nRun structural linting:\n\n```bash\nnpx @google\u002Fdesign.md lint DESIGN.md\n```\n\nThen run one compatibility export using the target selected above:\n\n```bash\nnpx @google\u002Fdesign.md export --format \u003Cformat> DESIGN.md\n```\n\nInspect the output. Every populated frontmatter category supported by the target must emit its corresponding token category; an empty or missing category is a schema failure even when the command exits successfully. Rewrite the frontmatter and rerun validation until the category is emitted, unless the target genuinely cannot represent it. Do not report success while any populated category is missing from the export. Do not return the document while lint or export fails. Do not remove supported design information solely to satisfy an exporter limitation; report that limitation instead. Do not create or retain exported files.\n\nFor `css-tailwind`, verify these output families: `colors` → `--color-*`, `typography.\u003Cname>.fontFamily` → `--font-*`, `typography.\u003Cname>.fontSize` → `--text-*`, `rounded` → `--radius-*`, and `spacing` → `--spacing-*`. Typography entries are named scales; put `fontFamily`, `fontSize`, and `lineHeight` inside each scale, never under arbitrary source nesting such as `font-family`. If `typography` is populated but the export contains neither `--font-*` nor `--text-*`, the document is invalid and must be rewritten before reporting.\n\nWhen updating an existing document, preserve its original contents temporarily and run:\n\n```bash\nnpx @google\u002Fdesign.md diff \u003Cprevious-file> DESIGN.md\n```\n\nRestore any removed accepted decision unless current governing evidence or the user explicitly replaces it.\n\n## 6. Report\n\nReturn:\n\n- mode and audited product or URL\n- created or updated `DESIGN.md`\n- governing sources used\n- conflicts or unsupported areas omitted from the document\n- final lint and export results\n\nIn URL mode, label the output as a reconstructed draft.\n",{"name":5,"description":7},"main","6ef866230c1ba3459fd08fc65141dfd37fffd41a",0,"https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills","https:\u002F\u002Fskills.henryzh.dev","https:\u002F\u002Fgithub.com\u002Fcaezium","henryzh.dev","quant, data science, full-stack, robotics.\r\nbuilding cool stuff","2026-08-24 19:21:44",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add caezium\u002Fskills --skill create-design-md",{"tool":69,"command":70},"bunx","bunx skills add caezium\u002Fskills --skill create-design-md",{"tool":72,"command":73},"pnpm","pnpm dlx skills add caezium\u002Fskills --skill create-design-md","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fcreate-design-md\u002FSKILL.md",true,[],[78,96,124,142,163,182],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":90,"publishedAt":49},"01M71JT4RYCAS18RF6003YYR1D","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FSKILL.md",[84,87],{"categoryNo":85,"categoryName":86,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":88,"categoryName":89,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000036","内容创作者",[91,92,93,94,40,95,37],"writing for agents","for","writing","editing","documents",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":105,"publishedAt":49},"01M71JT0GES4AZ5ADH8EADNN1Z","wrangler","Cloudflare Workers CLI for deploying, developing, and managing Workers, KV, R2, D1, Vectorize, Hyperdrive, Workers AI, Containers, Queues, Workflows, Pipelines, and Secrets Store. Load before running wrangler commands to ensure correct syntax and best practices. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fwrangler\u002FSKILL.md",[102],{"categoryNo":103,"categoryName":104,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口",[98,106,107,108,109,110,111,112,113,114,115,116,117,92,118,119,120,121,122,123],"cloudflare","d1","knowledge","workflows","cli","secrets","commands","syntax","cloudflare workers","r2","queues","running","containers","correct","load","workers","best practices","store",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":49},"01M71JSWX4R203M32K9A18AAW8","workers-best-practices","Reviews and authors Cloudflare Workers code against production best practices. Load when writing new Workers, reviewing Worker code, configuring wrangler.jsonc, or checking for common Workers anti-patterns (streaming, floating promises, global state, secrets, bindings, observability). Biases towards retrieval from Cloudflare docs over pre-trained knowledge.","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fworkers-best-practices\u002FSKILL.md",[],[131,121,122,132,133,134,92,106,135,108,136,98,93,120,37,137,138,139,140,141],"workers best practices","observability","reviews","promises","worker","new","code","common","streaming","state","anti-patterns",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":49},"01M71JST6P88MXGT2MWDTPJGEG","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fwizard\u002FSKILL.md",[],[144,117,149,92,150,151,152,153,40,154,37,155,156,157,158,159,160,161,162,111],"setting","up","ci","provisioning infrastructure","only","invoke","Bash","one","interactive","can","credentials","dashboard","generate","human",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":167,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":49},"01M71JSQ95S7BQ61DAPN95X2W4","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available evidence sources, searches each relevant category, and returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fwhy\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fwhy\u002FSKILL.md",[],[165,171,172,47,173,92,174,29,40,36,175,176,177,178,179,180,181],"sources","thresholds","relevant","runtime","work","how","behavior","read","data","rationale","returns",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":191,"publishedAt":49},"01M71JSMHFVSH8HK8GXN6YAX6J","week-prep","Generate a briefing with calendar, tasks, and attention flags. Use for \"week prep\", \"briefing\", or \"what's on this week\".","https:\u002F\u002Fgithub.com\u002Fcaezium\u002Fskills\u002Fblob\u002Fmain\u002Fweek-prep\u002FSKILL.md",[188],{"categoryNo":189,"categoryName":190,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[192,193,194,195,196,92,197,198,199,200,40,155,201,202,203,161,204,178,205,206],"week prep","prep","deep","attention","get","search","messages","briefing","MCP","tasks","with","slack","calendar","flags","grep"]