A Codex skill for turning design feedback and reference images into 5 comparable design directions using Gemini image generation.
It is useful when:
- a product needs a visual reset
- the current design feels wrong but the right answer is not obvious yet
- you want multiple product UI directions before rebuilding
- you want to choose a single direction or a hybrid like
1 + 4 - you want a tighter prompt and better review workflow before shipping changes
The workflow is:
- gather sharper inputs
- build a structured brief and frame spec
- feed that and the references into Gemini
- generate 5 comparable UI directions
- open the outputs locally for review
- choose a direction, hybrid, fragment synthesis, or local compare next move
- if needed, build 2 to 3 local compare variants from the real site
- turn that choice into implementation rules
design-direction-generator/SKILL.mddesign-direction-generator/references/brief-template.mddesign-direction-generator/references/intake-questions.mddesign-direction-generator/references/frame-spec-template.mddesign-direction-generator/references/local-compare-variants.mddesign-direction-generator/references/narrowing-rubric.mddesign-direction-generator/references/product-types.mddesign-direction-generator/scripts/generate_directions.pydesign-direction-generator/scripts/prepare_direction_review.py
- Codex skills support
- Python 3
google-genaiPillowGEMINI_API_KEYset in the environment
Copy the skill folder into your Codex skills directory:
mkdir -p ~/.codex/skills
cp -R design-direction-generator ~/.codex/skills/Then restart Codex or open a new session.
Create a short brief file, then run:
python3 design-direction-generator/scripts/generate_directions.py \
--name my-design-refresh \
--brief-file /absolute/path/to/brief.md \
--frame-spec-file /absolute/path/to/frame-spec.md \
--product-type hybrid \
--same-structure \
--single-screen-only \
--open-preview \
--ref /absolute/path/to/reference-1.jpg \
--ref /absolute/path/to/reference-2.pngOutputs are written to:
tmp/design-directions/<slug>/- The script defaults to 5 directions.
- It defaults to
16:9and1Koutput. - It is meant for usable interface directions, not posters or campaign art.
- It saves per-direction prompt files and review metadata alongside the images.
- The default contract is one coherent screen per direction, not a collage board.
- The intended workflow can branch into local compare variants when Gemini is useful for fragments but not good enough to choose from directly.