image-generation

Generate images from structured JSON prompts and reference images via Python scripts.

5|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/Hadokennn/deer-agents --skill image-generation-hadokennn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generation
Source: https://github.com/Hadokennn/deer-agents/tree/main/deer-flow/skills/public/image-generation
Command: npx skills add https://github.com/Hadokennn/deer-agents --skill image-generation-hadokennn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires base64, requests, PIL, os, and includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the problem of manually creating and generating images. It provides a platform to generate high-quality images based on structured prompts and optional reference images.

Core Features & Use Cases

  • Structured Prompts: Create JSON-formatted prompts for image generation, allowing precise control over the subject, style, and technical specifications.
  • Reference Images: Utilize reference images for style and composition guidance, enhancing the quality and accuracy of the generated images.
  • Python Script Execution: Automate the image generation process using a Python script, with support for various scenarios such as character design, scenes, and product visualization.

Quick Start

Run the following command to generate an image with the provided prompt file, reference images, and output file:

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

Frequently Asked Questions about image-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images using structured prompts and reference images?

To generate images using structured prompts and reference images, provide a JSON-formatted prompt file and optional reference image paths to the Python script, specifying the output path and aspect ratio for the final generated image.

What is a structured JSON prompt for image generation?

A structured JSON prompt for image generation is a formatted text file that allows precise control over the subject, style, and technical specifications of the resulting image, ensuring high-quality and customizable outputs.

Can I use reference images to guide the style of generated images?

Yes, you can use reference images to guide the style and composition of generated images by passing their file paths as arguments to the Python script during the image generation process.

How do I automate image generation with a Python script?

You automate image generation with a Python script by executing the generate.py file with command-line arguments for the prompt file, reference images, output file destination, and desired aspect ratio.

Do I need specific Python libraries for AIGC image generation?

Yes, AIGC image generation with this script requires specific Python libraries including base64, requests, PIL, and os to handle image processing, encoding, and file system operations.

What are the limitations of using JSON prompts for image generation?

The limitations of using JSON prompts for image generation include the requirement to strictly format your inputs into JSON structures, which may add overhead for simple tasks compared to unstructured text prompts.