image-generation

Image Generation Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-generation" with this command: npx skills add qwenlm/qwen-code-examples/qwenlm-qwen-code-examples-image-generation

Image Generation Skill

This skill allows agents to automatically generate high-quality images (defaulting to hand-drawn style) based on user intent.

Core Features

  • Smart Prompt Optimization: Transforms simple user intent into detailed hand-drawn style prompts.

  • Fast Generation: Uses non-streaming interfaces to significantly speed up image generation.

  • Auto-Save: Automatically downloads generated images locally and saves metadata and API responses simultaneously.

Prerequisites

Before using this skill, ensure that the DASHSCOPE_API_KEY environment variable is set:

export DASHSCOPE_API_KEY="Your API Key"

User Guide

  1. Refine the Prompt

You need to refine the user's original intent into a prompt suitable for image generation. For hand-drawn versions of architecture or flowcharts, it's recommended to include keywords like "hand-drawn", "sketch", "architectural drawing", etc.

  1. Run the Script

Use the following command to call the generation script:

node skills/image-generate/scripts/generate_image.js "Your detailed prompt"

  1. View Results

After the script completes, it will generate the following files in the current directory:

  • image_YYYY-MM-DDTHH-mm-ss.png : The generated image file.

  • metadata_YYYY-MM-DDTHH-mm-ss.json : Metadata including prompt, file size, and duration.

  • response_YYYY-MM-DDTHH-mm-ss.json : Raw API response data (for debugging).

Example

User Intent: "Help me draw an architecture diagram of an AI coding assistant."

Recommended Prompt: "A detailed hand-drawn architectural diagram of an AI coding assistant, showing the interaction between the user, the IDE, and the LLM, technical sketch style, clean lines, white background."

Execution Command:

node skills/image-generate/scripts/generate_image.js "A detailed hand-drawn architectural diagram of an AI coding assistant, showing the interaction between the user, the IDE, and the LLM, technical sketch style, clean lines, white background."

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

youtube transcript extractor

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

auto-pr

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

dashboard-builder

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Pixshop Creative API — Developer REST Endpoints

Pixshop 开发者 REST API — 图片生成/编辑、视频制作、提示词库、应用市场、社区 / Pixshop Developer REST API — image generation/editing, video, prompts, apps, community endpoints. Use when...

Registry SourceRecently Updated
1320Profile unavailable