一键导入
unitone-css-coding-assistant
Strict implementation rules for writing or revising unitone-css HTML and React code with a primitive-first, token-first approach.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Strict implementation rules for writing or revising unitone-css HTML and React code with a primitive-first, token-first approach.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Convert screenshots or visual descriptions into structurally accurate unitone-css code by choosing primitives, tokens, and utilities deterministically.
Route unitone-css tasks to the correct workflow by inspecting primitives, utilities, tokens, behaviors, and documentation first.
Compare unitone-css source structure with repository documentation and update docs when layout primitives, tokens, utilities, behaviors, or public exports have drifted.
Add or update a behavior in unitone-css while keeping stylesheet, JavaScript helper, naming, and public API conventions aligned.
Add or update a layout primitive in unitone-css while preserving existing file structure, naming, exports, and documentation expectations.
| name | unitone-css-coding-assistant |
| description | Strict implementation rules for writing or revising unitone-css HTML and React code with a primitive-first, token-first approach. |
| compatibility | unitone-css repository. Ignore dist. |
Use this skill when you are writing or revising actual unitone-css markup or React code.
If the task starts from a screenshot or mockup:
unitone-css-vision-to-code firstWrite code that is:
Before implementing screenshot-derived code, inspect these local references:
Always apply this priority order:
If custom CSS starts defining the page skeleton, stop and refactor.
data-unitone-layout in JSXdata-unitone-layout for primitives and documented attribute helpersclass for utility families from utilities.mdx. from utility selectors when writing classUse ../unitone-css-vision-to-code/references/primitive-selection.md as the default mapping table. Before writing ad hoc flex or grid code, check whether one of those primitives already explains the structure.
Text is width-aware by default because of --unitone--measureText intentionally for prose rhythmLayers composition whenever possiblegrid-column and grid-row values when the overlap boundary mattersPrefer documented utility classes first, following ../unitone-css-vision-to-code/references/token-approximation.md.
Prefer -font-weight:bold before ad hoc fontWeight styles when simple emphasis is enough.
Gutters, Decorator, and documented gap or padding utilitiesstyle is allowed only when it carries documented primitive-specific values (Props) or documented token-backed values.
Good uses:
minHeightsidebarWidthcolumnMinWidth--unitone--grid-column--unitone--grid-rowBad uses:
When the task comes from unitone-css-vision-to-code:
style limited to documented primitive-specific values (Props)data-unitone-layout when they belong in classflex-start or flex-end instead of start and endText accidentally narrow a non-prose layoutdisplay: grid or display: flex in custom CSS where a primitive already existspatterns.mdx first if the request resembles a known composition.Revise if any item feels weak.
Structural match
Primitive discipline
Token discipline
Restraint
Readability
data-unitone-layout attributes remainutilities.mdx are written in class, not data-unitone-layoutclass values do not include a leading .Text is used intentionallyLayers when visually important