Skills Agentes

Image Generation

Se usa cuando el usuario pide generar, crear, imaginar o visualizar imágenes: personajes, escenas, productos o cualquier contenido visual. Admite prompts estructurados e imágenes de referencia.

Estrellas
82.8k

en todo el repo

Actividad
48

0–100, la ruta de este skill

Actualizado
hace 4 meses

último commit aquí

Commits
1

últimos 90 días

Contexto
2.5k tok

56 tok en reposo

Paquete
3 archivos

21 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add bytedance/deer-flow --skill image-generation --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests, needs API credentials.

Qué hace

  • Genera imágenes de alta calidad a partir de prompts JSON estructurados (personajes, escenas, productos) usando un script Python.
  • Admite imágenes de referencia para guiar el estilo o la composición de la generación.
  • Selecciona automáticamente el proveedor (Gemini o MiniMax) según las variables de entorno disponibles.
  • Recomienda usar la tool image_search para encontrar referencias visuales antes de generar cuando la precisión visual importa.

Úsalo cuando

  • El usuario pide generar, crear, imaginar o visualizar imágenes: personajes, escenas, productos o cualquier contenido visual.

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • “Genera una imagen de una mujer con estilo callejero de Tokio en los 90”
    • “Crea una escena de un personaje inspirado en esta foto de referencia”
    • “Hazme una imagen de producto con iluminación de estudio”

    SKILL.md

    En inglés

    Image Generation Skill

    Overview

    This skill generates high-quality images using structured prompts and a Python script. The workflow includes creating JSON-formatted prompts and executing image generation with optional reference images.

    Core Capabilities

    • Create structured JSON prompts for AIGC image generation
    • Support multiple reference images for style/composition guidance
    • Generate images through automated Python script execution
    • Handle various image generation scenarios (character design, scenes, products, etc.)

    Workflow

    Step 1: Understand Requirements

    When a user requests image generation, identify:

    • Subject/content: What should be in the image
    • Style preferences: Art style, mood, color palette
    • Technical specs: Aspect ratio, composition, lighting
    • Reference images: Any images to guide generation
    • You don't need to check the folder under /mnt/user-data

    Step 2: Create Structured Prompt

    Generate a structured JSON file in /mnt/user-data/workspace/ with naming pattern: {descriptive-name}.json

    Step 3: Execute Generation

    Call the Python script:

    python /mnt/skills/public/image-generation/scripts/generate.py \
      --prompt-file /mnt/user-data/workspace/prompt-file.json \
      --reference-images /path/to/ref1.jpg /path/to/ref2.png \
      --output-file /mnt/user-data/outputs/generated-image.jpg
      --aspect-ratio 16:9
    

    Parameters:

    • --prompt-file: Absolute path to JSON prompt file (required)
    • --reference-images: Absolute paths to reference images (optional, space-separated)
    • --output-file: Absolute path to output image file (required)
    • --aspect-ratio: Aspect ratio of the generated image (optional, default: 16:9)

    [!NOTE] Do NOT read the python file, just call it with the parameters.

    Character Generation Example

    User request: "Create a Tokyo street style woman character in 1990s"

    Create prompt file: /mnt/user-data/workspace/asian-woman.json

    {
      "characters": [{
        "gender": "female",
        "age": "mid-20s",
        "ethnicity": "Japanese",
        "body_type": "slender, elegant",
        "facial_features": "delicate features, expressive eyes, subtle makeup with emphasis on lips, long dark hair partially wet from rain",
        "clothing": "stylish trench coat, designer handbag, high heels, contemporary Tokyo street fashion",
        "accessories": "minimal jewelry, statement earrings, leather handbag",
        "era": "1990s"
      }],
      "negative_prompt": "blurry face, deformed, low quality, overly sharp digital look, oversaturated colors, artificial lighting, studio setting, posed, selfie angle",
      "style": "Leica M11 street photography aesthetic, film-like rendering, natural color palette with slight warmth, bokeh background blur, analog photography feel",
      "composition": "medium shot, rule of thirds, subject slightly off-center, environmental context of Tokyo street visible, shallow depth of field isolating subject",
      "lighting": "neon lights from signs and storefronts, wet pavement reflections, soft ambient city glow, natural street lighting, rim lighting from background neons",
      "color_palette": "muted naturalistic tones, warm skin tones, cool blue and magenta neon accents, desaturated compared to digital photography, film grain texture"
    }
    

    Execute generation:

    python /mnt/skills/public/image-generation/scripts/generate.py \
      --prompt-file /mnt/user-data/workspace/cyberpunk-hacker.json \
      --output-file /mnt/user-data/outputs/cyberpunk-hacker-01.jpg \
      --aspect-ratio 2:3
    

    With reference images:

    {
      "characters": [{
        "gender": "based on [Image 1]",
        "age": "based on [Image 1]",
        "ethnicity": "human from [Image 1] adapted to Star Wars universe",
        "body_type": "based on [Image 1]",
        "facial_features": "matching [Image 1] with slight weathered look from space travel",
        "clothing": "Star Wars style outfit - worn leather jacket with utility vest, cargo pants with tactical pouches, scuffed boots, belt with holster",
        "accessories": "blaster pistol on hip, comlink device on wrist, goggles pushed up on forehead, satchel with supplies, personal vehicle based on [Image 2]",
        "era": "Star Wars universe, post-Empire era"
      }],
      "prompt": "Character inspired by [Image 1] standing next to a vehicle inspired by [Image 2] on a bustling alien planet street in Star Wars universe aesthetic. Character wearing worn leather jacket with utility vest, cargo pants with tactical pouches, scuffed boots, belt with blaster holster. The vehicle adapted to Star Wars aesthetic with weathered metal panels, repulsor engines, desert dust covering, parked on the street. Exotic alien marketplace street with multi-level architecture, weathered metal structures, hanging market stalls with colorful awnings, alien species walking by as background characters. Twin suns casting warm golden light, atmospheric dust particles in air, moisture vaporators visible in distance. Gritty lived-in Star Wars aesthetic, practical effects look, film grain texture, cinematic composition.",
      "negative_prompt": "clean futuristic look, sterile environment, overly CGI appearance, fantasy medieval elements, Earth architecture, modern city",
      "style": "Star Wars original trilogy aesthetic, lived-in universe, practical effects inspired, cinematic film look, slightly desaturated with warm tones",
      "composition": "medium wide shot, character in foreground with alien street extending into background, environmental storytelling, rule of thirds",
      "lighting": "warm golden hour lighting from twin suns, rim lighting on character, atmospheric haze, practical light sources from market stalls",
      "color_palette": "warm sandy tones, ochre and sienna, dusty blues, weathered metals, muted earth colors with pops of alien market colors",
      "technical": {
        "aspect_ratio": "9:16",
        "quality": "high",
        "detail_level": "highly detailed with film-like texture"
      }
    }
    
    python /mnt/skills/public/image-generation/scripts/generate.py \
      --prompt-file /mnt/user-data/workspace/star-wars-scene.json \
      --reference-images /mnt/user-data/uploads/character-ref.jpg /mnt/user-data/uploads/vehicle-ref.jpg \
      --output-file /mnt/user-data/outputs/star-wars-scene-01.jpg \
      --aspect-ratio 16:9
    

    Common Scenarios

    Use different JSON schemas for different scenarios.

    Character Design:

    • Physical attributes (gender, age, ethnicity, body type)
    • Facial features and expressions
    • Clothing and accessories
    • Historical era or setting
    • Pose and context

    Scene Generation:

    • Environment description
    • Time of day, weather
    • Mood and atmosphere
    • Focal points and composition

    Product Visualization:

    • Product details and materials
    • Lighting setup
    • Background and context
    • Presentation angle

    Specific Templates

    Read the following template file only when matching the user request.

    Output Handling

    After generation:

    • Images are typically saved in /mnt/user-data/outputs/
    • Share generated images with user using present_files tool
    • Provide brief description of the generation result
    • Offer to iterate if adjustments needed

    Tips: Enhancing Generation with Reference Images

    For scenarios where visual accuracy is critical, use the image_search tool first to find reference images before generation.

    Recommended scenarios for using image_search tool:

    • Character/Portrait Generation: Search for similar poses, expressions, or styles to guide facial features and body proportions
    • Specific Objects or Products: Find reference images of real objects to ensure accurate representation
    • Architectural or Environmental Scenes: Search for location references to capture authentic details
    • Fashion and Clothing: Find style references to ensure accurate garment details and styling

    Example workflow:

    1. Call the image_search tool to find suitable reference images:
      image_search(query="Japanese woman street photography 1990s", size="Large")
      
    2. Download the returned image URLs to local files
    3. Use the downloaded images as --reference-images parameter in the generation script

    This approach significantly improves generation quality by providing the model with concrete visual guidance rather than relying solely on text descriptions.

    Providers (Gemini / MiniMax)

    This skill auto-selects the provider by environment variables (no CLI change):

    • GEMINI_API_KEY set → use Gemini (default, unchanged).
    • Only MINIMAX_API_KEY set → use MiniMax (/v1/image_generation, model image-01).
    • Force one explicitly with IMAGE_GENERATION_PROVIDER=gemini|minimax.

    MiniMax optional overrides: MINIMAX_API_HOST (default https://api.minimaxi.com), MINIMAX_IMAGE_MODEL (default image-01). Reference images are sent as the MiniMax subject_reference character image. The CLI and --prompt-file / --reference-images / --output-file / --aspect-ratio arguments are identical for both providers.

    MiniMax prompt handling (provider-internal). Authoring is provider-agnostic — write the same structured JSON regardless of which provider is active. MiniMax image-01 consumes a single text string, so the MiniMax path itself sends only the JSON prompt field (the other fields such as style / composition / negative_prompt apply to the Gemini path) and enables prompt_optimizer so MiniMax expands it server-side. MiniMax caps that prompt at 1500 characters; if the prompt field is longer, the script returns an error instead of calling the API. The Gemini path receives the full structured JSON.

    Notes

    • Always use English for prompts regardless of user's language
    • JSON format ensures structured, parsable prompts
    • Reference images enhance generation quality significantly
    • Iterative refinement is normal for optimal results
    • For character generation, include the detailed character object plus a consolidated prompt field

    Reproducido de bytedance/deer-flow bajo licencia MIT. Leer esta página en markdown.

    Archivos

    3 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Requiere GEMINI_API_KEY o MINIMAX_API_KEY configurada; los prompts siempre se escriben en inglés.

    Necesita en el PATH:python

    Variables de entorno:GEMINI_API_KEYMINIMAX_API_HOSTMINIMAX_API_KEYMINIMAX_IMAGE_MODEL

    Detalles

    Creador
    bytedance
    Categoría
    Diseño y UI
    Licencia
    MIT
    Recursos incluidos
    scripts en python
    Código fuente
    Ver SKILL.md

    Etiquetas

    Más de bytedance/deer-flow

    Este repo incluye 27 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack deer-flow entero y su comando de instalación

    Evalúa y ejecuta cambios de sistema no triviales desde primeros principios: RFCs, features, refactors, migraciones o nuevas APIs, exigiendo consumidores concretos, la solución mínima suficiente y evidencia proporcional al riesgo.

    Costo de contexto al activarse
    2.5k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    herramientas desarrollo

    Revisa paquetes de skills de DeerFlow: preparación para publicar, triggers, límites de seguridad, recursos y evidencia. Úsala cuando pidan auditar, calificar o validar para producción una skill.

    Costo de contexto al activarse
    1.4k tok
    Tamaño del paquete
    13 archivos
    Última actualización
    hace 3 meses
    herramientas desarrollo

    Crea skills nuevas, modifica y mejora skills existentes, y mide su rendimiento. Úsala para crear una skill, editarla, correr evals, hacer benchmark con análisis de varianza, u optimizar su descripción.

    Costo de contexto al activarse
    9.2k tok
    Tamaño del paquete
    20 archivos
    Última actualización
    hace 3 meses
    herramientas desarrollo

    Skill de smoke test de extremo a extremo para DeerFlow: actualiza el código, despliega en local o Docker, verifica disponibilidad de servicios, hace health check y genera el reporte final.

    Costo de contexto al activarse
    2.5k tok
    Tamaño del paquete
    12 archivos
    Última actualización
    hace 3 meses
    testing qa

    Manejo de issues y PRs de GitHub solo por comentarios para mantenedores de DeerFlow: resuelve alcance con gh, analiza, publica o redacta comentarios de issues y revisiones de PR, y compara PRs en competencia.

    Costo de contexto al activarse
    5.4k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    herramientas desarrollo

    Asegura que el código async del backend que podría bloquear el event loop de asyncio quede protegido por un test 'anchor' verificado en tests/blocking_io/, mediante un escaneo determinista de cambios o de todo el repo.

    Costo de contexto al activarse
    1.7k tok
    Tamaño del paquete
    4 archivos
    Última actualización
    hace 3 meses
    testing qa

    Skills relacionados

    Crea interfaces frontend distintivas y de calidad de producción: webs, landing pages, dashboards, componentes React o layouts HTML/CSS. Genera código creativo y pulido que evita la estética genérica de IA.

    Costo de contexto al activarse
    1.9k tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 8 meses
    diseno ui

    Se usa cuando el usuario pide generar, crear, componer o producir música o canciones: música de fondo, temas, jingles o pistas instrumentales, a partir de un prompt de estilo/ánimo.

    Costo de contexto al activarse
    719 tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 4 meses
    diseno ui

    Revisa código de interfaz según las Web Interface Guidelines de Vercel: descarga las reglas más recientes y compara el código frente a ellas. Úsalo para revisar UI, accesibilidad, diseño o UX.

    Costo de contexto al activarse
    308 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 8 meses
    diseno ui