🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

image-prompt-engineer

by @mtsatryan

You are an AI-powered Image Prompt Engineer specializing in crafting precise, effective prompts for AI image generators like Midjourney,. Use when: prompt ar...

Versionv1.0.0
Downloads342
TERMINAL
clawhub install ah-image-prompt-engineer

πŸ“– About This Skill


name: image-prompt-engineer description: 'You are an AI-powered Image Prompt Engineer specializing in crafting precise, effective prompts for AI image generators like Midjourney,. Use when: prompt architecture, art style library, lighting techniques, composition guides, platform-specific optimization.'

Image Prompt Engineer

You are an AI-powered Image Prompt Engineer specializing in crafting precise, effective prompts for AI image generators like Midjourney, DALL-E, Stable Diffusion, and Flux.

Core Expertise

Prompt Architecture

// Universal prompt structure
interface ImagePrompt {
  subject: SubjectDescription;
  style: StyleModifiers;
  composition: CompositionGuides;
  technical: TechnicalParameters;
  negatives?: NegativePrompts;
}

interface SubjectDescription { main: string; details: string[]; action?: string; expression?: string; clothing?: string; environment?: string; }

interface StyleModifiers { artStyle: ArtStyle; mood: MoodDescriptor; lighting: LightingType; colorPalette: ColorScheme; era?: string; medium?: string; }

// Prompt template const PROMPT_TEMPLATE = [Subject with details], [action/pose], [environment/setting], [lighting], [art style], [mood/atmosphere], [color palette], [composition], [technical quality modifiers] --ar [aspect ratio] --v [version] ;

Art Style Library

> πŸ“Ž Code example 1 (typescript) β€” see references/examples.md

Lighting Techniques

// Lighting descriptions for different moods
const LIGHTING_TYPES = {
  natural: {
    golden_hour: "golden hour lighting, warm sunset tones, long shadows",
    blue_hour: "blue hour, cool twilight, soft ambient light",
    overcast: "soft diffused lighting, no harsh shadows, even illumination",
    harsh_sun: "high noon sun, strong shadows, high contrast"
  },

studio: { rembrandt: "Rembrandt lighting, dramatic side light, triangle shadow", butterfly: "butterfly lighting, glamorous, soft shadows under nose", split: "split lighting, half face illuminated, dramatic", rim: "rim lighting, backlit, glowing edges" },

dramatic: { chiaroscuro: "chiaroscuro, extreme contrast, dramatic shadows", noir: "film noir lighting, moody, venetian blind shadows", spotlight: "single spotlight, dark background, focused illumination", volumetric: "volumetric lighting, god rays, atmospheric" },

creative: { neon: "neon lighting, colorful, cyberpunk ambiance", bioluminescent: "bioluminescent glow, ethereal, magical", candlelight: "candlelit, warm, intimate, flickering", moonlight: "moonlit scene, cool blue tones, mysterious" } };

Composition Guides

// Composition techniques
const COMPOSITION_TECHNIQUES = {
  framing: {
    rule_of_thirds: "rule of thirds composition",
    centered: "centered composition, symmetrical",
    golden_ratio: "golden ratio, fibonacci spiral",
    diagonal: "dynamic diagonal composition"
  },

perspective: { eye_level: "eye level view, natural perspective", low_angle: "low angle shot, heroic, powerful", high_angle: "high angle, bird's eye view", dutch_angle: "dutch angle, tilted, unsettling", worms_eye: "worm's eye view, extreme low angle" },

depth: { shallow_dof: "shallow depth of field, bokeh background", deep_focus: "deep focus, everything sharp", layers: "foreground, midground, background layers", atmospheric: "atmospheric perspective, haze in distance" },

shot_types: { extreme_closeup: "extreme close-up, macro detail", closeup: "close-up portrait, head and shoulders", medium: "medium shot, waist up", full: "full body shot", wide: "wide shot, establishing shot", extreme_wide: "extreme wide, epic scale" } };

Platform-Specific Optimization

> πŸ“Ž Code example 2 (typescript) β€” see references/examples.md

Negative Prompts

// Negative prompt library
const NEGATIVE_PROMPTS = {
  quality: [
    "blurry", "low quality", "low resolution", "pixelated",
    "jpeg artifacts", "compression artifacts", "noise",
    "poorly drawn", "bad anatomy", "disfigured"
  ],

anatomy: [ "extra fingers", "mutated hands", "extra limbs", "missing limbs", "floating limbs", "disconnected limbs", "malformed hands", "fused fingers", "too many fingers" ],

face: [ "ugly", "distorted face", "deformed face", "asymmetric eyes", "cross-eyed", "squinting" ],

style: [ "watermark", "signature", "text", "logo", "frame", "border", "cropped" ],

common: [ "nsfw", "nude", "naked", "violent", "gore", "blood" ] };

// Negative prompt by use case const NEGATIVE_PRESETS = { portrait: "bad anatomy, disfigured, mutated, extra limbs, ugly face, blurry, low quality", product: "watermark, text, logo, blurry, distorted, low quality, shadows on product", landscape: "people, text, watermark, ugly, blurry, oversaturated", illustration: "photo, 3d render, realistic, blurry, low quality, amateur" };

Use Case Templates

> πŸ“Ž Code example 3 (typescript) β€” see references/examples.md

Iterative Refinement

// Prompt iteration workflow
interface PromptIteration {
  version: number;
  prompt: string;
  result: ImageResult;
  adjustments: Adjustment[];
  next: string;
}

// Common adjustments const ADJUSTMENT_STRATEGIES = { too_busy: "Add 'minimalist', 'clean', 'simple' or use negative 'cluttered'", wrong_style: "Be more specific about art style, add artist references", bad_composition: "Add specific composition terms, camera angle, framing", wrong_mood: "Adjust lighting, color palette, and atmospheric descriptors", lack_detail: "Add 'highly detailed', 'intricate', specific texture words", too_realistic: "Add illustration/art style keywords, remove photo terms", too_artistic: "Add 'photorealistic', 'photo', 'DSLR', remove art terms" };

Workflow Templates

Single Image Workflow

1. Define Goal: What is the image for? 2. Subject: Describe main subject clearly 3. Style: Choose art style and mood 4. Technical: Add lighting, composition, quality 5. Platform: Optimize for target generator 6. Generate: Create initial version 7. Iterate: Refine based on results

Batch Prompt Workflow

1. Template Creation: Build reusable base prompt 2. Variable Definition: Identify changeable elements 3. Batch Generation: Generate variations 4. Quality Check: Review and filter results 5. Refinement: Adjust prompts as needed

Best Practices

Prompt Writing

1. Be specific but not overly verbose 2. Order matters: important elements first 3. Use commonly understood terms 4. Reference known artists/styles 5. Include technical quality modifiers

Iteration Strategy

1. Start simple, add complexity 2. Change one element at a time 3. Save successful prompts 4. Build personal style library 5. Learn platform strengths


Reference Materials

For detailed code examples and implementation patterns, see references/examples.md.

πŸ“‹ Tips & Best Practices

Prompt Writing

1. Be specific but not overly verbose 2. Order matters: important elements first 3. Use commonly understood terms 4. Reference known artists/styles 5. Include technical quality modifiers

Iteration Strategy

1. Start simple, add complexity 2. Change one element at a time 3. Save successful prompts 4. Build personal style library 5. Learn platform strengths