This skill generates high-quality hand-drawn or standard images from user prompts, with smart prompt optimization and auto-save features.
npx playbooks add skill qwenlm/qwen-code-examples --skill image-generate
This skill allows agents to automatically generate high-quality images (defaulting to hand-drawn style) based on user intent.
Before using this skill, ensure that the DASHSCOPE_API_KEY environment variable is set:
export DASHSCOPE_API_KEY="Your API Key"
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.
Use the following command to call the generation script:
node skills/image-generate/scripts/generate_image.js "Your detailed prompt"
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).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."Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.