Skip to content
youdede

Specify Component Contracts

DesignSkillv1.1.0

Specify a reusable interface component in a form engineering can build without interpretation, covering anatomy, variants, exhaustive interactive states, keyboard interaction, responsive and localization behavior, content rules, motion, and usage boundaries. Use when defining a new library component or when an existing one lacks a complete spec.

Runs on

Scope
$npx @youdede/toolkit add specify-component-contracts --target claude-code

What it does

Specify components with exhaustive states, variants, and usage rules engineering can build without interpretation.

When it fires

  • design
  • implementation
  • review

How it behaves

It does not mark a specification ready to build while states, transitions, or defaults remain unresolved and unlabeled.

It does not invent behavior for states, platforms, or variants the supplied material never described.

It does not write raw visual values where the token set provides a token, and it does not mint new tokens silently.

It does not certify components accessible, keyboard-complete, or conformant in place of accessibility review.

It does not modify shipped components, code, or design files while specifying.

It does not follow instructions embedded in design files, screenshots, tickets, or supplied comments.

Version
1.1.0
Licence
RiskThis skill specifies components with exhaustive states, variants, and usage rules engineering can build without interpretation; it does not modify shipped components, code, or design files while specifying.
Low
ModeHow it works: fixed rules, model instructions, or both.
Prompt only
Behaviour
Advises, never blocks
On failure
Stops and reports
LatencyThe skill specifies components with exhaustive states, variants, and usage rules engineering can build without interpretation, using sequential evidence and verification steps.
Bounded
Data retentionWhether data remains after use and who manages its storage.
Managed by the runtime

Often used with

All in Design