Agent skill

Canghe Image Gen

by freestylefly in freestylefly/canghe-skills

AI image generation with OpenAI, Google, DashScope and Canghe APIs.

No licenceAuto-check: notesMedia & Creative

Install Canghe Image Gen

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

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install freestylefly/canghe-skills canghe-image-gen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/freestylefly/canghe-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/canghe-image-gen .claude/skills/canghe-image-gen && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
canghe-image-gen
GitHub stars
461
Token cost
~1.8k tokens
SKILL.md length
468 words
Files
8 (incl. scripts, references)
Skills in repo
19
Repo updated
First seen
Licence
None found

At a glance

AI image generation with OpenAI, Google, DashScope and Canghe APIs.

  • Works in 2 steps: SKILL_DIR = this SKILL.md file's directory → Script path = ${SKILL_DIR}/scripts/main.ts
  • User asks to generate
  • SKILL.md covers Script Directory, Preferences (EXTEND.md), Usage and Options, plus 7 more sections
  • Runs TypeScript scripts from its folder; calls npx; reaches api.canghe.ai; needs OPENAI_API_KEY and GOOGLE_API_KEY

What it does

Canghe Image Gen is an agent skill from freestylefly/canghe-skills. AI image generation with OpenAI, Google, DashScope and Canghe APIs. Supports text-to-image, reference images, aspect ratios. Sequential by default; parallel generation available on request. Use when user asks to generate, create, or draw images.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts and reference files (for example `references/config/preferences-schema.md`, `scripts/main.ts` and `scripts/providers/canghe.ts`).

It sits in Media & Creative, covering Image generation. It works with OpenAI. The repository describes itself as: 苍何的技能skills仓库,搜集好用的 skills,辅助提效.

When your agent uses it

  • User asks to generate
  • Tasks that involve Image generation

Example prompts

  • “/canghe-image-gen”

Requirements

  • Node.js
  • A credential in OPENAI_API_KEY
  • A credential in GOOGLE_API_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit dd0bf35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (TypeScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.canghe.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY
    • GOOGLE_API_KEY
    • DASHSCOPE_API_KEY
    • CANGHE_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Canghe Image Gen loads about 1.8k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 468 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:113
    ND.md > env vars > `<cwd>/.canghe-skills/.env` > `~/.canghe-skills/.env`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 468 words (~1,806 tokens).

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

— opening of SKILL.md by freestylefly
name
canghe-image-gen

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (scripts, references) in skills/canghe-image-gen of freestylefly/canghe-skills.

  • SKILL.md
  • references/config/preferences-schema.md
  • scripts/main.ts
  • scripts/providers/canghe.ts
  • scripts/providers/dashscope.ts
  • scripts/providers/google.ts
  • scripts/providers/openai.ts
  • scripts/types.ts

Open the folder on GitHubat commit dd0bf35

Compare with similar skills

Canghe Image Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Canghe Image Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Canghe Image Gen this skillfreestylefly/canghe-skills461—~1.8kAutomated safety check: NotesNone
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
Imagegentheowenyoung/home1154 repos~4.8kAutomated safety check: PassApache-2.0
Openai Image Gentrpc-group/trpc-agent-go1.9k12 repos~843Automated safety check: PassApache-2.0
Image Generationonyx-dot-app/onyx32k1 repos~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 9 days ago
    Media & CreativeAuto-check: notes
  • Imagegen

    theowenyoung/home

    Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.

    115 GitHub starsUsed in 4 repos~4.8k tokens
    Media & CreativeAuto-check passed
  • Openai Image Gen

    trpc-group/trpc-agent-go

    Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 12 repos~843 tokens
    Media & CreativeAuto-check passed
  • Image Generation

    onyx-dot-app/onyx

    Generate or edit raster images (photos, illustrations, textures, sprites, mockups, logos, infographics) using the workspace's configured image-generation provider via onyx-cli image.

    32k GitHub starsUsed in 1 repo~1.7k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed

More from freestylefly/canghe-skills

All 19 skills in this repo
  • Canghe Comic

    freestylefly/canghe-skills

    Knowledge comic creator supporting multiple art styles and tones.

    461 GitHub starsUsed in 8 repos~3.2k tokens
    Auto-check passed
  • Canghe Post To Wechat

    freestylefly/canghe-skills

    Posts content to WeChat Official Account (微信公众号) via API or Chrome CDP.

    461 GitHub starsUsed in 3 repos~3.4k tokens
    Auto-check: notes
  • Canghe Post To X

    freestylefly/canghe-skills

    Posts content and articles to X (Twitter). An agent skill from freestylefly/canghe-skills.

    461 GitHub starsUsed in 4 repos~1.7k tokens
    Auto-check: warnings
  • Canghe URL To Markdown

    freestylefly/canghe-skills

    Fetch any URL and convert to markdown using Chrome CDP. An agent skill from freestylefly/canghe-skills.

    461 GitHub starsUsed in 4 repos~1.1k tokens
    Auto-check passed
  • Canghe Xhs Images

    freestylefly/canghe-skills

    Generates Xiaohongshu (Little Red Book) infographic series with 10 visual styles and 8 layouts.

    461 GitHub starsUsed in 4 repos~4.9k tokens
    Auto-check passed
  • Canghe Markdown To HTML

    freestylefly/canghe-skills

    Converts Markdown to styled HTML with WeChat-compatible themes.

    461 GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed

Works with

Questions about Canghe Image Gen

What does Canghe Image Gen do?

AI image generation with OpenAI, Google, DashScope and Canghe APIs. Canghe Image Gen is an agent skill from freestylefly/canghe-skills. AI image generation with OpenAI, Google, DashScope and Canghe APIs.

When should I use Canghe Image Gen?

Canghe Image Gen fits situations like: user asks to generate; tasks that involve Image generation.

How do I install Canghe Image Gen in Claude Code?

Run `npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a claude-code`. Or copy the skill folder (skills/canghe-image-gen in freestylefly/canghe-skills) into .claude/skills/canghe-image-gen in your project. Claude Code loads it when a task matches its description.

How do I install Canghe Image Gen in Codex?

Run `npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a codex`. Or copy the skill folder (skills/canghe-image-gen in freestylefly/canghe-skills) into .agents/skills/canghe-image-gen in your project. Codex loads it when a task matches its description.

Can I use Canghe Image Gen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add freestylefly/canghe-skills --skill canghe-image-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/canghe-image-gen, .gemini/skills/canghe-image-gen, .github/skills/canghe-image-gen and .opencode/skills/canghe-image-gen in your project.

What does Canghe Image Gen need to run?

Going by SKILL.md and its folder, Canghe Image Gen needs TypeScript for the scripts in its folder, the command-line tools its instructions call (npx) and credentials named OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY and CANGHE_API_KEY. Our summary lists: Node.js; A credential in OPENAI_API_KEY; A credential in GOOGLE_API_KEY.

Does Canghe Image Gen access the network?

SKILL.md names 1 domain. In commands or code: api.canghe.ai; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Canghe Image Gen safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Canghe Image Gen use?

No licence was found for Canghe Image Gen or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Canghe Image Gen use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 470 tokens, read only when the agent opens those files.

What are the alternatives to Canghe Image Gen?

Skills that share tags, products or a category with Canghe Image Gen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars), Imagegen (theowenyoung/home, 115 stars) and Openai Image Gen (trpc-group/trpc-agent-go, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Canghe Image Gen?

freestylefly (a GitHub user) maintains it in freestylefly/canghe-skills, which has 461 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 8, 2026.

Source: freestylefly/canghe-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.