ernie-image-gen
Generate images with ERNIE Image through a configurable service endpoint.
Skill by AgenticAIPlan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/agenticaiplan-ernie-image-gen
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ernie-image-gen
What's inside
- Skill name
ernie-image-gen- Description
- Generate images with ERNIE Image through a configurable service endpoint. Use this skill when the user wants Chinese-first text-to-image generation, multilingual text rendering, long-text or multi-region text in images, or when the service base URL, auth token env name, model path, and ERNIE-Image weight tar path must be configurable without code changes.
- License
- MIT
- Instructions
- 234 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (15)
- SKILL.md
- openai.yaml · agents/
- cloud-config.portable.cn.yaml · assets/
- cloud-config.portable.yaml · assets/
- ernie-image-gen.example.yaml · assets/
- local-config.portable.cn.yaml · assets/
- local-deploy.md · references/
- portable-usage.md · references/
- prompting.md · references/
- service-config-and-api.md · references/
- __init__.py · scripts/
- common.py · scripts/
- generate_image.py · scripts/
- health_check.py · scripts/
- validate_config.py · scripts/
SKILL.md (first lines)
# ERNIE Image Gen
使用 ERNIE Image 做文生图,默认走**服务调用模式**,并支持切换到兼容原生 `/generate` 接口的模式。这个 skill 适合:
- 需要通过配置切换不同 ERNIE Image 服务地址
- 需要保留 `model_dir` / `weight_tar_path` 等部署上下文,但不希望写死本机路径
- 需要中文优先、多语言混合、长文本、多区域文本渲染
- 需要把生成图片和元数据稳定落盘到当前项目或当前任务目录
## 默认逻辑:云端优先,本地显式触发
这个 skill 的默认行为是:
1. **优先采用云端模型服务**
- 默认优先找云端配置
- 默认优先使用 `assets/cloud-config.portable.cn.yaml`
- 默认优先走 `openai_compatible`
2. **如果云端配置还没完成**
- 不要直接假设本地模型
- 先引导使用者补齐最少配置:`base_url`、`auth_token_env`、`mode`
- 配完后先做 `health_check.py`,再生成
3. **只有在用户明确说明要用本地模型时**
- 才切到本地配置路径
- 才使用本地权重 / 本地部署上下文
- 才优先参考 `assets/local-config.portable.cn.yaml`
## 使用者先配置这几项
无论是在另一台电脑、另一个项目,还是分享给别人用,优先检查这 5 项:
1. `base_url`
- 改成你自己的 ERNIE Image 服务地址
2. `auth_token_env`
- 填“环境变量名”,不是 API Key 本身
- 例如:`ERNIE_IMAGE_API_KEY`
3. `mode`
- OpenAI 兼容接口用 `openai_compatible`
- 原生接口用 `native_generate`
4. `output.artifact_dir`
- 推荐保留 `${ERNIE_IMAGE_ARTIFACT_DIR:-./achievement}`
- 不写死本机绝对路径
5. `weight_tar_path`
- 如果只是调远程服务,可以留空
- 只有在你要保留本地部署上下文时才需要填
推荐直接从这两个模板开始:
- 通用英文模板:`assets/cloud-config.portable.yaml`
- 通用中文模板:`assets/cloud-config.portable.cn.yaml`
- 本地模型中文模板:`assets/local-config.portable.cn.yaml`
如果你只是普通云端调用,最常用的动作其实只有两步:
```bash
export ERNIE_IMAGE_API_KEY='你的key'
python3 scripts/generate_image.py --config assets/cloud-config.portable.cn.yaml --prompt '一只可爱的橘猫表情包'
```
## Quick Start
### A. 默认:云端服务调用
1. 优先复制可移植云端模板,而不是项目私有模板:
- `assets/cloud-config.portable.cn.yaml`
- 或 `assets/cloud-config.portable.yaml`
2. 按需修改:
- `mode`: `openai_compatible` 或 `native_generate`
- `base_url`
- `auth_token_env`
- `model_dir`(通常不用改)
- `weight_tar_path`(可留空,或用环境变量占位)
- 输出目录 `output.artifact_dir`(推荐相对路径或环境变量)
3. 先做健康检查:
```bash
python3 scripts/health_check.py \
--config assets/cloud-config.portable.cn.yaml
```
4. 生成图片:
```bash
python3 scripts/generate_image.py \
--config assets/cloud-config.portable.cn.yaml \
--prompt "一只戴宇航员头盔的橘猫,电影感打光,超高细节"
```
### B. 仅当用户明确要求:本地模型调用
1. 复制本地模板:
- `assets/local-config.portable.cn.yaml`
2. 重点修改:
- `base_url`
- `mode`
- `model_dir`
- `weight_tar_path`
- `output.artifact_dir`
3. 再执行:
```bash
python3 scripts/health_check.py \
--config assets/local-config.portable.cn.yaml
```
```bash
python3 scripts/generate_image.py \
--config assets/local-config.portable.cn.yaml \
--prompt "一只戴宇航员头盔的橘猫,电影感打光,超高细节"
```
更详细的跨机器/跨项目使用方式见:
- `references/portable-usage.md`
## Mode Decision
### 默认:`openai_compatible`
优先调用:From AgenticAIPlan/AgenticAISkills, MIT.
More from AgenticAIPlan/AgenticAISkills
- 0.546score
baidu-paddle-wenxin-operation
AgenticAIPlan
用于搜集百度飞桨与文心大模型相关运营资讯、竞品动态、厦门本地 AI 政策活动,并输出潜在客户清单与周度运营汇总的业务技能。当用户提到运营周报、竞品动态、厦门 AI 政策、潜客挖掘、飞桨/文心最新消息、客户线索表、活动情报汇总时都应使用本 Skill。
SkillCFreshness: C★ 12Claude Code +9 - 0.546score
amoyalpha-presales-assistant
AgenticAIPlan
售前工程师AI助手。当用户需要做客户背调、准备拜访材料、制作方案PPT、生成Ghost Deck、准备演讲要点、处理客户异议、评估商机成熟度、写会后跟进计划时,即使没有明确说"售前",也应使用本skill。面向政府、行业头部企业、技术型企业三类客户,覆盖"客户画像→需求分析→Ghost…
SkillCFreshness: C★ 12Claude Code +9 - 0.543score
drama-agent
AgenticAIPlan
短剧剧本生成Agent。当用户需要创作短剧剧本时使用,支持从选题到成稿的完整创作流程。包含人物设定维护、情节结构规划、剧本格式输出、质量检查等功能。
SkillCFreshness: C★ 12Claude Code +9 - 0.524score
ernie-image-monitor
AgenticAIPlan
This skill should be used when the user wants to monitor, search, or analyze social media and web content about ERNIE-Image across Chinese platforms including…
SkillCFreshness: C★ 12Claude Code +9 - 0.484score
ai-hardware-ecosystem-monitor
AgenticAIPlan
监控 AI 相关多硬件生态新闻、产业动态与风险信号。用于 GPU、NPU、ASIC、服务器、存储、网络、液冷、电源、光模块、晶圆、先进封装、HBM、ODM/OEM、云厂商、数据中心和大模型厂商相关任务,包括:(1) 跟踪 AI 硬件上下游、算力基础设施和模型厂商新闻,(2)…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
feishu-expert-monitor
AgenticAIPlan
Use when building or maintaining a Feishu Bitable workflow that monitors public statements from government, ministries, think tanks, universities, and…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
hubei-ai-ecosystem-lead-scout
AgenticAIPlan
Use this skill when the task is to discover, analyze, classify, or structure Hubei or Wuhan enterprise leads for AI ecosystem cooperation.
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
bilingual-video-note-enhancer
AgenticAIPlan
Enhance existing English Obsidian video notes, transcript notes, timestamped study notes, or article-like notes into compact bilingual study notes.
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
cloud-instance-ops
AgenticAIPlan
Use for cloud instance access diagnosis and SSH/CLI-first operations in Codex, OpenClaw, or Claude Code when the task centers on Linux server access, password…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
llm-data-research
AgenticAIPlan
大模型数据动态定期洞察 Skill。用于自动从小红书、微信公众号、百度、行业媒体采集最新数据,**重点监控头部厂商和外部数商的"招募动态"**(数据标注任务招募、专家招募画像),推断下一代模型发力方向,生成 Excel 报告和市场洞察。…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
paddleocr-expert
AgenticAIPlan
Expert guide for PaddleOCR, PaddleX, PP-OCRv5, PP-StructureV3, PP-ChatOCRv4, table recognition, and PaddleOCR-VL.
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
project-handover
AgenticAIPlan
辅助项目/岗位交接的全流程 Agent Skill。将原负责人的隐性知识转化为可复用的数字资产,交接后可随时向 Agent 追问细节。 触发条件(满足任一即激活): - "项目交接""岗位交接""知识转移""handover""knowledge transfer" -…
SkillDFreshness: D★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 55
- Open issues
- 4
- Last commit (this folder)
- Apr 20, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/AgenticAIPlan/AgenticAISkills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from AgenticAIPlan
- 0.546score
baidu-paddle-wenxin-operation
AgenticAIPlan
用于搜集百度飞桨与文心大模型相关运营资讯、竞品动态、厦门本地 AI 政策活动,并输出潜在客户清单与周度运营汇总的业务技能。当用户提到运营周报、竞品动态、厦门 AI 政策、潜客挖掘、飞桨/文心最新消息、客户线索表、活动情报汇总时都应使用本 Skill。
SkillCFreshness: C★ 12Claude Code +9 - 0.546score
amoyalpha-presales-assistant
AgenticAIPlan
售前工程师AI助手。当用户需要做客户背调、准备拜访材料、制作方案PPT、生成Ghost Deck、准备演讲要点、处理客户异议、评估商机成熟度、写会后跟进计划时,即使没有明确说"售前",也应使用本skill。面向政府、行业头部企业、技术型企业三类客户,覆盖"客户画像→需求分析→Ghost…
SkillCFreshness: C★ 12Claude Code +9 - 0.543score
drama-agent
AgenticAIPlan
短剧剧本生成Agent。当用户需要创作短剧剧本时使用,支持从选题到成稿的完整创作流程。包含人物设定维护、情节结构规划、剧本格式输出、质量检查等功能。
SkillCFreshness: C★ 12Claude Code +9 - 0.524score
ernie-image-monitor
AgenticAIPlan
This skill should be used when the user wants to monitor, search, or analyze social media and web content about ERNIE-Image across Chinese platforms including…
SkillCFreshness: C★ 12Claude Code +9 - 0.484score
llm-data-research
AgenticAIPlan
大模型数据动态定期洞察 Skill。用于自动从小红书、微信公众号、百度、行业媒体采集最新数据,**重点监控头部厂商和外部数商的"招募动态"**(数据标注任务招募、专家招募画像),推断下一代模型发力方向,生成 Excel 报告和市场洞察。…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
paddleocr-expert
AgenticAIPlan
Expert guide for PaddleOCR, PaddleX, PP-OCRv5, PP-StructureV3, PP-ChatOCRv4, table recognition, and PaddleOCR-VL.
SkillDFreshness: D★ 12Claude Code +9
Cite this page
ernie-image-gen skill. Agent Mart. https://agentmart.dev/skills/agenticaiplan-ernie-image-gen (last updated 2026-10-24)