| name | ui-fidelity |
| description | Ensure any proposed UI code change preserves the existing visual system and interaction patterns of the project. |
| argument-hint | Describe the UI changes or provide the relevant code snippet for evaluation |
| user-invocable | true |
# UI Fidelity Skill
Purpose
Ensure any proposed UI code change preserves the existing visual system and interaction patterns of the project.
## Core Rule
This skill is designed to maintain visual consistency and user familiarity across the application.
Do not introduce a new visual language when extending existing screens. Match the current UI first, then improve only when explicitly requested.
## Required Checks Before Proposing UI Code
- Spacing scale must follow existing spacing rhythm used in nearby components.
- Button styles must reuse current button variants, colors, radius, padding, and hover or focus behavior.
- Typography must match established font sizes, weights, line heights, and text color hierarchy.
- Color usage must reuse existing palette and semantic intent for primary, secondary, danger, *success, muted states.
- Border radius, shadows, and outlines must align with surrounding components.
- Component states must be complete and consistent:
- default
- hover
- focus visible
- active
- disabled
- loading if relevant
- Responsive behavior must match existing breakpoints and layout patterns.
- Dark or light theme behavior must follow current project conventions where applicable.
## Implementation Guidelines
- Prefer reusing existing partials, helpers, utility patterns, and component class recipes before creating new ones.
- If a new class combination is needed, derive it from nearby patterns rather than inventing a new style system.
- Keep visual changes minimal when solving functional issues.
- If deviation is necessary, explicitly state:
- what changed
- why it is needed
- where it aligns with current design intent
Forbidden Without Explicit Request
- Introducing a new button style family.
- Changing global spacing rhythm.
- Rebranding color direction.
- Replacing established interaction patterns with a different UI paradigm.
Output Expectation For Proposals
Each UI proposal must include:
- A short note describing which existing UI patterns were matched.
- A short list of reused tokens or class patterns.
- Any intentional deviation with justification.