Skip to content

AI image generation across OpenAI, Google, DashScope, and Canghe providers with reference image support.

CCM score
60 of 100
skills.sh installs
606
GitHub stars
477
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers text-to-image generation, reference-image edits, aspect ratio control, and quality presets from 1K to 2K
  • Includes a main.ts script run through npx -y bun, with options for prompt files, batch counts, and JSON output
  • Enforces sequential generation by default, with parallel subagent runs of 4 to 8 only when the user explicitly asks
  • Designed for agents handling requests to generate, create, or draw images, with defaults set through EXTEND.md

Install

$ npx -y skills add freestylefly/canghe-skills --skill canghe-image-gen -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Image Generation (AI SDK)

Official API-based image generation. Supports OpenAI, Google, DashScope (阿里通义万象), and Canghe providers.

Script Directory

Agent Execution:

  1. SKILL_DIR = this SKILL.md file's directory
  2. Script path = ${SKILL_DIR}/scripts/main.ts

Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

# Check project-level first
test -f .canghe-skills/canghe-image-gen/EXTEND.md && echo "project"

# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.canghe-skills/canghe-image-gen/EXTEND.md" && echo "user"

┌──────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├──────────────────────────────────────────────────┼───────────────────┤ │ .canghe-skills/canghe-image-gen/EXTEND.md │ Project directory │ ├──────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.canghe-skills/canghe-image-gen/EXTEND.md │ User home │ └──────────────────────────────────────────────────┴───────────────────┘

Details

Repository
github.com/freestylefly/canghe-skills
Category
AI Image, Video & Voice
First seen
Jun 3, 2026

Questions

What does the canghe-image-gen skill do?

canghe-image-gen generates images from text prompts through OpenAI, Google, DashScope and Canghe APIs. It also supports reference images and aspect ratios such as 16:9 and 1:1, and it generates one image at a time unless parallel generation is requested.

How do I install canghe-image-gen?

Run npx -y skills add freestylefly/canghe-skills --skill canghe-image-gen -y in your project to install it. After that, canghe-image-gen lets the agent create images when you ask it to generate, create or draw them.

What does canghe-image-gen need to run?

canghe-image-gen needs a Node.js environment that can run npx bun, plus an API key for at least one provider such as OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY or CANGHE_API_KEY. Without one of these keys, the script shows setup instructions instead of generating images.

Which skills does canghe-image-gen sit beside in its category?

canghe-image-gen sits in the AI Image, Video & Voice category, which is led by ai-video-generation, ai-image-generation, ai-avatar-video, media-use and kling-3-0. Its own focus is still-image generation through several providers with optional reference images.

More from freestylefly/canghe-skills

All 18

Similar to Canghe Image Gen

More AI Image, Video & Voice