design
它能做什么
这个技能为一个产品或界面编写设计简报,并把它保存在代码仓库中。适合希望把设计选择记录下来并与他人共享的团队。
适用场景
- ✓当某个产品或界面决策需要一个统一的书面依据的时候。
- ✓当一个功能在设计师或开发者开始工作之前需要设计简报的时候。
- ✓当现有的界面或素材需要一份可执行的设计摘要的时候。
技能链接
https://github.com/Yeachan-Heo/oh-my-codex/blob/main/plugins/oh-my-codex/skills/design/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为我们的应用创建一个 DESIGN.md,涵盖用户、布局和组件。”
每周 5 个新技能,1 分钟读完。
工作原理
它会查看现有项目和任何设计素材,只补充真正重要的背景信息,然后编写 DESIGN.md。该文件记录目标、用户、视觉语言、组件、无障碍和待解决的问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Design Skill
Use $design to discover product and UI evidence, close only design-critical context gaps, and create or refresh the repository’s durable DESIGN.md contract. It is a maintained design brief, not a pixel-matching loop or one-off critique.
Shared operating, delegation, state, hook, team, cancellation, and verification invariants live in templates/AGENTS.md. Follow that source instead of duplicating its rules here.
Use when
- Product, UX, frontend, or design-system decisions need a repo-local source of truth.
- A feature needs a design brief before a designer lane or implementation.
- Existing UI, assets, screenshots, or constraints need an actionable design summary.
Do not use it for visual-reference implementation matching (use $visual-ralph), screenshot comparison alone, or backend/infrastructure work without user-facing design impact.
Relationship to $visual-ralph
$design owns product goals, users, information architecture, visual language, components, accessibility, constraints, and open questions in DESIGN.md. $visual-ralph owns implementation against an approved visual reference or live-URL baseline, measured verdicts, and pixel-diff evidence. Run $design first when both are needed; DESIGN.md supports but does not replace the visual verdict target.
Workflow
1. Discover local evidence
Inspect and cite existing DESIGN.md, design/UX/frontend docs, README/specs/issues, routes/pages/layouts/components/stories, theme and token files, assets, screenshots/mockups, Storybook or Playwright baselines, and accessibility/responsive/i18n/platform constraints. Separate observations from inferences; note absent evidence.
2. Interview only missing context
Ask concise questions only for gaps the repository cannot resolve: users/jobs, goals/non-goals, brand personality and forbidden aesthetics, primary flows, accessibility/device/browser targets, or unavailable assets/references. If answers are unavailable, record explicit assumptions and open questions rather than blocking.
3. Create or refresh DESIGN.md
Preserve useful content, remove contradictions, mark unknowns, and keep decisions actionable. The root file must contain these sections:
Design
Source of truth
Status (Draft | Active | Needs refresh), date, product surfaces, evidence reviewed.
Brand
Personality, trust signals, avoid.
Product goals
Goals, non-goals, success signals.
Personas and jobs
Primary personas, user jobs, contexts of use.
Information architecture
Navigation, routes/screens, content hierarchy.
Design principles
Principles and tradeoffs.
Visual language
Color, typography, spacing, shape/elevation, motion, imagery/iconography.
Components
Existing/new components, variants/states, token ownership.
Accessibility
Target standard, keyboard/focus, contrast, semantics, reduced motion/sensory concerns.
Responsive behavior
Breakpoints/devices, layout adaptations, touch/hover differences.
Interaction states
Loading, empty, error, success, disabled, offline/slow network where applicable.
Content voice
Tone, terminology, microcopy rules.
Implementation constraints
Framework/styling, tokens, performance, compatibility, test/screenshot expectations.
Open questions
[ ] question, owner, and impact.
4. Apply the contract
Before UI decisions, cite relevant DESIGN.md sections, reuse documented components/tokens, and update the file or add an open question when implementation exposes a contradiction. Do not invent a parallel design-system layer.
5. Handoff
For normal frontend work, provide the relevant sections, repo evidence, and acceptance criteria. For visual-reference, image, or live-URL matching, hand off to $visual-ralph with the approved baseline and identify DESIGN.md as supporting context only.
Evidence and completion
Complete only when design docs/assets/components/screenshots were inspected or noted absent; missing context is answered, assumed, or listed; root DESIGN.md contains every required section; recommendations cite it; and any Visual Ralph handoff is clearly separated from design governance.
Task: {{ARGUMENTS}}
常见问题
它和像素匹配是一回事吗?
不是。它是一份持续维护的设计简报,而不是逐个像素匹配截图的循环。
它和视觉类 Ralph 技能有什么区别?
这个技能处理设计决策,而视觉类技能负责根据已批准的参考进行实现。
它涵盖后端工作吗?
不涵盖。它适用于对面向用户的设计有影响的工作,而不是后端或基础设施。
详情
作者的原始描述
Canonical repo-local DESIGN.md workflow for product, UI/UX, and frontend decision source of truth
repo: Yeachan-Heo/oh-my-codex
热度
- GitHub 星标
- 34k
- 排名
- #8418
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …