design-mode
Skill2 starsChanged 6 months agoMITView on GitHub
Use when making UI/frontend changes in Cursor's Design Mode, when the user selects elements visually, draws annotations, or uses voice commands to describe changes. Also use when editing components from the integrated browser, when multi-selecting elements to match styles, when making iterative visual refinements, or when the agent receives visual context (screenshots, element selections, DOM references) alongside a change request.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skill-forgeSkill
- ai-debt-detectorSkill
- arch-from-codeSkill
- context-builderSkill
- db-schemaSkill
- diagnoseSkill
- dynamic-workflowSkill
- error-resilienceSkill
- git-workflowSkill
- grillSkill
- handoffSkill
- mcp-conductorSkill
- prove-itSkill
- self-reviewSkill
- session-guardSkill
- setupSkill
- web-perfSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
When Design Mode provides visual context:
- Distinctive: line 54
Don't wait for one to complete before processing another
- Distinctive: line 56
If two edits conflict (same element, different requests), handle the most recent
- Distinctive: line 60
When user provides BOTH voice description AND visual selection:
- Distinctive: line 118
Prefer fast, targeted changes over architectural refactors
- Distinctive: line 120
If the first edit doesn't look right, make a second targeted adjustment rather than reverting and trying a different approach
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Cursor Design Mode lets users point, click, draw, and speak to direct UI changes — giving you spatial context, component identity, and visual relationships. This skill teaches you to use that context effectively: make targeted, precise edits instead of broad rewrites.
When to Use
- User selected element(s) in the integrated browser
- User drew an annotation highlighting a region
- User gave voice instruction about a visual change
- You received DOM context, layout data, or element identity from Design Mode
- Task involves CSS, layout, spacing, color, typography, or component styling
- User says "make this look like X" or "fix this button" with visual context
Process
When Design Mode provides visual context:
1. IDENTIFY — What exact element(s) were selected? Which component file owns them?
2. SCOPE — Change ONLY what was pointed at. Don't refactor surrounding code.
3. PRESERVE — Keep existing styles, classes, and behavior. Only modify what was asked.
4. TARGETED — Make the minimal CSS/JSX change that achieves the visual result.
5. VERIFY — After edit, confirm the change renders correctly (hot-reload shows result).Key Principles
Precision Over Ambition
Design Mode gives you a SPECIFIC element. Don't:
- Refactor the entire component when only one style was requested
- Change the component's API when only its appearance was pointed at
- Touch logic when only visuals were selected
DO:
- Find the exact file and line for the selected element
- Make the minimal edit that achieves the described visual change
- Preserve all existing behavior, event handlers, accessibility
Parallel Edits
Users can send multiple Design Mode edits simultaneously. Each edit is independent:
- Don't wait for one to complete before processing another
- Each edit targets its own element — no cross-contamination
- If two edits conflict (same element, different requests), handle the most recent
Voice + Visual = High Confidence
When user provides BOTH voice description AND visual selection:
- The visual selection tells you WHAT to change
- The voice tells you HOW to change it
- Trust the combination — this is higher confidence than text alone
Workflow Patterns
Single Element Edit
User: [clicks element] "Make this text larger and bolder"
Agent:
1. Identify: The selected h2 in src/components/Hero.tsx line 23
2. Change: font-size + font-weight on that specific element
3. Scope: Only the selected h2, nothing elseMulti-Element Style Matching
User: [multi-selects 3 cards] "Make these all the same height"
Agent:
1. Identify: The 3 card components — check if they share a class/component
2. Change: Add consistent height/min-height to the shared style
3. Verify: All 3 cards now match visuallyRegion Drawing
User: [draws rectangle around a section] "Add more padding here"
Agent:
1. Identify: The container element within the drawn region
2. Change: Increase padding on that container
3. Scope: Only the highlighted region, not global spacingCommon Mistakes
- Rewriting an entire component when user pointed at one button
- Changing Tailwind config when user just wants one element's color adjusted
- Breaking responsive behavior by adding fixed widths to match a desktop selection
- Ignoring the specificity of the selection (user clicked ONE card, you changed ALL cards)
- Removing existing accessibility attributes (aria-*, role, tabindex) during visual edits
Stack Guidance
Design Mode works best with:
- Tailwind CSS — utility classes make targeted edits easy (add/change one class)
- CSS Modules — scoped by default, safe to edit without side effects
- Inline styles — only for truly one-off overrides the user explicitly requested
- Component props — when the visual change maps to an existing variant/size/color prop
Avoid:
- Global CSS changes for element-specific requests
!importantunless overriding a third-party library with no other option- Modifying shared design tokens for a single-element request
Integration with Composer 2.5
Design Mode pairs with Composer 2.5 for optimal speed on UI tasks. When processing Design Mode edits:
- Prefer fast, targeted changes over architectural refactors
- Hot-reload feedback loop: edit → save → see result → iterate
- If the first edit doesn't look right, make a second targeted adjustment rather than reverting and trying a different approach
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

