Prototype Interface
A prototype is a testable hypothesis about hierarchy and interaction, not a collection of attractive screens.
Visual-target gate
- Inspect the product’s existing UI, tokens, components, assets, and representative flows.
- If an authoritative screenshot, design file, brand system, or selected direction exists, use it as the visual target.
- If the work is greenfield and no target exists, generate exactly three image-based directions that differ in layout composition, typography, density, color behavior, and visual voice. Label them A, B, and C with a short rationale and tradeoff.
- Show the three directions together and wait for the user to select one. Do not build the interface before selection.
Text-only mood boards do not satisfy the gate.
Greenfield stop contract
When no visual target exists, the current invocation ends at the selection gate:
- Persist exactly three inspectable direction artifacts in the workspace. A conversation-only image or a claim that directions are "shown above" is not evidence.
- Persist each direction as a static image artifact: PNG, JPG, WebP, or standalone SVG. Preselection HTML, CSS, JavaScript, and runnable UI files are forbidden, even when described as concept boards.
- Keep each direction at visual-language fidelity, not interface fidelity. Show an aesthetic thesis, type pairing, palette, spatial rhythm, abstract composition thumbnail, and three voice keywords. Use static shapes and text rather than product controls.
- Do not show forms, buttons, inputs, navigation routes, responsive behavior, component states, multiple flow screens, or a detailed end-to-end product interface. Those belong after selection.
- Name or caption every artifact as Direction A, Direction B, or Direction C. Reference the artifact paths in the final response.
- Render one static overview image containing all three directions if the tools support it, using a single batch or rendering session.
- Do not create the product app, prototype flow, state matrix, or implementation scaffold before selection. Do not begin any step in the prototype workflow below.
- Once the three artifacts, rationales, tradeoffs, and selection request exist, stop. Optional polish is not a reason to continue working.
- If no available tool can persist a static image or SVG, report that evidence blocker and stop. Do not substitute an interactive artifact.
Prototype workflow
- Define the user task, entry state, success signal, and critical decision points.
- Map the shortest complete flow and its alternate or failure routes.
- Write a state matrix before styling.
- Build semantic structure and interaction using the selected design language.
- Use realistic content, including long, empty, invalid, and localized examples.
- Implement keyboard behavior, focus management, labels, announcements, target sizes, contrast, zoom, and reduced motion.
- Capture the prototype at agreed narrow and wide viewports.
- Compare expected and actual at the same browser, scale, theme, data, fonts, and motion state. Preserve expected, actual, and diff.
- Test the critical flow as a user, then revise until no material visual or interaction mismatch remains.
State matrix
| Surface | State | Trigger | Visible response | Keyboard/focus | Evidence |
| --- | --- | --- | --- | --- | --- |
Quality rules
- Wireframes must still establish hierarchy, content, and interaction.
- Do not hide weak layout behind gradients, glass, illustrations, or excessive cards.
- Avoid placeholder text where content length affects design.
- Treat overflow, clipping, unexpected wrapping, inconsistent spacing, and fallback fonts as failures.
- Report browser rendering context because visual snapshots are environment-dependent.
Evidence packet
Before selection, return the three local artifact paths, rationales, tradeoffs, one recommendation, and a request to select A, B, or C. After selection, return target selection, flow and state matrix, runnable prototype path, test instructions, viewport matrix, expected/actual/diff artifacts, accessibility checks, and unresolved product or visual questions.
1---2name: prototype-interface-23description: Create and verify an interactive UI prototype from a selected visual target or an existing product language. For greenfield work without a target, first generate exactly three different image-based directions and wait for selection. Use for wireframes, prototypes, and UI exploration.4license: Apache-2.05---67# Prototype Interface89A prototype is a testable hypothesis about hierarchy and interaction, not a collection of attractive screens.1011## Visual-target gate12131. Inspect the product’s existing UI, tokens, components, assets, and representative flows.142. If an authoritative screenshot, design file, brand system, or selected direction exists, use it as the visual target.153. If the work is greenfield and no target exists, generate exactly three image-based directions that differ in layout composition, typography, density, color behavior, and visual voice. Label them A, B, and C with a short rationale and tradeoff.164. Show the three directions together and wait for the user to select one. Do not build the interface before selection.1718Text-only mood boards do not satisfy the gate.1920### Greenfield stop contract2122When no visual target exists, the current invocation ends at the selection gate:2324- Persist exactly three inspectable direction artifacts in the workspace. A conversation-only image or a claim that directions are "shown above" is not evidence.25- Persist each direction as a static image artifact: PNG, JPG, WebP, or standalone SVG. Preselection HTML, CSS, JavaScript, and runnable UI files are forbidden, even when described as concept boards.26- Keep each direction at visual-language fidelity, not interface fidelity. Show an aesthetic thesis, type pairing, palette, spatial rhythm, abstract composition thumbnail, and three voice keywords. Use static shapes and text rather than product controls.27- Do not show forms, buttons, inputs, navigation routes, responsive behavior, component states, multiple flow screens, or a detailed end-to-end product interface. Those belong after selection.28- Name or caption every artifact as Direction A, Direction B, or Direction C. Reference the artifact paths in the final response.29- Render one static overview image containing all three directions if the tools support it, using a single batch or rendering session.30- Do not create the product app, prototype flow, state matrix, or implementation scaffold before selection. Do not begin any step in the prototype workflow below.31- Once the three artifacts, rationales, tradeoffs, and selection request exist, stop. Optional polish is not a reason to continue working.32- If no available tool can persist a static image or SVG, report that evidence blocker and stop. Do not substitute an interactive artifact.3334## Prototype workflow35361. Define the user task, entry state, success signal, and critical decision points.372. Map the shortest complete flow and its alternate or failure routes.383. Write a state matrix before styling.394. Build semantic structure and interaction using the selected design language.405. Use realistic content, including long, empty, invalid, and localized examples.416. Implement keyboard behavior, focus management, labels, announcements, target sizes, contrast, zoom, and reduced motion.427. Capture the prototype at agreed narrow and wide viewports.438. Compare expected and actual at the same browser, scale, theme, data, fonts, and motion state. Preserve expected, actual, and diff.449. Test the critical flow as a user, then revise until no material visual or interaction mismatch remains.4546## State matrix4748```markdown49| Surface | State | Trigger | Visible response | Keyboard/focus | Evidence |50| --- | --- | --- | --- | --- | --- |51```5253## Quality rules5455- Wireframes must still establish hierarchy, content, and interaction.56- Do not hide weak layout behind gradients, glass, illustrations, or excessive cards.57- Avoid placeholder text where content length affects design.58- Treat overflow, clipping, unexpected wrapping, inconsistent spacing, and fallback fonts as failures.59- Report browser rendering context because visual snapshots are environment-dependent.6061## Evidence packet6263Before selection, return the three local artifact paths, rationales, tradeoffs, one recommendation, and a request to select A, B, or C. After selection, return target selection, flow and state matrix, runnable prototype path, test instructions, viewport matrix, expected/actual/diff artifacts, accessibility checks, and unresolved product or visual questions.