Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: image2-prompt-pack description: | This skill should be used when the user asks to convert a PRD, OpenSpec change, or product idea into a structured GPT Image 2 UI prompt pack for generating high-fidelity flat UI reference images. It produces prompt materials, UI type decisions, variants, negative prompts, and reference selection checklists, not frontend code.
argument-hint: "[prd-file-or-change-name]"
Version: 2.0.0
image2-prompt-pack
Create a structured GPT Image 2 prompt pack from PRD or OpenSpec inputs.
This skill prepares materials for generating a UI reference image. It does not implement UI, extract visual specs from screenshots, or build the final design system.
Trigger Conditions
Use this skill when the user asks to:
- generate GPT Image 2 prompts from a PRD
- create UI image prompt materials
- convert OpenSpec change into reference image prompts
- prepare prompt pack for UI screenshot generation
- generate variants for a UI reference image
- standardize image generation inputs before visual-to-spec
Required Input
prd.md
Optional Inputs
openspec/changes/<change>/proposal.mdopenspec/changes/<change>/specs/**/spec.mdopenspec/changes/<change>/design.mdopenspec/changes/<change>/tasks.mdbrand.mdvisual-preferences.mdtechnical-constraints.mdui-ux-pro-max outputfrontend-design output
Source of Truth
- PRD / OpenSpec spec — product goal and user-visible behavior
- User visual preference — explicit direction from the user
- Technical constraints — frontend feasibility and platform constraints
- ui-ux-pro-max — weak design/UX reference only
- frontend-design — anti-generic reference only
- Skill inference — fallback, must be labeled
Main Workflow
- Read PRD and optional OpenSpec files.
- Extract product context.
- Extract page objective.
- Decide UI Type and Layout Paradigm.
- Identify required business modules.
- Generate visual direction.
- Generate layout requirements.
- Generate component requirements.
- Generate style token seed.
- Generate main GPT Image 2 prompt.
- Generate negative prompt.
- Generate 3-4 variant briefs.
- Generate reference selection checklist.
- Generate prompt pack summary.
Hard Rules
- Do not write frontend code.
- Do not generate final
tokens.json. - Do not replace visual-to-spec.
- Do not default every product to dashboard.
- Always create
ui-type-decision.md. - Always create
reference-selection-checklist.md. - Always create
image2-negative-prompt.md. - Always make the UI image frontend-implementable.
- Always specify
flat UI screenshotunless the chosen UI type explicitly requires scene-led image generation. - Do not produce marketing poster prompts unless the PRD is truly for a landing/marketing page.
- Do not produce 3D device mockups.
- Do not allow ui-ux-pro-max to override PRD or user constraints.
- If UI type is uncertain, mark it
review-required.
Output
Write to:
openspec/changes/<change>/ui/01_prompt_pack/
or:
ui_workflow/01_prompt_pack/
with:
product-context.mdpage-objective.mdui-type-decision.mdvisual-direction.mdlayout-requirements.mdcomponent-requirements.mdstyle-tokens-seed.mdimage2-prompt.mdimage2-negative-prompt.mdvariant-briefs.mdreference-selection-checklist.mdprompt-pack-summary.md
Supporting Files
Read these references directly:
references/prompt-pack-workflow.mdreferences/ui-type-decision-rules.mdreferences/output-files.mdreferences/prompt-writing-rules.mdreferences/negative-prompt-rules.mdreferences/variant-rules.mdreferences/external-skill-usage.mdreferences/source-strictness-rules.md
Examples:
examples/product-context.example.mdexamples/ui-type-decision.example.mdexamples/image2-prompt.example.mdexamples/image2-negative-prompt.example.mdexamples/variant-briefs.example.mdexamples/reference-selection-checklist.example.md