Dev Design Context
Gather design context for this project, then persist it so future UI work starts with the same visual and product direction.
This skill is for one-time setup or major design-direction resets. It does not write application code, generate mockups, or review implementation diffs.
Trigger routing
Use this skill when the user wants Codex / Claude Code to learn a project's design direction before building UI.
Trigger phrases include:
dev-design-context
setup design context
设计上下文
设计规范
先建立设计方向
gather design context
persistent design guidelines
Output goes to .design-context.md in the project root.
Step 0 — Load baseline
执行前先加载 references/dev-baseline.md。以下行为准则在本 skill 全程生效:不假设、最小代码、外科手术式改动、可验证成功标准。
baseline 与本 skill 的关联点:
- 不假设 —— 先扫描真实代码和资产,再问问题;不要让用户重复回答代码里已经能看到的信息。
- 最小代码 —— 只写
.design-context.md 的设计上下文,不要顺手改组件、CSS 或产品文案。
- 外科手术式改动 —— 如果
.design-context.md 已存在,只更新 ## Design Context 相关内容。
- 可验证成功标准 —— 结束前明确写出设计原则已经落在哪个文件,并总结未来设计工作应遵守的 3-5 条原则。
Step 1 — Explore the codebase
Before asking questions, scan the project to discover what can be inferred:
- README and docs: project purpose, target audience, and stated goals
- Package / config files: tech stack, dependencies, and design libraries
- Existing components: layout patterns, spacing, typography, component conventions
- Brand assets: logos, favicons, image assets, and already-defined color values
- Design tokens / CSS variables: color palettes, font stacks, spacing scales, radii, motion values
- Style guides or brand docs: any explicit product, content, or visual direction
Summarize what you learned and what remains unclear before asking the user anything.
Step 2 — Ask UX-focused questions
Ask the user directly to clarify only what cannot be inferred from the codebase. Keep questions focused and avoid long questionnaires.
Users and purpose
- Who uses this? What is their context when using it?
- What job are they trying to get done?
- What emotions should the interface evoke, such as confidence, calm, delight, urgency, or precision?
Brand and personality
- How would you describe the brand personality in 3 words?
- Are there reference sites or apps that capture the right feel? What specifically works about them?
- What should this explicitly not look like? Are there anti-references?
Aesthetic preferences
- Are there strong preferences for visual direction, such as minimal, bold, editorial, technical, playful, or organic?
- Should it support light mode, dark mode, or both?
- Are there colors that must be used or avoided?
Accessibility and inclusion
- Are there specific accessibility requirements, such as a WCAG level or known user needs?
- Are there constraints around reduced motion, color blindness, contrast, or other accommodations?
Skip questions where the answer is already clear from the codebase exploration.
Step 3 — Write design context
Synthesize the codebase findings and the user's answers into this section:
## Design Context
### Users
[Who they are, their context, and the job to be done]
### Brand Personality
[Voice, tone, 3-word personality, and emotional goals]
### Aesthetic Direction
[Visual tone, references, anti-references, theme, color, and motion direction]
### Design Principles
[3-5 principles derived from the codebase and conversation that should guide all design decisions]
Write this section to .design-context.md in the project root. If the file already exists, update the ## Design Context section in place instead of duplicating it.
Then ask the user whether they also want the same Design Context appended to .github/copilot-instructions.md. If yes, append or update that section there as well.
Confirm completion and summarize the key design principles that will guide future UI work.
Multi-Agent Profile
Recommended agent_type: explorer
Use when:
- The main agent needs design-system or UI convention discovery before UI work.
- The project has existing components, styles, assets, or brand cues to inspect.
- The sub-agent can summarize findings without implementing UI changes.
Do:
- Explore README, assets, styles, components, tokens, and existing screens.
- Separate codebase facts from assumptions.
- Ask only UX questions that cannot be inferred.
- Follow the explorer boundaries in
../../docs/multi-agent-policy.md.
Do not:
- Implement UI.
- Rewrite product copy or CSS outside
.design-context.md.
- Invent brand direction when the project already provides evidence.
Output:
- Codebase design facts
- Unknowns that require user input
- Proposed design principles
- Files inspected
1---2name: dev-design-context3description: Use as a one-time design setup for UI, product, landing-page, or brand-heavy work. Scans the project for design context, asks only the UX questions that cannot be inferred, then writes persistent design guidelines to .design-context.md. Does not implement features or review code.4---56# Dev Design Context78Gather design context for this project, then persist it so future UI work starts with the same visual and product direction.910This skill is for **one-time setup** or major design-direction resets. It does not write application code, generate mockups, or review implementation diffs.1112---1314## Trigger routing1516Use this skill when the user wants Codex / Claude Code to learn a project's design direction before building UI.1718Trigger phrases include:1920- `dev-design-context`21- `setup design context`22- `设计上下文`23- `设计规范`24- `先建立设计方向`25- `gather design context`26- `persistent design guidelines`2728Output goes to `.design-context.md` in the project root.2930## Step 0 — Load baseline3132执行前先加载 `references/dev-baseline.md`。以下行为准则在本 skill 全程生效:**不假设**、**最小代码**、**外科手术式改动**、**可验证成功标准**。3334baseline 与本 skill 的关联点:3536- **不假设** —— 先扫描真实代码和资产,再问问题;不要让用户重复回答代码里已经能看到的信息。37- **最小代码** —— 只写 `.design-context.md` 的设计上下文,不要顺手改组件、CSS 或产品文案。38- **外科手术式改动** —— 如果 `.design-context.md` 已存在,只更新 `## Design Context` 相关内容。39- **可验证成功标准** —— 结束前明确写出设计原则已经落在哪个文件,并总结未来设计工作应遵守的 3-5 条原则。4041## Step 1 — Explore the codebase4243Before asking questions, scan the project to discover what can be inferred:4445- **README and docs**: project purpose, target audience, and stated goals46- **Package / config files**: tech stack, dependencies, and design libraries47- **Existing components**: layout patterns, spacing, typography, component conventions48- **Brand assets**: logos, favicons, image assets, and already-defined color values49- **Design tokens / CSS variables**: color palettes, font stacks, spacing scales, radii, motion values50- **Style guides or brand docs**: any explicit product, content, or visual direction5152Summarize what you learned and what remains unclear before asking the user anything.5354## Step 2 — Ask UX-focused questions5556Ask the user directly to clarify only what cannot be inferred from the codebase. Keep questions focused and avoid long questionnaires.5758### Users and purpose5960- Who uses this? What is their context when using it?61- What job are they trying to get done?62- What emotions should the interface evoke, such as confidence, calm, delight, urgency, or precision?6364### Brand and personality6566- How would you describe the brand personality in 3 words?67- Are there reference sites or apps that capture the right feel? What specifically works about them?68- What should this explicitly not look like? Are there anti-references?6970### Aesthetic preferences7172- Are there strong preferences for visual direction, such as minimal, bold, editorial, technical, playful, or organic?73- Should it support light mode, dark mode, or both?74- Are there colors that must be used or avoided?7576### Accessibility and inclusion7778- Are there specific accessibility requirements, such as a WCAG level or known user needs?79- Are there constraints around reduced motion, color blindness, contrast, or other accommodations?8081Skip questions where the answer is already clear from the codebase exploration.8283## Step 3 — Write design context8485Synthesize the codebase findings and the user's answers into this section:8687```markdown88## Design Context8990### Users91[Who they are, their context, and the job to be done]9293### Brand Personality94[Voice, tone, 3-word personality, and emotional goals]9596### Aesthetic Direction97[Visual tone, references, anti-references, theme, color, and motion direction]9899### Design Principles100[3-5 principles derived from the codebase and conversation that should guide all design decisions]101```102103Write this section to `.design-context.md` in the project root. If the file already exists, update the `## Design Context` section in place instead of duplicating it.104105Then ask the user whether they also want the same Design Context appended to `.github/copilot-instructions.md`. If yes, append or update that section there as well.106107Confirm completion and summarize the key design principles that will guide future UI work.108109---110111## Multi-Agent Profile112113Recommended agent_type: explorer114115Use when:116- The main agent needs design-system or UI convention discovery before UI work.117- The project has existing components, styles, assets, or brand cues to inspect.118- The sub-agent can summarize findings without implementing UI changes.119120Do:121- Explore README, assets, styles, components, tokens, and existing screens.122- Separate codebase facts from assumptions.123- Ask only UX questions that cannot be inferred.124- Follow the explorer boundaries in `../../docs/multi-agent-policy.md`.125126Do not:127- Implement UI.128- Rewrite product copy or CSS outside `.design-context.md`.129- Invent brand direction when the project already provides evidence.130131Output:132- Codebase design facts133- Unknowns that require user input134- Proposed design principles135- Files inspected