Skip to content

Commit e47bc51

Browse files
committed
refactor!: rename skill to imagencn (lowercase, Pi compatibility)
1 parent 715939f commit e47bc51

14 files changed

Lines changed: 56 additions & 56 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ImagenCN — AI Image Generation with Chinese Text Excellence
1+
# imagencn — AI Image Generation with Chinese Text Excellence
22

33
[![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC%20BY--NC%204.0-lightgrey.svg)](LICENSE)
44
[![Claude Code](https://img.shields.io/badge/Claude%20Code-skill-6C3C97)](https://claude.ai/code)
@@ -7,15 +7,15 @@
77

88
[中文文档](README_CN.md)
99

10-
**imagenCN — Image Generation, Cloud-Native: one CLI, every image cloud.** The project started with China-friendly clouds and now covers international providers as well.
10+
**imagencn — Image Generation, Cloud-Native: one CLI, every image cloud.** The project started with China-friendly clouds and now covers international providers as well.
1111

1212
A Claude Code / OpenClaw skill for AI image generation using Alibaba Cloud Bailian, ByteDance Volcano Ark, Tencent Hunyuan, Zhipu BigModel, StepFun, and Google Gemini APIs.
1313

1414
📋 **[Model Reference](https://agents365-ai.github.io/imagenCN/docs/models.html)** — browse all 31 models with pricing, resolution, and feature comparison.
1515

1616
## Pipeline
1717

18-
<img src="assets/workflow.png" width="450" alt="imagenCN Workflow">
18+
<img src="assets/workflow.png" width="450" alt="imagencn Workflow">
1919

2020
## Features
2121

@@ -33,7 +33,7 @@ A Claude Code / OpenClaw skill for AI image generation using Alibaba Cloud Baili
3333

3434
### Claude Code Marketplace (recommended)
3535
```bash
36-
/plugin install imagenCN@365-skills
36+
/plugin install imagencn@365-skills
3737
```
3838

3939
Or tell your coding agent:
@@ -42,19 +42,19 @@ Or tell your coding agent:
4242
### Manual
4343
```bash
4444
# Global install
45-
git clone https://github.com/Agents365-ai/imagenCN.git ~/.claude/skills/imagenCN
45+
git clone https://github.com/Agents365-ai/imagenCN.git ~/.claude/skills/imagencn
4646

4747
# Project-specific
48-
git clone https://github.com/Agents365-ai/imagenCN.git .claude/skills/imagenCN
48+
git clone https://github.com/Agents365-ai/imagenCN.git .claude/skills/imagencn
4949
```
5050

5151
### OpenClaw
5252
```bash
53-
git clone https://github.com/Agents365-ai/imagenCN.git skills/imagenCN
53+
git clone https://github.com/Agents365-ai/imagenCN.git skills/imagencn
5454
```
5555

5656
### SkillsMP
57-
Search `imagenCN` on [skillsmp.com](https://skillsmp.com) for one-click install.
57+
Search `imagencn` on [skillsmp.com](https://skillsmp.com) for one-click install.
5858

5959
## Requirements
6060

@@ -99,13 +99,13 @@ export GEMINI_API_KEY="your_api_key"
9999

100100
### Config File (Optional)
101101

102-
Create `~/.imagenCN.json` for personal defaults:
102+
Create `~/.imagencn.json` for personal defaults:
103103

104104
```json
105105
{"platform": "ark", "model": "doubao-seedream-5-0-260128", "size": "2K"}
106106
```
107107

108-
Project-level `.imagenCN.json` overrides user-level. CLI args override both.
108+
Project-level `.imagencn.json` overrides user-level. CLI args override both.
109109

110110
### Optional Environment Variables
111111

README_CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ImagenCN — 阿里云百炼 AI 图像生成技能
1+
# imagencn — 阿里云百炼 AI 图像生成技能
22

33
[![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC%20BY--NC%204.0-lightgrey.svg)](LICENSE)
44
[![Claude Code](https://img.shields.io/badge/Claude%20Code-skill-6C3C97)](https://claude.ai/code)
@@ -7,15 +7,15 @@
77

88
[English](README.md)
99

10-
**imagenCN — Image Generation, Cloud-Native:一个 CLI,接入所有图像生成云端。** 项目从中国友好的云平台起步,现已覆盖国际平台。
10+
**imagencn — Image Generation, Cloud-Native:一个 CLI,接入所有图像生成云端。** 项目从中国友好的云平台起步,现已覆盖国际平台。
1111

1212
自然语言生成高质量图像的 Claude Code / OpenClaw 技能,支持阿里云百炼、字节火山方舟、腾讯混元、智谱 BigModel、阶跃星辰以及 Google Gemini 六大平台。
1313

1414
📋 **[模型参考](https://agents365-ai.github.io/imagenCN/docs/models.html)** — 浏览全部 31 个模型,含价格、分辨率、功能对比。
1515

1616
## 工作流程
1717

18-
<img src="assets/workflow-cn.png" width="450" alt="imagenCN 工作流程">
18+
<img src="assets/workflow-cn.png" width="450" alt="imagencn 工作流程">
1919

2020
## 特性
2121

@@ -33,7 +33,7 @@
3333

3434
### Claude Code 插件市场(推荐)
3535
```bash
36-
/plugin install imagenCN@365-skills
36+
/plugin install imagencn@365-skills
3737
```
3838

3939
或者告诉你的 coding agent:
@@ -42,19 +42,19 @@
4242
### 手动安装
4343
```bash
4444
# 全局安装
45-
git clone https://github.com/Agents365-ai/imagenCN.git ~/.claude/skills/imagenCN
45+
git clone https://github.com/Agents365-ai/imagenCN.git ~/.claude/skills/imagencn
4646

4747
# 仅当前项目
48-
git clone https://github.com/Agents365-ai/imagenCN.git .claude/skills/imagenCN
48+
git clone https://github.com/Agents365-ai/imagenCN.git .claude/skills/imagencn
4949
```
5050

5151
### OpenClaw
5252
```bash
53-
git clone https://github.com/Agents365-ai/imagenCN.git skills/imagenCN
53+
git clone https://github.com/Agents365-ai/imagenCN.git skills/imagencn
5454
```
5555

5656
### SkillsMP
57-
[skillsmp.com](https://skillsmp.com) 搜索 `imagenCN`,一键安装。
57+
[skillsmp.com](https://skillsmp.com) 搜索 `imagencn`,一键安装。
5858

5959
## 系统要求
6060

@@ -99,13 +99,13 @@ export GEMINI_API_KEY="your_api_key"
9999

100100
### 配置文件(可选)
101101

102-
创建 `~/.imagenCN.json` 设置个人默认值:
102+
创建 `~/.imagencn.json` 设置个人默认值:
103103

104104
```json
105105
{"platform": "ark", "model": "doubao-seedream-5-0-260128", "size": "2K"}
106106
```
107107

108-
项目级 `.imagenCN.json` 优先级高于用户级。命令行参数覆盖两者。
108+
项目级 `.imagencn.json` 优先级高于用户级。命令行参数覆盖两者。
109109

110110
### 可选环境变量
111111

docs/models.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>ImagenCN — Model Reference</title>
6+
<title>imagencn — Model Reference</title>
77
<style>
88
:root {
99
--bg: #fafafa;
@@ -109,7 +109,7 @@
109109
</head>
110110
<body>
111111
<div class="container">
112-
<h1>🎨 ImagenCN Model Reference</h1>
112+
<h1>🎨 imagencn Model Reference</h1>
113113
<p class="subtitle">AI image generation across 5 Chinese platforms — pick the right model for your task</p>
114114

115115
<div class="stats" id="stats"></div>

docs/models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ImagenCN Model Reference
1+
# imagencn Model Reference
22

33
> Data source: [`models.json`](models.json) · Updated: 2026-07-15
44
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: imagenCN
2+
name: imagencn
33
description: Multi-platform AI image generation via DashScope/Ark/Hunyuan/Zhipu/StepFun plus Google Gemini (international), specializing in Chinese text rendering and photorealistic images
44
author: Agents365-ai
55
version: 1.1.1
@@ -9,11 +9,11 @@ homepage: https://github.com/Agents365-ai/imagenCN
99
metadata: {"openclaw":{"requires":{"bins":["python3"],"env":["DASHSCOPE_API_KEY"]},"primaryEnv":"DASHSCOPE_API_KEY","emoji":"🎨"}}
1010
---
1111

12-
# ImagenCN - Multi-Cloud Text-to-Image Skill
12+
# imagencn - Multi-Cloud Text-to-Image Skill
1313

1414
## Overview
1515

16-
**imagenCN — Image Generation, Cloud-Native: one CLI, every image cloud.** The project started with China-friendly clouds and now covers international providers as well.
16+
**imagencn — Image Generation, Cloud-Native: one CLI, every image cloud.** The project started with China-friendly clouds and now covers international providers as well.
1717

1818
Generate images using Alibaba Cloud Bailian API. **Default endpoint is China region**.
1919

@@ -43,7 +43,7 @@ When the user wants to compare models, check pricing, or browse options before
4343
choosing, open the local model reference page in their browser:
4444

4545
```bash
46-
open ~/.claude/skills/imagenCN/docs/models.html
46+
open ~/.claude/skills/imagencn/docs/models.html
4747
```
4848

4949
This page shows all 31 models across 6 platforms with pricing, resolution,
@@ -180,23 +180,23 @@ Editing models require an input image via `--image` (local path or URL). Omit `-
180180

181181
```bash
182182
# Default model (qwen-image-2.0-pro, native 2K output)
183-
python ~/.claude/skills/imagenCN/scripts/generate_image.py "A cute cat" output.png
183+
python ~/.claude/skills/imagencn/scripts/generate_image.py "A cute cat" output.png
184184

185185
# Photorealistic with Wan model (Wan2.7 supports 4K)
186-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --model wan2.7-image-pro --size 4K "Realistic photo of mountains at sunset" photo.png
186+
python ~/.claude/skills/imagencn/scripts/generate_image.py --model wan2.7-image-pro --size 4K "Realistic photo of mountains at sunset" photo.png
187187

188188
# Edit an existing image (requires --image; local path or URL)
189-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --model qwen-image-edit-max --image input.png "Change the background to a beach at sunset" edited.png
189+
python ~/.claude/skills/imagencn/scripts/generate_image.py --model qwen-image-edit-max --image input.png "Change the background to a beach at sunset" edited.png
190190
```
191191

192192
### Size Options
193193

194194
```bash
195195
# Use ratio preset
196-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --size 16:9 "Wide landscape" landscape.png
196+
python ~/.claude/skills/imagencn/scripts/generate_image.py --size 16:9 "Wide landscape" landscape.png
197197

198198
# Use exact dimensions
199-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --size 1280*720 "Custom size" custom.png
199+
python ~/.claude/skills/imagencn/scripts/generate_image.py --size 1280*720 "Custom size" custom.png
200200
```
201201

202202
### Size Presets
@@ -274,31 +274,31 @@ python ~/.claude/skills/imagenCN/scripts/generate_image.py --size 1280*720 "Cust
274274

275275
```bash
276276
# With negative prompt
277-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --negative "blurry, low quality" "High quality portrait" portrait.png
277+
python ~/.claude/skills/imagencn/scripts/generate_image.py --negative "blurry, low quality" "High quality portrait" portrait.png
278278

279279
# Disable automatic prompt extension (DashScope only)
280-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --no-extend "A photorealistic cat" cat.png
280+
python ~/.claude/skills/imagencn/scripts/generate_image.py --no-extend "A photorealistic cat" cat.png
281281

282282
# Set random seed for reproducibility
283-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --seed 42 "A cat" cat.png
283+
python ~/.claude/skills/imagencn/scripts/generate_image.py --seed 42 "A cat" cat.png
284284

285285
# Guidance scale (Volcano Ark only)
286-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --platform ark --guidance-scale 7.5 "Portrait" portrait.png
286+
python ~/.claude/skills/imagencn/scripts/generate_image.py --platform ark --guidance-scale 7.5 "Portrait" portrait.png
287287

288288
# Disable watermark (Volcano Ark only)
289-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --platform ark --no-watermark "Artwork" art.png
289+
python ~/.claude/skills/imagencn/scripts/generate_image.py --platform ark --no-watermark "Artwork" art.png
290290

291291
# Auto-enhance prompt on/off (Tencent Hunyuan only, --revise 0=off 1=on)
292-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --platform hunyuan --revise 0 "A cat" cat.png
292+
python ~/.claude/skills/imagencn/scripts/generate_image.py --platform hunyuan --revise 0 "A cat" cat.png
293293

294294
# Add AI logo (Tencent Hunyuan only, --logo 0=no 1=yes)
295-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --platform hunyuan --logo 1 "Poster" poster.png
295+
python ~/.claude/skills/imagencn/scripts/generate_image.py --platform hunyuan --logo 1 "Poster" poster.png
296296

297297
# Dry run (preview without making API call)
298-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --dry-run --platform ark "Test prompt"
298+
python ~/.claude/skills/imagencn/scripts/generate_image.py --dry-run --platform ark "Test prompt"
299299

300300
# List all models
301-
python ~/.claude/skills/imagenCN/scripts/generate_image.py --list-models
301+
python ~/.claude/skills/imagencn/scripts/generate_image.py --list-models
302302
```
303303

304304
## Requirements
@@ -349,7 +349,7 @@ Get API Keys:
349349

350350
## Config File (Optional)
351351

352-
Create `~/.imagenCN.json` for personal defaults, or `.imagenCN.json` in a project
352+
Create `~/.imagencn.json` for personal defaults, or `.imagencn.json` in a project
353353
directory for per-project overrides. API keys stay in environment variables for
354354
security.
355355

@@ -363,8 +363,8 @@ security.
363363

364364
All keys are optional. Priority (highest first):
365365
1. CLI arguments (`--platform`, `--model`, `--size`)
366-
2. Project config (`.imagenCN.json` in current directory)
367-
3. User config (`~/.imagenCN.json`)
366+
2. Project config (`.imagencn.json` in current directory)
367+
3. User config (`~/.imagencn.json`)
368368
4. Environment variables (`DASHSCOPE_MODEL`, `ARK_MODEL`, `HUNYUAN_MODEL`, `ZHIPUAI_MODEL`, `STEP_MODEL`, `GEMINI_MODEL`)
369369
5. Built-in defaults
370370

@@ -476,14 +476,14 @@ GEMINI_API_KEY="xxx" python scripts/generate_image.py \
476476

477477
### Chinese New Year Poster (DashScope)
478478
```bash
479-
python ~/.claude/skills/imagenCN/scripts/generate_image.py \
479+
python ~/.claude/skills/imagencn/scripts/generate_image.py \
480480
"A beautiful Chinese New Year poster with red background, golden text, fireworks and firecrackers" \
481481
new_year_poster.png
482482
```
483483

484484
### Photorealistic Landscape (4K)
485485
```bash
486-
python ~/.claude/skills/imagenCN/scripts/generate_image.py \
486+
python ~/.claude/skills/imagencn/scripts/generate_image.py \
487487
--model wan2.7-image-pro \
488488
--size 4K \
489489
"Breathtaking sunset over mountain range, golden hour, professional photography" \
@@ -492,7 +492,7 @@ python ~/.claude/skills/imagenCN/scripts/generate_image.py \
492492

493493
### Product Shot
494494
```bash
495-
python ~/.claude/skills/imagenCN/scripts/generate_image.py \
495+
python ~/.claude/skills/imagencn/scripts/generate_image.py \
496496
--model wan2.7-image \
497497
--size 2K \
498498
"Professional product photography of a coffee cup on marble surface, studio lighting" \
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22
"""
3-
ImagenCN — Multi-Platform T2I Image Generation Script
3+
imagencn — Multi-Platform T2I Image Generation Script
44
55
Generate images using five Chinese T2I platforms plus Google Gemini:
66
- Alibaba Cloud Bailian (DashScope): Qwen-Image, Wan Series, Z-Image
@@ -150,7 +150,7 @@ def _load_models_json():
150150
"""Load structured model metadata from docs/models.json."""
151151
script_dir = Path(__file__).parent.resolve()
152152
candidates = [
153-
# Repo root: skills/imagenCN/scripts/ -> ../../../docs/models.json
153+
# Repo root: skills/imagencn/scripts/ -> ../../../docs/models.json
154154
script_dir.parent.parent.parent / "docs" / "models.json",
155155
# Flat install: scripts/ -> ../docs/models.json
156156
script_dir.parent / "docs" / "models.json",
@@ -409,19 +409,19 @@ def get_api_base():
409409
def load_config():
410410
"""Load defaults from config files.
411411
412-
Priority (highest last): project .imagenCN.json > user ~/.imagenCN.json.
412+
Priority (highest last): project .imagencn.json > user ~/.imagencn.json.
413413
Returns a dict with optional keys: platform, model, size.
414414
"""
415415
config = {}
416416
# User-level (lower priority, loaded first)
417-
user_config = Path.home() / ".imagenCN.json"
417+
user_config = Path.home() / ".imagencn.json"
418418
if user_config.exists():
419419
try:
420420
config.update(json.loads(user_config.read_text()))
421421
except (json.JSONDecodeError, ValueError):
422422
pass
423423
# Project-level (higher priority, overrides user)
424-
project_config = Path(".imagenCN.json")
424+
project_config = Path(".imagencn.json")
425425
if project_config.exists():
426426
try:
427427
config.update(json.loads(project_config.read_text()))
File renamed without changes.

0 commit comments

Comments
 (0)