Skip to main content
skill CX Codex

canghe-image-gen — Claude Code skill: what it does, how to install

Generates AI images via OpenAI, Google, DashScope, and Canghe APIs. Handles text prompts, aspect ratios, and reference files right inside coding agents.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a claude-code
Open on GitHub

What canghe-image-gen does

The skill executes a TypeScript script through Bun to invoke upstream image generation endpoints. Google acts as the default provider, but you can explicitly route requests to OpenAI, DashScope, or the Canghe gateway. It accepts prompt strings, reads concatenated markdown prompt files, and maps ratios such as 16:9 or 1:1.

You must provide at least one valid provider API key in your environment or a .env file before running jobs. The runner creates images sequentially by default to keep output predictable. Parallel execution runs via background subagents only when explicitly requested, with concurrency recommended at 4 and capped at 8. Project-level defaults can be pinned in an EXTEND.md config file.

What it helps with

  • generate illustrations from text prompts inside coding agents
  • edit images using reference files through multimodal models
  • compose complex prompts from multiple local text files
  • enforce target aspect ratios and resolution presets

Example prompts for the agent

  • Generate a cat illustration and save it to cat.png with a 16:9 aspect ratio
  • Edit source.png to have a blue background using Google API and save to out.png
  • Create an image from prompt files system.md and content.md with 2k quality

How to install canghe-image-gen

1Skills CLI (Vercel)

npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a claude-code

2Manually: put the files in place

~/.claude/skills/canghe-image-gen/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/canghe-image-gen/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about canghe-image-gen

How to install canghe-image-gen in Claude Code?

Run npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a claude-code. The skill definition will be added to ~/.claude/skills/canghe-image-gen/SKILL.md.

What does canghe-image-gen do?

It coordinates AI image generation across Google, OpenAI, DashScope, and Canghe. You can generate assets from text, transform them with reference inputs, and configure dimensions.

Which API keys are required?

You need a key for the provider you want to use: GOOGLE_API_KEY, OPENAI_API_KEY, DASHSCOPE_API_KEY, or CANGHE_API_KEY. If multiple keys are set, Google is selected by default.

Similar skills

Everything for AI and ML →

From the same set8

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor