
Description
Implement a selected image, screenshot, mockup, or Image Gen reference as a faithful, responsive frontend.
SKILL.md
Image to Code
You're tasked with translating the visual target image into a high-quality, interactive website or web app.
Critical Overrides
- Refer to the Plugin router $index before proceeding.
- Follow $critical-overrides.
User Context
Before starting, load $user-context and run its preflight script when local shell access is available.
Use saved product URLs, Figma files, screenshots, reference images, codebase paths, Storybook, tokens, design systems, brand assets, component refs, browser preferences, and share targets as grounding material when relevant.
Do not inspect every saved reference. Inspect only what the current task needs.
IMPORTANT Previewing prototypes in ChatGPT Work Mode
Starting sites-preview is not verification. Verification requires opening http://terminal.local:4173/ in the cloud browser, inspecting the rendered page, testing primary interactions, checking browser console errors, and passing design QA.
Do not substitute HTTP health, build success, preview-service status, or deployment success for browser verification. If the cloud browser cannot be used, report verification as blocked.
For local prototype verification and design QA in ChatGPT Work Mode:
- Install dependencies if needed. The project must have an npm
devscript. sites-previewrunsnpm run dev -- --host 0.0.0.0 --port 4173 --strictPort. Thedevscript must accept those flags.- For Vite or Vinext projects, use
"dev": "vite". Do not usevinext dev. Configure Vite withserver.host: "0.0.0.0"andserver.allowedHosts: ["terminal.local"]. - From the site root, run
sites-preview start "$PWD". - Open
http://terminal.local:4173/in the cloud browser. Do not uselocalhost,127.0.0.1,0.0.0.0, HTTPS, or another port. - Verify the rendered site and its primary interactions before reporting completion.
- Never mention
terminal.localor output that URL to the user. Deploy a checkpoint with@Sitesand give the user only the deployed checkpoint URL.
Mobile prototypes
For a mobile app or phone prototype, build and verify at 390 × 844 unless the user names a device. Use the starter's .mobile-prototype wrapper. Do not use min-height: 100vh on the app shell. The app surface must end at the 390 × 844 frame. Every screen must fit 390px wide with no horizontal scroll, clipped text, clipped controls, or off-screen primary actions.
Workflow
CRITICAL: THIS IS NOT GUIDANCE. THIS IS A CHECKLIST TO COMPLETE.
- Do not start unless you have a selected image, screenshot, mockup, or Image Gen result to recreate. A written brief is not enough.
- Resolve the exact selected visual target before building.
- If the user selected a numbered
$ideateoption, use the Nth displayed generated-image result from the most recent ideation set. Do not use the original concept planning order or Image Gen prompt submission order. - Use the concept-name list from
$ideateonly when it was explicitly written in the same displayed-image order. - A generated-image result ID, selected image attachment, screenshot, mockup, or Figma frame is stronger than a bare ordinal. Prefer that exact reference when available.
- If the selected result cannot be resolved unambiguously, stop before implementation and ask the user to name the concept or reattach/select the image. Never guess and build a nearby option.
- If the user selected a numbered
- Treat the resolved image as the design to recreate.
- If the provided design is a mobile viewport, build a mobile app. If it's unclear, default to desktop.
- Review the reference design, catalog every image asset in the design, and use the Image Gen tool to create individual images for each one. Zoom in so you can catch every asset that needs to be generated.
Examples include:- Hero images including full bleed image backgrounds
- Featured article imagery
- Thumbnails
- Decorative illustrations
- Textures and background motifs
- Logos
- Product images
- Avatars
Rules:- CRITICAL RULE: Do not create custom div art, CSS art, inline SVGs, handcrafted SVGs, HTML element drawings, div/span shapes, CSS drawings, gradients, emoji, or text glyphs instead of real icons and image assets ever. Use the built-in Image Gen tool for images and the closest matching icon library for icons.
- If text is part of an image asset, keep it in the image asset. Examples include full bleed hero images, signs, posters, packaging, storefronts, article art, and illustrations where the type belongs to the visual itself. Do not crop the background image and recreate that text with transparent text boxes, HTML, CSS, or separate overlay layers unless the source clearly shows editable UI text sitting on top of the image.
- Do not use generic placeholders where the reference implies custom visual content.
- Generated assets must share the same art direction, palette, rendering style, and design language as the reference mockup.
- The built-in Image Gen tool does not support transparent images; post-process generated assets when transparency is required.
Parallel asset production
After cataloging and measuring the reference assets, spawn up to three asset subagents while the main agent builds the app structure.
Give each subagent one raster asset task at a time with its reference crop, exact dimensions, focal point, style, output path, and consuming component. Asset subagents generate, inspect, save, and report the asset path only. They must not edit source code, run the browser, or deploy.
Prioritize critical above-the-fold assets first, then reuse agents for supporting assets. Do not delegate standard UI icons or supplied brand logos.
- Define all sections of the page. For each section, meticulously measure the layout, spacing between elements, and the size and space of the elements themselves.
- Find freely available fonts that match the target design.
- Find a freely available icon library that matches the target design. Do not default to Lucide icons. Search for the best match.
Rules:- CRITICAL RULE: Do not create custom inline SVGs, handcrafted SVGs, HTML element drawings, div/span shapes, CSS drawings, gradients, emoji, or text glyphs. Use the built-in Image Gen tool to generate assets and use the closest matching icon library for icons.
- Build the app starting with local-prototype-preflight. Unless the user asks for a static mock, full production behavior, or a different scope, bring the app or website to life with:
- Working navigation, links, tabs, menus, and primary CTAs.
- Functional inputs, filters, toggles, selections, and forms shown in the main experience.
- Visible UI states: hover, focus, selected, open/closed, loading, empty, and success where relevant.
- The main task, conversion path, or user journey working from start to finish when the product has one.
Controls outside the core experience may be visual-only. Do not build auth, persistence, backend/API calls, integrations, or exhaustive edge cases unless requested.
Rules:- Place every image asset you generated into its position before proceeding. I repeat, replace all placeholders, including CSS/SVG placeholders, before proceeding.
- Do not leave controls in the core experience as static chrome. Do not create new pages or routes unless the user asks for them.
- Run the local app.
- Capture the local app using the Browser Choice rule in $index.
- Run design-qa as the blocking build gate.
Steps:- Open the reference image and the latest prototype screenshot before writing the QA report.
- Compare the same viewport and the same interaction state. If they do not match, capture the missing view first.
- Save the QA report as
design-qa.mdin the project root. - Fix P0/P1/P2 issues, capture the app again, and repeat until the QA report says
final result: passed. - Do not keep looping on P3 polish. Include any remaining P3s as follow-up iteration notes.
- If source capture, prototype capture, or visual comparison is blocked, stop.
design-qa.mdmust sayfinal result: blocked. - Do not hand off unless
design-qa.mdexists and saysfinal result: passed.
- Handoff the app or website.
- Only hand off after design-qa passes.
- Keep the prototype running locally.
- In Codex Desktop, provide the clickable local URL. In ChatGPT Work Mode, deploy a checkpoint with
@Sitesand provide only its deployed URL; never outputterminal.local. - After the prototype link, use the shared build handoff from
critical-overrides.md. Do not add a different completion message. - Include the post-build iteration and share nudge from critical-overrides.
More skills from the role-specific-plugins repository
View all 43 skillsanalyze-account-signals
analyze account signals for sales intelligence
Jul 1AnalyticsCRMResearchSalesanalyze-data-quality
assess data quality for analysis
Jul 1AuditData EngineeringData Qualityanswers-ask-user-input
request missing context from users
Jul 14CommunicationsProductivityapollo
prospect and enrich leads with Apollo
Jul 14ApolloLead EnrichmentProspectingSalesaudit
audit product flows and user journeys
Jul 1AuditDesignProduct ManagementUX Designbuild-business-case
build customer-led business cases and ROI
Jul 1Content CreationFinanceFinancial ModelingSales
More from OpenAI
View publisherprior-auth-packet-builder
build healthcare prior authorization packets
openai-agents-python
Apr 16DocumentsHealthcareInsuranceRegulatory Complianceaspnet-core
build ASP.NET Core web applications
skills
Apr 12.NETASP.NET CoreBlazorC# +1chatgpt-apps
build ChatGPT Apps SDK applications
skills
Apr 12Apps SDKChatGPTMCPOpenAIcli-creator
build CLIs from API docs
skills
Apr 12API DevelopmentCLICodexcloudflare-deploy
deploy projects to Cloudflare
skills
Apr 12CloudflareCloudflare PagesCloudflare WorkersDeploymentdefine-goal
define and set measurable project goals
skills
May 23ProductivityProject ManagementStrategyTask Management