frontend-design-contract
Use when frontend work needs an explicit UI, interaction, accessibility, and responsive design contract before implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when frontend work needs an explicit UI, interaction, accessibility, and responsive design contract before implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when Codex is asked to colonize, plan, build, continue, swarm, or seal an Aether colony and must mirror wrapper orchestration safely
Use when Codex is asked to initialize or set up an Aether colony and should refine intent before running init
Use when Codex is asked to run Aether Oracle or discuss flows and should refine scope before research or clarification
Use when acceptance criteria need unit, integration, or end-to-end tests generated from implementation context
Use when delivered functionality needs acceptance-criteria verification before a phase advances
Use when a phase involves LLMs, AI agents, RAG, ML inference, or prompt/tool integration design
| source | shipped |
| name | frontend-design-contract |
| description | Use when frontend work needs an explicit UI, interaction, accessibility, and responsive design contract before implementation |
| type | colony |
| domains | ["frontend","mobile","design"] |
| agent_roles | ["architect","builder","scout"] |
| workflow_triggers | ["plan","build"] |
| task_keywords | ["ui","frontend","component","screen","layout","responsive","accessibility"] |
| priority | normal |
| version | 1.0 |
Generates a structured UI design contract (UI-SPEC.md) for frontend phases, ensuring all visual, interaction, and accessibility requirements are locked before code is written. Prevents UI inconsistencies by defining component inventories, visual tokens, responsive behavior, accessibility contracts, and performance budgets as a single source of truth that builders reference during implementation.
Generate a UI-SPEC.md file in the phase directory with these sections:
List every UI component to be built or modified:
| Component | Type | Stateful | Interactions | Accessibility Notes |
|-----------|------|----------|--------------|---------------------|
| SearchBar | Input | Yes | Type, clear, submit | aria-label, live results |
For each screen or page:
prefers-reduced-motion UI-SPEC | Phase {N}: {name}
Components: {count} to build/modify
Breakpoints: {list}
Accessibility: WCAG 2.2 AA
Performance: LCP <{target}s, CLS <{target}
Contract: .aether/phases/{N}/UI-SPEC.md
Dashboard phase:
"Generated UI-SPEC.md for phase 3 (Dashboard). 14 components inventoried including ChartWidget, MetricCard, and DateRangePicker. Responsive breakpoints: mobile (375px), tablet (768px), desktop (1024px). Accessibility: WCAG 2.2 AA with keyboard navigation for all chart interactions. Performance budget: LCP < 2.5s, CLS < 0.1."
Form-heavy phase:
"Generated UI-SPEC.md for phase 5 (User Settings). 8 form components with full interaction specs including validation timing (inline on blur), error message positioning, and mobile keyboard handling. All components meet 44x44px touch target minimums."