用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/tomes --skill ds-create-token命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
> Use when this capability is needed.
Use when writing kernel, account, or note MASM code that reads from or writes to the advice provider (advice stack / advice map) — validate advice data.
Use when writing a Rust test that exercises a failure path or a MASM test that expects a `panic` / `assert` — assert on the specific expected error variant or error code.
基于 SOC 职业分类
正在显示 SKILL.md
| name | ds-create-token |
| description | Create design tokens for a component from its CSS variables Use when this capability is needed. |
| metadata | {"author":"baloise"} |
Create component design tokens from CSS variables defined in a component's SCSS file. The skill analyzes vars.local() calls and variant --mod- variables, suggests component token paths, and creates them in Base.tokens.json.
/ds-create-token <component-name>
Examples:
/ds-create-token badge
/ds-create-token button
/ds-create-token footer
@include vars.local() and --mod- variablesFor each variable:
ds-find-token skill to find matching alias tokens
--ds-[component]-[variant]-[element]-[category]-[property]-[state]
Base.tokens.jsonBase.tokens.jsonpnpm tokens to compile outputsComponent tokens always follow this structure:
--ds-[component]-[variant]-[element]-[category]-[property]-[state]
Example: --ds-badge-primary-color-base-text
component: badgevariant: primaryelement: (skipped if not present)category: colorproperty: textstate: basepackages/core/src/components/.host.scss file with vars.local() definitionspnpm tokens first if needed)JSDoc Comments: When generating or updating JSDoc comments in the SCSS file, do NOT include default values in parentheses. Only include the property name and description. Example:
@prop --button-color: Text color of the button@prop --button-color: Text color of the button (default: --ds-alias-text-color-white)Source: baloise/design-system — distributed by TomeVault.