reference-design-contract
它能做什么
这个工具可以把你的设计想法(比如视觉示例或模糊的描述)转换成清晰、可复用的指南。它会生成一份详细的文档,解释每个设计决策,让其他人能照着做出类似的成果,而不用瞎猜。
适用场景
- ✓在制作视觉原型之前。
- ✓当你想为项目确定一种视觉风格时。
- ✓当你有一个参考示例,想做出相似但不完全一样的效果时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/reference-design-contract/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望这个网站的设计看起来像网站 X,但要用品牌 Y 的配色,并且去掉那个闪烁的按钮。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会分析你提供的示例和需求,区分哪些应该保留(比如配色、风格),哪些需要修改(比如内容、logo)。然后它会生成一份文档,记录所有这些决策,并为设计师提供清晰的说明。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reference Design Contract
Use this skill when the user has taste signals, references, or a rough "like this" request and needs a reusable design contract before generation. The goal is not to write a longer prompt. The goal is to make design decisions explicit enough that a later prototype, deck, redesign, or image-remix run can execute without guessing.
What this skill produces
Create three files:
DESIGN.md— the reusable visual direction, following OpenDesign's standard nine-section design-system shape.design-contract.md— the decision record: evidence used, keep/change boundaries, rationale, risks, and quality gate.implementation-handoff.md— concise build instructions for the next artifact-producing skill or coding agent.
If a preview is useful, also create example.html as a small hand-built
contract preview. Do not make it the main deliverable.
Workflow
- Lock the job. Identify target artifact type, audience, brand/product context, references, and constraints. Ask at most two questions only when a missing answer would change the direction. Otherwise choose a sensible default and label it as inferred.
- Read evidence. Use provided screenshots, URLs, existing
DESIGN.md, brand docs, image artifacts, or user notes. If evidence is missing, say so and base the contract on the brief only; do not invent brand facts. - Separate reference semantics. For every reference, split it into:
Keep: qualities to preserve, such as density, composition, material, typography rhythm, color temperature, or motion attitude.Change: subject matter, copy, brand marks, exact layout, protected assets, and anything the user wants adapted.Do not copy: literal screenshots, logos, claims, pricing, proprietary UI, or exact prompt wording from examples.
- Freeze the direction. Choose one coherent visual stance. Do not provide five unrelated moodboards. If there are genuinely competing directions, name them briefly, pick the recommended one, and continue.
- Write
DESIGN.md. Use these nine headings exactly:## 1. Visual Theme & Atmosphere## 2. Color## 3. Typography## 4. Spacing & Grid## 5. Layout & Composition## 6. Components## 7. Motion & Interaction## 8. Voice & Brand## 9. Anti-patterns
- Write
design-contract.md. Include:- goal and target artifact
- evidence table with confidence (
observed,provided,inferred) - keep/change/do-not-copy table
- final design stance in one paragraph
- risks and explicit unknowns
- quality gate checklist
- Write
implementation-handoff.md. Keep it short and operational:- files to read
- token/palette/type/layout constraints
- asset rules
- responsive requirements
- "first artifact should prove..." acceptance notes
- Validate. Read
references/checklist.mdand satisfy every P0 gate before final handoff.
Output rules
- Make every claim traceable to user input, observed reference evidence, or an explicitly labeled inference.
- Prefer concrete constraints over adjectives: "one warm accent, no purple or blue glow" beats "premium".
- Treat "do the same style" as "borrow controllable qualities", not "clone the original subject or prompt".
- If the user asks for immediate UI generation too, finish these contract files first, then hand off to the appropriate artifact skill in the next step.
常见问题
这个工具会生成哪三个文件?
它会生成一个 `DESIGN.md`,记录视觉方向;一个 `design-contract.md`,记录各项决策及其理由;以及一个 `implementation-handoff.md`,为负责落地的人提供说明。
我可以使用任何类型的参考资料吗?
可以,你可以使用截图、网站链接、产品笔记,或者对你想要的外观的文字描述。
这个工具会直接生成最终设计吗?
不会,它生成的是一份详细的指南。之后由其他工具或人员根据这份指南来完成最终设计,从而确保结果符合你的想法。
详情
作者的原始描述
Turn vague taste, screenshots, URLs, product notes, or "make it feel like this" references into a grounded DESIGN.md plus an implementation handoff. Use it before prototypes, decks, redesigns, or image remix work when the user needs a reusable visual direction rather than a one-off prompt.
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1218
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …