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.'4metadata:5 source: https://skillmd.com/skills/concertonotes/dev-design-context6---78# Dev Design Context910Gather design context for this project, then persist it so future UI work starts with the same visual and product direction.1112This skill is for **one-time setup** or major design-direction resets. It does not write application code, generate mockups, or review implementation diffs.1314---1516## Trigger routing1718Use this skill when the user wants Codex / Claude Code to learn a project's design direction before building UI.1920Trigger phrases include:2122- `dev-design-context`23- `setup design context`24- `设计上下文`25- `设计规范`26- `先建立设计方向`27- `gather design context`28- `persistent design guidelines`2930Output goes to `.design-context.md` in the project root.3132## Step 0 — Load baseline3334执行前先加载 `references/dev-baseline.md`。以下行为准则在本 skill 全程生效:**不假设**、**最小代码**、**外科手术式改动**、**可验证成功标准**。3536baseline 与本 skill 的关联点:3738- **不假设** —— 先扫描真实代码和资产,再问问题;不要让用户重复回答代码里已经能看到的信息。39- **最小代码** —— 只写 `.design-context.md` 的设计上下文,不要顺手改组件、CSS 或产品文案。40- **外科手术式改动** —— 如果 `.design-context.md` 已存在,只更新 `## Design Context` 相关内容。41- **可验证成功标准** —— 结束前明确写出设计原则已经落在哪个文件,并总结未来设计工作应遵守的 3-5 条原则。4243## Step 1 — Explore the codebase4445Before asking questions, scan the project to discover what can be inferred:4647- **README and docs**: project purpose, target audience, and stated goals48- **Package / config files**: tech stack, dependencies, and design libraries49- **Existing components**: layout patterns, spacing, typography, component conventions50- **Brand assets**: logos, favicons, image assets, and already-defined color values51- **Design tokens / CSS variables**: color palettes, font stacks, spacing scales, radii, motion values52- **Style guides or brand docs**: any explicit product, content, or visual direction5354Summarize what you learned and what remains unclear before asking the user anything.5556## Step 2 — Ask UX-focused questions5758Ask the user directly to clarify only what cannot be inferred from the codebase. Keep questions focused and avoid long questionnaires.5960### Users and purpose6162- Who uses this? What is their context when using it?63- What job are they trying to get done?64- What emotions should the interface evoke, such as confidence, calm, delight, urgency, or precision?6566### Brand and personality6768- How would you describe the brand personality in 3 words?69- Are there reference sites or apps that capture the right feel? What specifically works about them?70- What should this explicitly not look like? Are there anti-references?7172### Aesthetic preferences7374- Are there strong preferences for visual direction, such as minimal, bold, editorial, technical, playful, or organic?75- Should it support light mode, dark mode, or both?76- Are there colors that must be used or avoided?7778### Accessibility and inclusion7980- Are there specific accessibility requirements, such as a WCAG level or known user needs?81- Are there constraints around reduced motion, color blindness, contrast, or other accommodations?8283Skip questions where the answer is already clear from the codebase exploration.8485## Step 3 — Write design context8687Synthesize the codebase findings and the user's answers into this section:8889```markdown90## Design Context9192### Users93[Who they are, their context, and the job to be done]9495### Brand Personality96[Voice, tone, 3-word personality, and emotional goals]9798### Aesthetic Direction99[Visual tone, references, anti-references, theme, color, and motion direction]100101### Design Principles102[3-5 principles derived from the codebase and conversation that should guide all design decisions]103```104105Write 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.106107Then 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.108109Confirm completion and summarize the key design principles that will guide future UI work.110111---112113## Multi-Agent Profile114115Recommended agent_type: explorer116117Use when:118- The main agent needs design-system or UI convention discovery before UI work.119- The project has existing components, styles, assets, or brand cues to inspect.120- The sub-agent can summarize findings without implementing UI changes.121122Do:123- Explore README, assets, styles, components, tokens, and existing screens.124- Separate codebase facts from assumptions.125- Ask only UX questions that cannot be inferred.126- Follow the explorer boundaries in `../../docs/multi-agent-policy.md`.127128Do not:129- Implement UI.130- Rewrite product copy or CSS outside `.design-context.md`.131- Invent brand direction when the project already provides evidence.132133Output:134- Codebase design facts135- Unknowns that require user input136- Proposed design principles137- Files inspected