/agentic-ai-skills:ernie-image-genfrom agentic-ai-skills
Generates images via ERNIE Image with configurable service endpoints, supporting Chinese-first text-to-image, multilingual text rendering, and long-text/multi-region text in images.
Ships in agentic-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
使用 ERNIE Image 做文生图,默认走服务调用模式,并支持切换到兼容原生 /generate 接口的模式。这个 skill 适合:
model_dir / weight_tar_path 等部署上下文,但不希望写死本机路径这个 skill 的默认行为是:
assets/cloud-config.portable.cn.yamlopenai_compatiblebase_url、auth_token_env、modehealth_check.py,再生成assets/local-config.portable.cn.yaml无论是在另一台电脑、另一个项目,还是分享给别人用,优先检查这 5 项:
base_url
auth_token_env
ERNIE_IMAGE_API_KEYmode
openai_compatiblenative_generateoutput.artifact_dir
${ERNIE_IMAGE_ARTIFACT_DIR:-./achievement}weight_tar_path
推荐直接从这两个模板开始:
assets/cloud-config.portable.yamlassets/cloud-config.portable.cn.yamlassets/local-config.portable.cn.yaml如果你只是普通云端调用,最常用的动作其实只有两步:
export ERNIE_IMAGE_API_KEY='你的key'
python3 scripts/generate_image.py --config assets/cloud-config.portable.cn.yaml --prompt '一只可爱的橘猫表情包'
assets/cloud-config.portable.cn.yamlassets/cloud-config.portable.yamlmode: openai_compatible 或 native_generatebase_urlauth_token_envmodel_dir(通常不用改)weight_tar_path(可留空,或用环境变量占位)output.artifact_dir(推荐相对路径或环境变量)python3 scripts/health_check.py \
--config assets/cloud-config.portable.cn.yaml
python3 scripts/generate_image.py \
--config assets/cloud-config.portable.cn.yaml \
--prompt "一只戴宇航员头盔的橘猫,电影感打光,超高细节"
assets/local-config.portable.cn.yamlbase_urlmodemodel_dirweight_tar_pathoutput.artifact_dirpython3 scripts/health_check.py \
--config assets/local-config.portable.cn.yaml
python3 scripts/generate_image.py \
--config assets/local-config.portable.cn.yaml \
--prompt "一只戴宇航员头盔的橘猫,电影感打光,超高细节"
更详细的跨机器/跨项目使用方式见:
references/portable-usage.mdopenai_compatible优先调用:
GET /healthPOST /v1/images/generations适合:
size / response_formatnative_generate调用:
GET /healthPOST /generate适合:
ernie-image-siliconflow 原生接口height / width / num_inference_steps / guidance_scaleseedwidthheightnum_inference_stepsguidance_scale详细模板见:
references/prompting.mdoutput.artifact_dir统一配置文件为 YAML,核心字段:
modebase_urlmodelauth_token_envopenai_pathnative_pathhealth_pathmodel_dirweight_tar_pathdefaults.widthdefaults.heightdefaults.num_inference_stepsdefaults.guidance_scaledefaults.response_formatoutput.artifact_diroutput.save_metadata跨机器复用建议:
weight_tar_path 推荐写成 ${ERNIE_IMAGE_WEIGHT_TAR_PATH:-}output.artifact_dir 推荐写成 ${ERNIE_IMAGE_ARTIFACT_DIR:-./achievement} 或项目内相对目录artifact_dir 会相对配置文件所在目录解析字段说明见:
references/service-config-and-api.mdreferences/portable-usage.md如果你要直接适配你自己的本地部署项目、容器服务或云函数服务,也可以继续用这个 skill。
skill 本身只关心接口与配置,不绑定某个固定项目目录。
注意:
部署与联调说明见:
references/local-deploy.mdscripts/validate_config.py:校验 YAML 配置scripts/health_check.py:健康检查scripts/generate_image.py:统一生成入口当需要稳定行为时,优先直接运行这些脚本,而不是让 agent 临时拼 HTTP 请求。
agents/openai.yaml (opens in a new tab)assets/cloud-config.portable.cn.yaml (opens in a new tab)assets/cloud-config.portable.yaml (opens in a new tab)assets/ernie-image-gen.example.yaml (opens in a new tab)assets/local-config.portable.cn.yaml (opens in a new tab)references/local-deploy.md (opens in a new tab)references/portable-usage.md (opens in a new tab)references/prompting.md (opens in a new tab)references/service-config-and-api.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/common.py (opens in a new tab)scripts/generate_image.py (opens in a new tab)scripts/health_check.py (opens in a new tab)scripts/validate_config.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agenticaiplan/agenticaiskills --plugin agentic-ai-skills54 skills in this plugin
/agent-boundary-design用于设计业务智能体的职责边界、人工确认点和拒绝执行范围。适合质量拦截、工单流转、审批辅助等业务 Agent 的开发阶段,用来明确什么可自主执行、什么必须人工确认、什么必须拒绝执行。/ai-event-plannerAI技术活动策划助手,用于生成活动主题、嘉宾画像、议程安排和宣传文案。适用于大模型运营部门策划AI技术相关交流活动,包括主题演讲、圆桌讨论、Demo展示等环节。当用户需要:1)根据AI技术领域和具体技术名称策划活动方案;2)生成活动主题、嘉宾画像和议程;3)输出邀请函和社群预热文案;4)生成完整的活动策划Markdown文档时使用此skill。/ai-hardware-ecosystem-monitor监控 AI 相关多硬件生态新闻、产业动态与风险信号。用于 GPU、NPU、ASIC、服务器、存储、网络、液冷、电源、光模块、晶圆、先进封装、HBM、ODM/OEM、云厂商、数据中心和大模型厂商相关任务,包括:(1) 跟踪 AI 硬件上下游、算力基础设施和模型厂商新闻,(2) 识别产能、交付、价格、路线图、合作伙伴、部署、兼容与政策等核心议题,(3) 挖掘媒体、分析师、工程师、渠道商、企业客户和关键机构,(4) 监控大模型厂商、云厂商与硬件供应商之间的竞合关系,(5) 生成监测计划、生态情报报告、预警清单和行动建议。触发词包括:AI硬件生态、算力生态监控、AI产业链新闻、GPU产业链、HBM动态、服务器生态、模型厂商动态、云厂商采购、AI基础设施情报、AI供应链预警。/ai-overseas-daily每日自动生成海外 AI/LLM 情报日报。从 8 个数据源聚合情报,经 LLM 生成三板块结构化报告(商业化与竞争格局、数据工程与模型能力突破、应用创新与工程前沿),分发到飞书知识库和如流群。当用户提到"海外AI日报""海外大模型情报""AI市场简报""生成日报""配置日报""海外AI竞争""模型商业化""数据工程突破""应用创新"时触发,也适用于需要定时生成海外 AI 行业情报的场景。/ai-project-quote政企AI智能体项目报价专家(ai-project-quote)。输入AI项目需求,同时输出三种独立报价模板(AI+传统分离计价、功能模块计价、角色人天计价),并提供信息完整度评估与补充建议。触发词:AI项目报价、智能体报价、政企AI报价、项目费用估算、开发成本评估/aistudio-project-reviewer当用户需要对 AI Studio(飞桨星河社区)项目进行评审、打分或提供改进建议时使用本 Skill。Other plugins' skills for the same job