UI Blueprint
Use the session's selected reasoning model. Build from a generated, saved, and inspected UI mockup.
Keep working mockups and design notes under the project-root-relative .codex-skills/ui-blueprint/<run-id>/ unless the user chooses another workspace. Use a unique ID for a new design and reuse the original folder when continuing, including older locations. Keep the selected blueprint for follow-up work; clean up only expendable attempts. Deliver requested assets to their output destinations and implement code in the existing project structure.
When creating the default workspace in a Git project, ensure /.codex-skills/ is ignored unless the user intends to version that data.
Workflow
- Read the existing frontend structure, design system, routes, and components relevant to the requested screen.
- Distill the product, audience, primary task, viewport, required content and controls, and visual constraints into a blueprint brief.
- Use
$image-creator to generate one product-specific mockup. Give it the brief and this run's working directory as the destination.
- Inspect the saved image before writing UI code. Extract actionable notes on layout, hierarchy, typography, color, spacing, controls, and responsive behavior.
- Implement the screen in the existing stack using local components and patterns.
- Verify the implementation in a browser or equivalent renderer on desktop and mobile. Compare composition and hierarchy against the blueprint and repair meaningful drift.
Keep the blueprint in the run folder with a descriptive, non-overwriting filename even if the app does not use it as an asset. If the user requests a delivered mockup, also save it at the requested destination. If image generation fails or is unavailable, report the blocker; proceed without a blueprint only when the user has accepted that fallback.
Blueprint and Implementation
- Request a complete screen using the user's actual product and content. A generic placeholder mockup does not satisfy the workflow.
- Use short representative text in the image; implement exact copy from the user's requirements. Do not depend on long, precisely rendered image text.
- Choose visual elements that can be implemented with available assets and technology.
- Preserve existing routing, state management, component APIs, data contracts, and design tokens unless the task requires changing them.
- Use the image for visual direction and the repository for engineering constraints. Preserve required controls and behavior even where the static image is incomplete.
- Implement responsive behavior and component states deliberately; a desktop mockup does not specify them fully.
- Supply actual visual assets where the composition needs imagery. Keep implementation notes and prompt commentary out of product UI.
- Check text fit, usable controls, and visibility of key content as part of the visual verification.
Handoff
Report the implementation changes, saved blueprint link, verification performed, and any meaningful deviation with its reason.
1---2name: ui-blueprint3description: Generate a visual blueprint before building new frontend UI or substantially redesigning a screen. Exclude small copy or styling changes, narrow bug fixes, and work that should preserve the existing design.4---56# UI Blueprint78Use the session's selected reasoning model. Build from a generated, saved, and inspected UI mockup.910Keep working mockups and design notes under the project-root-relative `.codex-skills/ui-blueprint/<run-id>/` unless the user chooses another workspace. Use a unique ID for a new design and reuse the original folder when continuing, including older locations. Keep the selected blueprint for follow-up work; clean up only expendable attempts. Deliver requested assets to their output destinations and implement code in the existing project structure.1112When creating the default workspace in a Git project, ensure `/.codex-skills/` is ignored unless the user intends to version that data.1314## Workflow15161. Read the existing frontend structure, design system, routes, and components relevant to the requested screen.172. Distill the product, audience, primary task, viewport, required content and controls, and visual constraints into a blueprint brief.183. Use `$image-creator` to generate one product-specific mockup. Give it the brief and this run's working directory as the destination.194. Inspect the saved image before writing UI code. Extract actionable notes on layout, hierarchy, typography, color, spacing, controls, and responsive behavior.205. Implement the screen in the existing stack using local components and patterns.216. Verify the implementation in a browser or equivalent renderer on desktop and mobile. Compare composition and hierarchy against the blueprint and repair meaningful drift.2223Keep the blueprint in the run folder with a descriptive, non-overwriting filename even if the app does not use it as an asset. If the user requests a delivered mockup, also save it at the requested destination. If image generation fails or is unavailable, report the blocker; proceed without a blueprint only when the user has accepted that fallback.2425## Blueprint and Implementation2627- Request a complete screen using the user's actual product and content. A generic placeholder mockup does not satisfy the workflow.28- Use short representative text in the image; implement exact copy from the user's requirements. Do not depend on long, precisely rendered image text.29- Choose visual elements that can be implemented with available assets and technology.30- Preserve existing routing, state management, component APIs, data contracts, and design tokens unless the task requires changing them.31- Use the image for visual direction and the repository for engineering constraints. Preserve required controls and behavior even where the static image is incomplete.32- Implement responsive behavior and component states deliberately; a desktop mockup does not specify them fully.33- Supply actual visual assets where the composition needs imagery. Keep implementation notes and prompt commentary out of product UI.34- Check text fit, usable controls, and visibility of key content as part of the visual verification.3536## Handoff3738Report the implementation changes, saved blueprint link, verification performed, and any meaningful deviation with its reason.