ui-frame-contract
Use in the frontend-design phase, before feature-UI implementation. Produce static HTML frame(s) — a single page or a SEQUENCE demonstrating the flow — as…
by FuzeOne★ 18 GitHub stars
Install ui-frame-contract in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
ui-frame-contract
The frontend-design phase produces static HTML frames of the expected UI before any feature-UI is implemented. These approved frames are part of the contract freeze (alongside the OpenAPI/event contract) — the visual source of truth the implementation is checked against, so visual/structural drift is caught against a frozen artifact rather than discovered after the fact.
When
The frontend-design phase, before feature-UI implementation. Authored by frontend-engineer; part of the contract freeze the parallel fan-out depends on (the gate). Pairs with api-contract-first.
What a frame is
A static, self-contained HTML file rendering the expected UI of one screen, design-system-first — it links the design system's stylesheet and uses only DS tokens/styles, no raw hex/rgb, raw px spacing, or one-off type (consistent with design-system-conformance). A feature may be a single page or an ordered SEQUENCE of frames demonstrating the process/flow — e.g. login → create-org → billing → checkout. The sequence shows the flow, not just isolated screens.
Where they live + manifest
Frames live at design/frames/<feature>/*.html plus design/frames/<feature>/manifest.json. The manifest holds an ordered frames array plus top-level approval fields:
{
"approved": true,
"approvedBy": "<name>",
"approvedAt": "<ISO date>",
"frames": [
{ "id": "login", "file": "01-login.html", "title": "Sign in", "route": "/login", "acceptanceNotes": "..." }
]
}
The approved: true marker (with approver + date) is what freezes the frames.
Procedure
- Derive the screens/states from the user story — the pages and the order of the flow.
- Build the frame(s) design-system-first at
design/frames/<feature>/*.html, linking the DS stylesheet; write the orderedmanifest.json. - Review and approve — set the approval marker (
approved: true+approvedBy+approvedAt). - Freeze WITH the contract PR.
contract-designer's frozen contract includes the approved frames; the contract PR is not a valid gate until the frames exist and are approved.
Playwright against frames
frontend-test-engineer runs Playwright against the approved frames for visual/structural assertions as pre-production verification — in addition to the built app and the live app. The frames are the visual source of truth the implementation is checked against, not a replacement for app/live e2e.
Done checklist
- frame(s) at
design/frames/<feature>/*.html, design-system-first (no raw values) - single page or ordered SEQUENCE covering the flow
-
manifest.jsonwith orderedframes(id/file/title/route/acceptanceNotes) - approval marker set (
approved: true+ approver + date) - frozen WITH the contract PR (
contract-designer's gate includes them) -
frontend-test-engineercan run Playwright against the frames pre-production
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the ui-frame-contract skill do?
Use in the frontend-design phase, before feature-UI implementation. Produce static HTML frame(s) — a single page or a SEQUENCE demonstrating the flow — as approved artifacts frozen with the API contract; Playwright later runs against them as pre-production verification.
How do I install the ui-frame-contract skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the ui-frame-contract skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…