Brand Image Generator
Translates machine-readable DESIGN.md tokens and brand_dna.json attributes into cinematic, style-adherent image generation prompts, and coordinates AI image generation to produce visual assets matching a brand's exact design language.
When to Use This Skill
- Generating marketing imagery, hero banners, UI mockups, lifestyle photography, or brand icons that must strictly adhere to an extracted
DESIGN.mdspecification. - Translating color tokens (
primary,background,surface), typography classifications, and elevation rules into physical lighting, composition, and material cues. - Formulating generation prompts for multimodal models like Gemini Nano Banana (
gemini-3.1-flash-image), Imagen 3, Midjourney, or FLUX. - Ensuring brand consistency across multiple generative assets without stylistic drift.
Progressive Disclosure & Reference Architecture
- Prompt Crafting Guide: Read
references/PROMPT_CRAFTING_GUIDE.mdfor techniques translating abstract design tokens (hex palettes, corner radius, drop shadow formulas) into camera, lighting, and texture prompts. - Prompt Recipes: Check
assets/prompt_recipes.jsonfor tested prompt scaffolds across 4 primary asset categories (Hero visual, UI mockup, lifestyle product, brand icon). - Prompt Formatting Script: Run
scripts/format_image_prompt.pyto automatically parse aDESIGN.mdfile and emit an optimized generation prompt.
Procedural Workflow
Step 1: Ingest Design System Tokens
Locate the target DESIGN.md and optional brand_dna.json generated by brand-extractor.
Extract the key token anchors:
- Palette: Primary brand color, canvas background, surface color, and accent colors.
- Typography Classification: Neo-Grotesque Sans-serif, Serif, Monospace, Geometric.
- Elevation & Depth: Ambient shadows, diffuse lighting, flat vs layered surfaces.
- Shapes: Corner radius (sharp, rounded 16px, pill-shaped 9999px).
- Aesthetic Tone: Emotional adjectives (e.g. "minimalist", "kinetic", "editorial luxury").
Step 2: Format Optimized Generation Prompt
Execute scripts/format_image_prompt.py with your desired asset archetype:
# Generate a hero banner promptscripts/format_image_prompt.py --design ./brand-output/DESIGN.md --dna ./brand-output/brand_dna.json --type hero --hint "Modern developer platform dashboard interface"
# Generate a brand motif / app icon promptscripts/format_image_prompt.py --design ./brand-output/DESIGN.md --type icon --hint "Cloud telemetry monitoring shield"Supported asset types:
hero: Wide-aspect hero header or editorial key visual.ui: High-fidelity digital UI mockup or feature card preview.lifestyle: Physical product context, workspace environment, or editorial photography.icon: Tactile 3D or flat vector brand motif / application icon.
Step 3: Execute Image Generation
Pass the generated prompt to the available image generation tool or API:
- Gemini / Nano Banana: Use
generate_imageor call Gemini API (gemini-3.1-flash-imagewithResponseModalities: ["IMAGE"]). - Aspect Ratios:
hero:16:9or3:2ui:16:9or4:3icon:1:1lifestyle:16:9or1:1
Step 4: Quality & Brand Adherence Check
Review generated assets against the source DESIGN.md:
- Palette Fidelity: Does the primary color match the exact hex tone (
#1D54D8, etc.) rather than a generic hue? - Lighting & Elevation: Does the shadow treatment reflect the soft ambient diffusion specified in the design tokens?
- Corner Treatment: Are UI corners rounded or pill-shaped in accordance with the
roundedtoken? - Negative Filtering: Ensure absence of visual clutter, conflicting gradients, or unrelated aesthetic styles.