Agent skill

Image Gen

by wpsnote in wpsnote/wpsnote-skills

AI 图像生成助手,支持文生图和图生图,对接 OpenRouter / 阿里云百炼 / 火山方舟 / Google Gemini。

No licenceAuto-check passedMedia & Creative

Install Image Gen

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

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

GitHub CLI
$ gh skill install wpsnote/wpsnote-skills 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/wpsnote/wpsnote-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/image-gen .claude/skills/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
image-gen
GitHub stars
179
Token cost
~1.3k tokens
SKILL.md length
270 words
Files
2 (incl. scripts)
Skills in repo
29
Repo updated
First seen
Licence
None found

At a glance

AI 图像生成助手,支持文生图和图生图,对接 OpenRouter / 阿里云百炼 / 火山方舟 / Google Gemini。

  • Works in 6 steps: :确认生图需求 → :确定 Provider → :获取 Key → …
  • Tasks that involve Image generation
  • SKILL.md covers 铁律, 核心流程, Step 1:确认生图需求 and Step 2:确定 Provider, plus 5 more sections
  • Runs Python scripts from its folder; calls python3 and pip

What it does

Image Gen is an agent skill from wpsnote/wpsnote-skills. AI 图像生成助手,支持文生图和图生图,对接 OpenRouter / 阿里云百炼 / 火山方舟 / Google Gemini。 内置 API Key 加密管理:Key 以 AES 加密存入 WPS 笔记,解密密钥由「设备ID + 笔记ID + provider」现场派生,本机无需存储额外文件。 触发词:"帮我生图""文生图""图生图""用 AI 画一张""生成一张图""根据这张图生成""垫图生图""用 Flux 生图""用 Gemini 生图"。 与 wpsnote-cli gen-image 的区别:本 Skill 支持图生图、多服务商选择、更高质量模型,是内置生图的升级替代方案。

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/image_gen.py`).

It sits in Media & Creative, covering Image generation and Model routing and gateways. It works with OpenRouter and Google Gemini.

When your agent uses it

  • Tasks that involve Image generation
  • Tasks that involve Model routing and gateways

Example prompts

  • “用 AI 画一张”
  • “根据这张图生成”
  • “用 Flux 生图”
  • “/image-gen”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. :确认生图需求
  2. :确定 Provider
  3. :获取 Key
  4. :执行生图
  5. :询问是否插入笔记
  6. :删除 Key

What it can do on your machine

Read from SKILL.md and the folder at commit 2d9885d. 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 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • pip

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

  • Network

    Links to these hosts (documentation or services it may open):

    • openrouter.ai
    • bailian.console.aliyun.com
    • console.volcengine.com
    • aistudio.google.com

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Image Gen loads about 1.3k tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 270 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~1.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 passed

The automated check found no risky patterns in SKILL.md.

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 270 words (~1,332 tokens).

“支持文生图 + 图生图,自动管理 API Key,生成结果可直接插入 WPS 笔记。”

— opening of SKILL.md by wpsnote
name
image-gen
metadata.version
2.0.0
metadata.category
content-creation
metadata.tags
image, gen-image, flux, gemini, dashscope, openrouter
metadata.dependencies
wps-note
metadata.scripts
comm_script/image_gen.py

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in skills/image-gen of wpsnote/wpsnote-skills.

  • SKILL.md
  • scripts/image_gen.py

Open the folder on GitHubat commit 2d9885d

Compare with similar skills

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.

Image Gen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Image Gen this skillwpsnote/wpsnote-skills179—~1.3kAutomated safety check: PassNone
AI Image Creatorevolution-foundation/evo-nexus545—~5.1kAutomated safety check: NotesCustom licence
Openrouter Imgrtadewald/skills180—~800Automated safety check: NotesNone
Nano Banana Pro Openroutergithub/awesome-copilot40k1 repos~664Automated safety check: PassMIT
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
InfographicsK-Dense-AI/scientific-agent-skills48k1 repos~3.8kAutomated safety check: NotesMIT

Similar skills

  • AI Image Creator

    evolution-foundation/evo-nexus

    Generates PNG images through OpenRouter models, with transparent backgrounds and reference-image edits, and describes existing images with multimodal vision.

    545 GitHub stars~5.1k tokensUpdated 4 mo ago
    Media & CreativeAuto-check: notes
  • Openrouter Img

    rtadewald/skills

    Generate or edit images via OpenRouter Image API across top models (Nano Banana, GPT Image, FLUX.2, Seedream, Qwen, Grok).

    180 GitHub stars~800 tokensUpdated 9 days ago
    Media & CreativeAuto-check: notes
  • Nano Banana Pro Openrouter

    github/awesome-copilot

    Official

    Generate or edit images via OpenRouter with the Gemini 3 Pro Image model.

    40k GitHub starsUsed in 1 repo~664 tokens
    Media & CreativeAuto-check passed
  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Infographics

    K-Dense-AI/scientific-agent-skills

    Creates and reviews infographics with Nano Banana 2 via OpenRouter.

    48k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Article To Wechat Cover

    dracohu2025-cloud/draco-skills-collection

    从飞书文档或本地 Markdown 提炼文章主题与风格,调用 OpenRouter 的 Nano Banana / Gemini Flash Image 生成 2.35:1 的微信公众号封面图,并可选上传为微信封面素材。

    227 GitHub stars~1.5k tokensUpdated 20 days ago
    Productivity & AutomationAuto-check passed

More from wpsnote/wpsnote-skills

All 29 skills in this repo
  • Skill Creator

    wpsnote/wpsnote-skills

    Create new skills or improve existing skills by clarifying intent, drafting SKILL.md instructions, organizing supporting resources, and doing lightweight manual review.

    179 GitHub stars~1.3k tokensUpdated 4 mo ago
    Auto-check passed
  • Content Digest

    wpsnote/wpsnote-skills

    将任意内容提炼为结构化知识笔记,自动保存到 WPS 笔记。只要用户给出任何内容(链接、图片、本地文件、粘贴文字)并有保存笔记的意图,就应使用此 skill。常见触发词:「总结」「提炼」「做笔记」「读书笔记」「学习笔记」「整理成笔记」「帮我看看」「帮我解读」「记一下」「存下来」「整理一下」「帮我归纳」。也适用于用户直接给出…

    179 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Content Creator

    wpsnote/wpsnote-skills

    【内容创作起点】用户想要写文章/公众号/文案时的首选skill. An agent skill from wpsnote/wpsnote-skills.

    179 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Doc Importer

    wpsnote/wpsnote-skills

    将本地文档批量导入到 WPS 笔记。支持扫描 Obsidian Vault、思源笔记、微信公众号存档、 下载目录或任意用户指定目录,自动识别 HTML、Markdown、PDF、DOCX、PPTX、XLSX 等格式, 转换为 WPS 笔记可读内容并保留图片和富文本格式。

    179 GitHub stars~2.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Literature Reader

    wpsnote/wpsnote-skills

    阅读、分析并总结学术文献(PDF论文),生成结构化的文献概要笔记。核心能力:论文元信息提取、研究问题识别、方法论梳理、实验结果分析、个人评价生成,以及多篇文献横向对比。支持中英文论文、单篇精读与批量文献综述。当用户提供 PDF 论文文件、要求阅读文献、总结论文、文献综述、论文概要、论文精读、paper summary、paper review、读论文、读…

    179 GitHub stars~793 tokensUpdated 4 mo ago
    Auto-check passed
  • Paper Researcher

    wpsnote/wpsnote-skills

    学术论文全流程助手:搜索论文、下载 PDF、存入 WPS 笔记、精读分析。当用户说"搜论文"、"找论文"、"下载论文"、"读论文"、"帮我找 paper"、"搜一下 XXX 相关的论文"、"把这篇论文存到笔记"、"分析这篇论文"、"帮我做文献调研"时触发。支持 arXiv 和 OpenAlex 两个数据源,自动完成搜索→下载→转文本→写入 WPS 笔记→分析的完整闭环。

    179 GitHub stars~970 tokensUpdated 4 mo ago
    Auto-check passed

Questions about Image Gen

What does Image Gen do?

AI 图像生成助手,支持文生图和图生图,对接 OpenRouter / 阿里云百炼 / 火山方舟 / Google Gemini。. Image Gen is an agent skill from wpsnote/wpsnote-skills.

When should I use Image Gen?

Image Gen fits situations like: tasks that involve Image generation; tasks that involve Model routing and gateways.

How do I install Image Gen in Claude Code?

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

How do I install Image Gen in Codex?

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

Can I use 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 wpsnote/wpsnote-skills --skill 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/image-gen, .gemini/skills/image-gen, .github/skills/image-gen and .opencode/skills/image-gen in your project.

What does Image Gen need to run?

Going by SKILL.md and its folder, Image Gen needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and pip). Our summary lists: Python 3.

Does Image Gen access the network?

SKILL.md names 4 domains. As links in the text: openrouter.ai, bailian.console.aliyun.com, console.volcengine.com and aistudio.google.com. This is read from the text; nothing was executed.

Is Image Gen safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. 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 Image Gen use?

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

How many tokens does Image Gen use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Image Gen?

Skills that share tags, products or a category with Image Gen: AI Image Creator (evolution-foundation/evo-nexus, 545 stars), Openrouter Img (rtadewald/skills, 180 stars), Nano Banana Pro Openrouter (github/awesome-copilot, 40k stars) and Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Image Gen?

wpsnote (a GitHub organization) maintains it in wpsnote/wpsnote-skills, which has 179 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on May 25, 2026.

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