一键导入
global-conventions
Manage global design conventions — .conventions.yml for fonts, viewport, CSS rules, HTML rules, images, and typography defaults
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage global design conventions — .conventions.yml for fonts, viewport, CSS rules, HTML rules, images, and typography defaults
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Preview server — download, start, stop, and control the design preview with live reload at port 3000
Color palette management — generate standard YAML palettes from built-in library, external search, URL extraction, or traditional Chinese colors
Manage design-spec.css — match resource library, handle medium differentiation (web/app/poster), auto-learn from completed projects
Font management — list, install, remove, and recommend fonts from 11 seed typefaces + Google Fonts
Create and manage HTML pages from design templates — web, app, and poster mediums
Create and manage design project structure — project.yml, directory layout, and medium separation (web/app/poster)
| name | global-conventions |
| trigger | When setting global defaults (font, page width, naming), running first-time setup wizard, or modifying cross-project conventions |
| description | Manage global design conventions — .conventions.yml for fonts, viewport, CSS rules, HTML rules, images, and typography defaults |
Manage cross-project design conventions. All new projects inherit these defaults.
Individual projects can override them in their own project.yml.
Global conventions live at $WORKDIR/design-works/.conventions.yml:
fonts:
body: "Inter"
heading: "Inter"
mono: "JetBrains Mono"
chinese: "Noto Sans SC"
viewport:
default_width: 1200
breakpoints:
- width: 375
label: "Phone"
- width: 768
label: "Tablet"
- width: 1200
label: "Desktop"
css:
naming: "bem"
variables_prefix: "--"
color_format: "hex"
layout: "css-grid"
html:
doctype: "html5"
charset: "utf-8"
lang_default: "zh-CN"
indent: "2-spaces"
images:
format: "webp"
max_width: 2000
lazy_loading: true
color_variables:
format: "{role}-{variant}"
roles:
- primary
- secondary
- accent
- success
- warning
- error
- surface
- text
- border
typography:
scale: "major-third"
base_size: 16
line_height_body: 1.6
line_height_heading: 1.2
max_line_length: 72
cat $WORKDIR/design-works/.conventions.yml 2>/dev/null || echo "{}"
Directly edit the corresponding field in .conventions.yml. Common operations:
# Set global default font
# Edit fonts.body and fonts.heading fields
# Set global page width
# Edit viewport.default_width
# Switch to utility-first CSS naming
# Edit css.naming to "utility-first"
When .conventions.yml does not exist, guide the user:
Generate .conventions.yml from answers.
New projects inherit from global conventions:
project.yml inherits viewport and breakpointscss, html, color_variables rulesfonts fieldProject-level settings override global defaults.
.conventions.yml is the global default; project config can override{}