ai-portrait-generator

12
3
Source

Generate ultra-photorealistic portraits using structured JSON prompts. Use when creating AI-generated portraits, character art, or realistic human images with cinematic quality and detailed specifications.

Install

mkdir -p .claude/skills/ai-portrait-generator && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3963" && unzip -o skill.zip -d .claude/skills/ai-portrait-generator && rm skill.zip

Installs to .claude/skills/ai-portrait-generator

About this skill

AI Portrait Generator

Generate ultra-photorealistic portraits using structured JSON prompt templates. Based on the professional prompt framework from @lexx_aura, optimized for high-quality AI image generation with Nano Banana Pro and similar models.

When to Use This Skill

  • Creating realistic portraits for social media avatars
  • Generating character art for games or stories
  • Producing marketing materials with professional-quality imagery
  • Building concept art with precise visual specifications
  • Creating cinematic-quality portraits with specific lighting and atmosphere

Core Capabilities

1. Structured Prompt Templates

  • JSON-based configuration for precise control
  • Modular sections: configuration, subject, apparel, pose, environment, lighting
  • Professional photography terminology integration
  • Cinematic and ultra-photorealistic style options

2. Multi-Dimensional Customization

  • Subject demographics and physical attributes
  • Detailed hair, skin texture, and facial expressions
  • Apparel: outfit styles, accessories, materials
  • Pose and action: perspective, movement, reflections
  • Environment: location, background elements, atmosphere
  • Lighting: type, quality, mood, atmosphere

3. Technical Specifications

  • Camera settings (lens type, aperture)
  • Focus and depth of field
  • Rendering engine details (Unreal Engine 5, Octane Render)
  • Advanced effects (ray tracing, volumetric lighting, subsurface scattering)

Quick Start

Basic Portrait Template

{
  "prompt_configuration": {
    "type": "Ultra Photorealistic Portrait",
    "style": "Cinematic Reality",
    "resolution": "8K"
  },
  "subject": {
    "demographics": "Your description here (e.g., 'Young woman, athletic build')",
    "hair": "Hair description (color, style, texture)",
    "skin_texture": "Skin details (tone, texture, complexion)",
    "facial_expression": "Expression description"
  },
  "apparel": {
    "outfit_style": "Overall style (e.g., 'Casual athleisure')",
    "top": "Top description",
    "bottoms": "Bottoms description",
    "accessories": "Accessories description"
  },
  "pose_and_action": {
    "perspective": "View angle (e.g., 'Three-quarter side profile')",
    "action": "What the subject is doing",
    "reflection": "Any reflections (optional)"
  },
  "environment": {
    "location": "Setting location",
    "background_elements": "Background details",
    "flooring": "Floor description"
  },
  "lighting_and_atmosphere": {
    "lighting_type": "Lighting source",
    "quality": "Light quality and color tone",
    "mood": "Overall mood and atmosphere"
  },
  "technical_specifications": {
    "camera": "Camera type and lens",
    "aperture": "Aperture setting (e.g., 'f/2.8')",
    "focus": "Focus description",
    "render_details": "Rendering engine and effects"
  }
}

Example: Gym Portrait

{
  "prompt_configuration": {
    "type": "Ultra Photorealistic Portrait",
    "style": "Cinematic Reality",
    "resolution": "8K"
  },
  "subject": {
    "demographics": "Young woman, athletic build, fit physique",
    "hair": "Dark brown hair, pulled back into a messy high ponytail, loose strands framing face",
    "skin_texture": "Hyper-realistic skin details, post-workout sheen, glistening with sweat, visible pores",
    "facial_expression": "Exhaling slightly, mouth slightly open, focused gaze, tired but accomplished"
  },
  "apparel": {
    "outfit_style": "Monochromatic pastel pink gym set, athleisure",
    "top": "Tight cropped pink camisole with spaghetti straps",
    "bottoms": "Loose-fitting pink sweatpants with visible drawstring",
    "accessories": "Thin silver necklace"
  },
  "pose_and_action": {
    "perspective": "Three-quarter side profile view facing left",
    "action": "Body checking in a gym mirror, left hand pressing against mirror, right hand lifting shirt hem",
    "reflection": "Partial reflection of arm visible in mirror"
  },
  "environment": {
    "location": "Commercial gym interior",
    "background_elements": "Blurred gym equipment, weight racks, cable machines, dumbbells",
    "flooring": "Black speckled rubber gym flooring"
  },
  "lighting_and_atmosphere": {
    "lighting_type": "Overhead artificial gym lighting",
    "quality": "Warm tungsten tones, creating strong specular highlights on sweaty skin",
    "mood": "Intense, raw, fitness-focused, candid moment"
  },
  "technical_specifications": {
    "camera": "DSLR, 85mm portrait lens",
    "aperture": "f/2.8",
    "focus": "Sharp focus on face and abs, creamy bokeh background",
    "render_details": "Unreal Engine 5, Octane Render, ray tracing, subsurface scattering, volumetric lighting"
  }
}

Common Portrait Styles

Professional Headshot

{
  "prompt_configuration": {
    "type": "Ultra Photorealistic Portrait",
    "style": "Professional Studio",
    "resolution": "8K"
  },
  "subject": {
    "demographics": "Professional executive, confident expression",
    "facial_expression": "Warm, approachable, confident smile",
    "lighting": "Studio portrait lighting"
  },
  "apparel": {
    "outfit_style": "Business formal",
    "top": "Crisp white shirt or professional blouse",
    "accessories": "Minimal, professional"
  },
  "environment": {
    "location": "Professional studio with neutral background",
    "background_elements": "Subtle gradient backdrop",
    "lighting_and_atmosphere": {
      "lighting_type": "Softbox studio lighting",
      "quality": "Clean, even illumination",
      "mood": "Professional, trustworthy, approachable"
    }
  }
}

Casual Lifestyle

{
  "prompt_configuration": {
    "type": "Ultra Photorealistic Portrait",
    "style": "Natural Light Lifestyle",
    "resolution": "8K"
  },
  "environment": {
    "location": "Outdoor park or café setting",
    "lighting_and_atmosphere": {
      "lighting_type": "Natural golden hour sunlight",
      "quality": "Warm, soft, directional light",
      "mood": "Relaxed, natural, authentic"
    }
  }
}

Cinematic Dramatic

{
  "prompt_configuration": {
    "type": "Ultra Photorealistic Portrait",
    "style": "Cinematic Film Noir",
    "resolution": "8K"
  },
  "lighting_and_atmosphere": {
    "lighting_type": "Low-key dramatic lighting",
    "quality": "High contrast, deep shadows",
    "mood": "Dramatic, mysterious, cinematic"
  },
  "technical_specifications": {
    "camera": "DSLR, 50mm lens",
    "aperture": "f/1.4",
    "render_details": "Film grain, vignette, cinematic color grading"
  }
}

Best Practices

1. Be Specific

Use detailed descriptions instead of generic terms:

  • ✅ "Dark brown hair, pulled back into a messy high ponytail"
  • ❌ "Brown hair"

2. Include Texture Details

Add texture information for realism:

  • ✅ "Hyper-realistic skin details, visible pores, slight flush on cheeks"
  • ❌ "Smooth skin"

3. Specify Lighting

Describe lighting quality and effects:

  • ✅ "Warm tungsten tones, creating strong specular highlights on skin"
  • ❌ "Good lighting"

4. Camera Knowledge

Use photography terminology:

  • Aperture: f/1.4 (shallow depth of field), f/8 (deep focus)
  • Lens: 85mm (portrait), 50mm (standard), 35mm (wide)
  • Focus: "Sharp focus on subject's face, creamy bokeh background"

5. Atmosphere and Mood

Define the emotional tone:

  • ✅ "Intense, raw, fitness-focused, candid moment"
  • ✅ "Professional, trustworthy, approachable"
  • ❌ "Good vibe"

Advanced Techniques

Combining Styles

Mix elements from different styles:

  • Take lighting from "Cinematic Dramatic"
  • Use environment from "Casual Lifestyle"
  • Apply technical specs from "Professional Headshot"

Seasonal Variations

Adjust lighting and atmosphere:

  • Winter: "Cool blue tones, soft diffused overcast light"
  • Summer: "Warm golden hour, strong shadows"
  • Autumn: "Rich warm tones, golden foliage"
  • Spring: "Fresh green tones, soft diffuse light"

Age and Demographics

Tailor descriptions to target audience:

  • Young adults: "Fresh, energetic, contemporary"
  • Professionals: "Polished, confident, sophisticated"
  • Elders: "Distinguished, wise, warm"

Tips for Better Results

  1. Start with a template: Use the provided examples as a foundation
  2. Iterate and refine: Generate multiple versions with slight variations
  3. Test different AI models: Results vary across different image generation tools
  4. Use high resolution: 8K resolution provides best quality
  5. Focus on details: Small details make portraits more realistic

Integration with AI Tools

Nano Banana Pro

This prompt format is optimized for Google's Nano Banana Pro image generation engine, offering superior detail, realism, and style variety.

Other Compatible Tools

  • Midjourney (convert JSON to natural language)
  • DALL-E 3 (use as structured prompt)
  • Stable Diffusion (use ControlNet for pose control)

Troubleshooting

Issue: Generated image doesn't match description

Solution: Break down complex descriptions into simpler terms, focus on key visual elements

Issue: Too much detail, image looks cluttered

Solution: Reduce environmental elements, simplify background descriptions

Issue: Lighting looks flat

Solution: Add specific light source details (e.g., "warm tungsten", "cool blue rim light")

Issue: Face doesn't match expression

Solution: Use more specific facial cues (e.g., "corner of mouth slightly raised", "eyebrows slightly furrowed")

Examples in Action

See the original Twitter post by @lexx_aura for a working example: https://x.com/lexx_aura/status/2016947883807850906

This template generated high-quality ultra-photorealistic portraits using the JSON structure above.


Generated from @lexx_aura's ultra-photorealistic portrait template Twitter: 877 likes, 56 retweets, 544 bookmarks Last updated: 2026-01-30

seedream-image-gen

openclaw

Generate images via Seedream API (doubao-seedream models). Synchronous generation.

2259

ffmpeg-cli

openclaw

Comprehensive video/audio processing with FFmpeg. Use for: (1) Video transcoding and format conversion, (2) Cutting and merging clips, (3) Audio extraction and manipulation, (4) Thumbnail and GIF generation, (5) Resolution scaling and quality adjustment, (6) Adding subtitles or watermarks, (7) Speed adjustment (slow/fast motion), (8) Color correction and filters.

6623

context-optimizer

openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat.

3622

a-stock-analysis

openclaw

A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。

9121

himalaya

openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

7921

garmin-connect

openclaw

Syncs daily health and fitness data from Garmin Connect into markdown files. Provides sleep, activity, heart rate, stress, body battery, HRV, SpO2, and weight data.

7321

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

642969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

590705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318398

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.