一键导入
lint-and-fix-design-md
Lints a DESIGN.md file and uses the format specification and examples to automatically fix any errors or warnings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Lints a DESIGN.md file and uses the format specification and examples to automatically fix any errors or warnings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a self-contained HTML preview for a DESIGN.md design system. Use when you need to visualize tokens, typography, and components in a functional web page.
Generates a metadata.yaml file for a given DESIGN.md file based on the project schema and template.
Analyzes an HTML design and generates a DESIGN.md file based on the design-md spec.
| name | lint-and-fix-design-md |
| description | Lints a DESIGN.md file and uses the format specification and examples to automatically fix any errors or warnings. |
This skill runs the design-md linter on a target DESIGN.md file. If any errors or warnings are found, it uses the official specifications and example design-md files to systematically resolve the issues, ensuring the design system conforms to standard rules and best practices.
Use the following files in the repository as specification references and examples to guide your fixes:
design-md-library/design-md-spec/spec.mddesign-md-library/design-md-spec/DESIGN-example-1.mddesign-md-library/design-md-spec/DESIGN-example-2.mddesign-md-library/design-md-spec/DESIGN-example-3.mdLocate the Input:
DESIGN.md file.Run Linter:
npx @google/design.md lint <path-to-design-md-file>
Analyze Linter Output:
## Overview (or ## Brand & Style)## Colors## Typography## Layout (or ## Layout & Spacing)## Elevation & Depth (or ## Elevation)## Shapes## Components## Do's and Don'ts# (e.g., #1A1C1E).{colors.non-existent}).{colors.primary} or {typography.body-md}).## Colors sections).Review Specifications & Examples:
design-md-spec/spec.md and the structures in DESIGN-example-1.md, DESIGN-example-2.md, or DESIGN-example-3.md.Apply Fixes:
DESIGN.md file using appropriate file editing tools to fix the errors and warnings. Ensure formatting, typography tokens, shape scales, and component properties adhere strictly to the specification.Verify and Iterate:
npx @google/design.md lint <path-to-design-md-file>