Specify, map, document, validate, and package an approved UX/UI design or prototype into build-ready behavior, component, responsive, state, accessibility, analytics, QA, and acceptance contracts. Trigger on "prepare developer handoff", "hand off to engineering", "create implementation specs", "spec this design", "document component behavior", or "write acceptance criteria". Do not use while the product model is still being redesigned or invent backend contracts.
77
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Specify intent, behavior, states, constraints, and verification so implementation requires no hidden product decisions or arbitrary pixel matching.
Collect:
Approved flow and decisions | Platforms, browsers, devices, locales, inputs | Components, tokens, code, versions | Content, data, permissions, latency, APIs | Accessibility target and test environment | Analytics, release, flags, rollout | Open decisions and owners
Label unresolved product, data, security, privacy, or technical decisions. Do not disguise them as visual annotations.
Write:
Entry -> Preconditions -> User action -> System response -> Branches -> Recovery -> Completion -> Return
Include deep link, refresh, back, cancel, interruption, duplicate submission, expired session, and partial completion where relevant. Define what state is retained.
For every visible region identify:
Design object | Code component | Variant | Tokens | Content/data | Event | Owner | Gap
Synthetic example: Address search | AddressAutocomplete | Default | semantic field tokens | Provider results | address_selected | Checkout | Timeout policy open
Use existing component and token names. Avoid raw pixel, color, and typography values when semantic tokens or layout constraints exist. Mark new components and variants explicitly; do not silently create one-off implementations.
Read references/implementation-contract.md. Define anatomy, hierarchy, variants, states, interactions, semantics, content limits, responsiveness, and events. State intent and invariants before exact dimensions.
Use measurements for fixed or bounded values only. For flexible layouts, specify container, grid, min/max, wrapping, truncation, overflow, intrinsic sizing, aspect ratio, alignment, and priority.
Synthetic contract:
Component: AddressAutocomplete | Intent: accelerate entry without blocking manual input | Trigger: eligible address query | Loading: retain query and announce status | Error: preserve values and expose manual entry | Invariant: selecting a suggestion never submits the form
Read references/state-and-responsive-matrix.md. Include default and consequential states across component, page, data, network, permission, and session levels.
Provide realistic fixtures for long labels, empty data, maximum values, errors, translated content, and slow responses. Do not let happy path only designs become an implementation requirement.
Read references/accessibility-qa-and-acceptance.md. Define:
Control or region | Semantic element | Name, role, state, value | Relationships | Keyboard and focus | Errors and status | Contrast, target, reflow, scaling, motion, touch | Accessible alternative
Reference relevant WCAG 2.2 criteria for requirements, but do not claim conformance from the specification alone.
Only include approved analytics. For each event specify:
Event | Trigger | Properties | Object ID | Success/failure | Privacy note | Owner
Define user-visible performance behavior: immediate acknowledgment, loading strategy, cancellation, optimistic update, timeout, retry, state preservation, and layout stability. Add numeric budgets only when product or engineering owns them.
Use observable Given/When/Then statements or an equally testable format. Cover behavior, data, states, responsiveness, accessibility, instrumentation, and recovery. Avoid matches design, looks correct, or works on mobile as acceptance criteria.
Synthetic example: Given autocomplete is unavailable, when the user enters an address manually and submits, then checkout continues without retrying or enabling the provider.
For a complete input-to-output demonstration, read references/worked-example.md. Use it to calibrate behavior-first detail, flexible layout rules, states, and acceptance criteria; do not reuse its fictional system names or API assumptions.
State included flows, platforms, feature flags, system versions, dependencies, and exclusions.
Provide transitions, branches, state retention, and recovery.
Use:
Purpose | System mapping | Anatomy | Content/data | Behavior | States | Responsive | Accessibility | Events
Include ownership and required fixtures.
Group by feature behavior, accessibility, responsiveness, data integrity, and resilience.
Use:
Question | Why it matters | Decision owner | Blocking? | Needed by
Name environments, viewports, content fixtures, assistive technologies, browsers, and high-risk checks. Record deviations as defects, approved tradeoffs, or design changes.
Checkpoint: Trace every acceptance criterion back to approved evidence and forward to component, state, and QA coverage. Revise gaps, then repeat until each Quality-bar item passes or every unresolved decision has an owner and blocking status.
74308ad
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.