Agent skill · Backend & API

image-gen

AI 图片生成。通过 ModelScope API 生成图片,支持文生图、异步任务轮询、LoRA 风格叠加、自定义尺寸。当用户要求生成图片、画图、创建插画、制作海报配图时使用。

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill image-gen-countbot-ai-countbot-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/ai-llm/image-gen-countbot-ai-countbot-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# AI 图片生成 基于 ModelScope API 的文生图工具,支持异步生成、LoRA 风格叠加。 ## 配置 编辑 `skills/image-gen/scripts/config.json`: ```json { "api_token": "YOUR_MODELSCOPE_TOKEN" } ``` Token 获取:[ModelScope 控制台](https://modelscope.cn/my/myaccesstoken) 创建 Access Token。 ## 命令行调用 ```bash # 基础文生图 python3 skills/image-gen/scripts/generate.py generate --prompt "一只金色的猫" # 指定输出路径 python3 skills/image-gen/scripts/generate.py generate --prompt "赛博朋克城市" --output cyberpunk.jpg # 指定模型 python3 skills/image-gen/scripts/generate.py generate --prompt "水墨山水画" --model Tongyi-MAI/Z-Image-Turbo # 使用 LoRA 风格 python3 skills/image-gen/scripts/generate.py generate --prompt "一个女孩" --lora "repo-id/lora-model" # 多 LoRA 叠加(JSON 格式,权重之和为 1.0) python3 skills/image-gen/scripts/generate.py generate --prompt "风景画" --lora '{"lora1": 0.6, "lora2": 0.4}' # 指定尺寸 python3 skills/image-gen/scripts/generate.py generate --prompt "壁纸" --size 1920x1080 # 查询任务状态 python3 skills/image-gen/scripts/generate.py status --task-id TASK_ID # JSON 格式输出 python3 skills/image-gen/scripts/generate.py generate --prompt "猫" --json ``` ## AI 调用流程 ### 步骤 1:生成图片 根据用户描述构造英文 prompt(英文效果更好),调用脚本生成图片并保存到本地: ```bash python3 skills/image-gen/scripts/generate.py generate --prompt "A

What's inside
Steps it walks through
  1. 配置
  2. 命令行调用
  3. AI 调用流程
  4. 步骤 1:生成图片
  5. 步骤 2:发送到频道(自动联动 sendmedia)
  6. 完整示例
  7. 支持的模型
  8. Prompt 技巧
  9. 注意事项
Ships with 1 file
  • metadata.json
Commands it runs
python3 skills/image-gen/scripts/generate.py generate --prompt "一只金色的猫"
python3 skills/image-gen/scripts/generate.py generate --prompt "赛博朋克城市" --output cyberpunk.jpg
python3 skills/image-gen/scripts/generate.py generate --prompt "水墨山水画" --model Tongyi-MAI/Z-Image-Turbo
python3 skills/image-gen/scripts/generate.py generate --prompt "一个女孩" --lora "repo-id/lora-model"
python3 skills/image-gen/scripts/generate.py generate --prompt "风景画" --lora '{"lora1": 0.6, "lora2": 0.4}'
python3 skills/image-gen/scripts/generate.py generate --prompt "壁纸" --size 1920x1080
python3 skills/image-gen/scripts/generate.py status --task-id TASK_ID
JSON 格式输出
python3 skills/image-gen/scripts/generate.py generate --prompt "猫" --json
python3 skills/image-gen/scripts/generate.py generate --prompt "A cute golden cat, high quality, detailed fur" --output data/temp/images/cat.jpg
More from claude-skill-registry
All skills →
About this skill
What does the image-gen skill do?

AI 图片生成。通过 ModelScope API 生成图片,支持文生图、异步任务轮询、LoRA 风格叠加、自定义尺寸。当用户要求生成图片、画图、创建插画、制作海报配图时使用。

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill image-gen-countbot-ai-countbot-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going