From rime-craft
Use when building, reviewing, or modifying UI/frontend interfaces. Covers design token anchoring, AI slop prevention, motion decisions, and routing to specialized design skills when available. Applies to any frontend project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rime-craft:rime-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
UI/前端开发时的设计品质守护。内嵌 baseline 规则 + 外部 design skill 场景化路由。
UI/前端开发时的设计品质守护。内嵌 baseline 规则 + 外部 design skill 场景化路由。
以下规则始终适用,不依赖外部 skill。
| Rule | Description |
|---|---|
| token-first | 禁止硬编码颜色/间距/字号值,必须使用项目 tokens |
| component-reuse | 项目已有的组件必须优先使用,不重造 |
| spacing-scale | 遵循项目间距体系,不用任意值 |
| typography-hierarchy | 遵循已定义的字体层级,不自创大小/粗细组合 |
| color-palette | 只用色板中的颜色,需要新色时先确认 |
| responsive-breakpoints | 遵循项目断点体系,不自创断点 |
适用方式: docs/design-context.md 存在时,按索引路径读取源文件。不存在时,在项目中搜索 token 定义。
transform + opacity(GPU 加速),不动画 layout 属性ease-out, 移动 → ease-in-out, hover → easeprefers-reduced-motionoverflow-wrap: anywhere)prefers-reduced-motion / prefers-color-schemeSkill 加载时:
docs/design-context.md 是否存在context-template.md 模板生成 docs/design-context.md → 用户确认在 UI 相关开发过程中,持续观察设计信号(间距混乱、文案含糊、缺乏个性、视觉过载等)。 发现时查 routing.md 的设计嗅觉表,用一句话建议:「注意到 [信号],要不要考虑使用 /[skill]?」
用户同意则调用,不同意则继续。不要反复提醒同一个信号。skill 未安装时按嗅觉表的 fallback 列处理。
嗅觉表与外部 skill 注册表统一维护在 routing.md(单一来源)。 上下文模板 → context-template.md
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub josui/rime-craft --plugin rime-craft