codebase-aware-ui-prompts

Installation
SKILL.md

Codebase-Aware UI Implementation Prompts

Transform feature requests and visual requirements into precise, architecture-preserving implementation briefs for AI coding agents (Cursor, Claude Code, Antigravity CLI, GitHub Copilot) and UI generators (v0.dev, Lovable, Bolt.new, Google Stitch).

This skill enforces strict codebase discovery, token reuse, dependency preservation, component-applicable interaction states, and five-tier verification to prevent AI code generation from introducing duplicate libraries, hardcoded hex colors, and broken accessibility patterns.


1. Concrete Division of Labor (Skill Boundaries)

To prevent duplication and context bloat across agent interactions, adhere strictly to these ownership boundaries:

Domain Area Codebase-Aware UI Prompts (This Skill) UI/UX Pro Max (ui-ux-pro-max) Design System (design-system) Cinematic UI/UX (cinematic-ui-ux)
Primary Mission Transforms feature requests into architecture-preserving prompts & implementation briefs. Reference catalog of 50+ styles, 96 palettes, 57 font pairings, and 99 UX heuristics. Mechanical rules for token architecture, FOUT prevention, and loading order. Production GSAP timelines, Lenis smooth scroll, canvas frame scrubbing, route transitions.
Existing Codebases Audits installed packages, forces reuse of @/components/ui/* and existing CSS variables. Look up optimal aesthetic style for a domain. Defines 3-tier token hierarchy from scratch. Animates existing components with physics and gesture mechanics.
Prompt Engineering Platform-specific contracts (Cursor, v0, Lovable, Stitch) with applicable state matrices. None; reference lookup. None; CSS guidelines. Illustrative Playwright E2E motion test fixtures.
Interaction States Calibrated matrix defining which of the 8 states apply to which component types. General UX guidelines on touch targets and hover states. Surface elevation tokens (base, raised, overlay). Decorator pause controller and reduced-motion branches.
Dependency Guard Forbids installing competing packages or hardcoding hex colors. Recommends libraries based on technology stack. Forbids arbitrary hex colors in CSS tokens. Coordinates Lenis with ScrollTrigger ticker authority.
Installs
1
GitHub Stars
50.6K
First Seen
1 day ago