Generates images through OpenAI, Google, DashScope, and Canghe APIs with support for text-to-image, reference images, and aspect ratios. Ships with sensible defaults (2K quality, Google provider) but you can override everything through CLI flags or EXTEND.md preferences. Reference image support is the standout feature here, working across Google's multimodal models, OpenAI's GPT Image edits, and Canghe. Runs sequential by default, which is the right call for stability, but switches to parallel generation when you actually need it. The quality presets and aspect ratio handling save you from looking up provider-specific parameters every time.

skills.sh installs
598
GitHub stars
474
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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 │ └──────────────────────────────────────────────────┴───────────────────┘

Sponsors

Details

Repository
github.com/freestylefly/canghe-skills
Categories
AI & Agent Building, Automation & Workflows, Generative Media
First seen
Jun 3, 2026

More from freestylefly/canghe-skills

All 29
1memtensor avatarskills-votememtensor/skills-voteFind the most relevant external agent skills for the current task, then submit grounded feedback about which skills were actually used and useful in the same se598skills.sh installs
2sundial-org avatartopic-monitorsundial-org/awesome-openclaw-skillsMonitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product598skills.sh installs
3alirezarezvani avatarpaywall-upgrade-croalirezarezvani/claude-skillsWhen the user wants to create or optimize in-app paywalls, upgrade screens, upsell modals, or feature gates. Also use when the user mentions "paywall," "upgrade596skills.sh installs
4hkuds avatarcli-anything-godothkuds/cli-anythingAgent-native CLI for Godot project management, scenes, exports, and script execution.590skills.sh installs
5alirezarezvani avatarhelm-chart-builderalirezarezvani/claude-skillsHelm chart development agent skill and plugin for Claude Code, Codex, Gemini CLI, Cursor, OpenClaw — chart scaffolding, values design, template patterns, depend585skills.sh installs
6davila7 avatarhumanizerdavila7/claude-code-templatesRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's compreh585skills.sh installs