direction-picker
它能做什么
这个工具会在项目开始构建之前,先确定视觉风格(比如颜色、字体等)。它会根据已有的规则或你提供的信息来选择风格,不需要再来问你。
适用场景
- ✓当你希望 AI 为网站决定视觉风格时。
- ✓当你开始一个新的设计或开发项目时。
- ✓为了让所有人都遵循同一套视觉风格。
技能链接
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/direction-picker/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“AI,请根据设计规范为这个项目确定视觉风格。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先检查是否已经定义了设计系统。如果没有,就分析你提供的信息,比如参考网站或品牌规范。如果这些信息还不够,它会结合项目的上下文来判断最合适的风格。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Direction picker
Converging work needs one committed visual direction before the build starts.
This atom owns that moment in the plan stage: decide the direction, state it
in one line, and lock onto it.
Resolve the direction from what you already have, in this order:
- An active design system — its DESIGN.md palette, typography, spacing, and component rules are the direction. Bind its tokens and stop here.
- A brand spec, reference URL, or screenshot the user supplied — parse that source directly.
- Otherwise, infer the best-matching direction yourself from the brief's
domain, audience, and tone, then bind its visual tokens. If the runtime
provides only an index of direction ids and names, run
"$OD_NODE_BIN" "$OD_BIN" tools directions --id <id>to retrieve the full specification — never infer colors or fonts from the name alone.
Do not ask the user to choose a visual direction. Not as a question-form, not as a markdown list of options, not as a "which of these feels right?" follow-up. The direction is yours to resolve; asking spends the user's turn on a decision they hired the agent to make.
Convergence
The atom completes when the plan states the chosen direction. The agent's next turn must build against that direction — backtracking forces a fresh devloop iteration of the plan stage.
Anti-patterns the prompt fragment forbids
- Asking the user to pick, compare, or confirm a visual direction.
- Locking the user into a single direction with cosmetic alternates (a stated direction must be a defensible standalone bet).
- Inferring palette or typography from a direction's name instead of resolving its specification.
常见问题
为什么 AI 不问我想要哪种风格?
设计这个环节本来就是你交给 AI 去做的,所以它会自己做决定。如果先问你,会浪费你的时间,还会拖慢项目进度。
AI 确定风格之后会发生什么?
风格一旦确定并记录下来,AI 后续的工作都会以此为准。如果之后你改变主意,就需要重新做规划阶段的工作。
如果找不到相关信息,AI 会自己编造颜色或字体吗?
不会。AI 不应该只凭风格的名字就编造颜色或字体。它需要找到正确的规格,或者使用你提供的信息。
详情
作者的原始描述
Resolves the visual direction at the plan stage from the brief and design system, without asking the user.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #983
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …