What problem does it solve?
UI tasks in AI coding workflows often lack consistent design contracts, skip visual verification, and drift from confirmed project decisions. This Skill enforces a structured UI workflow that honors project design contracts, maps design decisions to code structure, and closes the loop with visual acceptance checks.
Core Features & Use Cases
- Design Contract Enforcement: Prioritizes confirmed UI decisions from plan.md, PRD, and DESIGN.md over generic aesthetic rules, and writes stable design system decisions back to DESIGN.md.
- Implementation Mapping: Defines where design tokens live, how component boundaries are drawn, how state matrices (loading/empty/error/success) are handled, and how theming and responsive adaptation work before coding begins.
- Visual Acceptance Loop: Uses screenshot tools like Playwright MCP for desktop and mobile viewport checks, or structured self-review when no browser tool exists, recording evidence via visual-state.mjs into artifacts/visual.json.
- Use Case: When redesigning a dashboard across multiple components in an initialized project, the Skill reads DESIGN.md first, applies confirmed tokens and patterns, implements state coverage and accessibility requirements, then captures screenshots to verify the result matches the design intent.
Quick Start
Ask the agent to redesign the landing page following the hello-ui workflow and verify the result with screenshots on desktop and mobile viewports.