← 返回 Skills 市场
whisky-12

Ernie Image Art Name

作者 whisky-12 · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
80
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ernie-image-art-name
功能描述
名字转艺术字签名 Skill,使用百度星河社区 ERNIE-Image API 将姓名或文字生成为艺术字/签名图片。This skill should be used when users want to generate artistic text/name images, calligraphy art, c...
使用说明 (SKILL.md)

名字转艺术字 Skill

功能概述

使用百度星河社区 ERNIE-Image(文心图像大模型)API,将用户提供的姓名或文字生成为高质量的艺术字/签名图片。支持 12 种风格,涵盖经典艺术字、可爱单线卡通签名、软萌彩铅风卡通签名三大类。

前置条件

需要百度星河社区 Access Token:前往 https://aistudio.baidu.com/account/accessToken 获取。

执行流程

Step 1:确认 Access Token

优先检查是否已配置,按以下顺序:

  1. 用户本次提供的 Token(命令行 --token
  2. 环境变量 AISTUDIO_ACCESS_TOKEN
  3. 配置文件 config.json(位于 skill 安装目录下)

若 Token 未配置,引导用户通过以下命令保存(只需一次):

python3 scripts/generate_art_name.py --set-token YOUR_TOKEN

Token 获取地址:https://aistudio.baidu.com/account/accessToken

Step 2:确认输入参数

向用户确认:

  • 名字/文字:要生成的内容(必填)
  • 风格:从预设风格中选择(默认中国风)
    • 【经典风格】中国风、烫金、霓虹、卡通、石刻、玫瑰、极简、火焰、冰晶、自定义
    • 【卡通签名】单线卡通(7 种模板随机)、彩铅卡通(4 种模板随机)
  • 输出目录(可选,默认 ./art_names

若用户描述不够具体,主动询问风格偏好;若用户提到"可爱签名""ins 风""花体字""单线"等关键词,优先推荐卡通签名风格。

Step 3:执行生成

调用核心脚本(路径相对于 skill 安装目录):

python3 scripts/generate_art_name.py \
  --name "用户名字" \
  --style 风格名称 \
  --output 输出目录

常用参数:

参数 说明
--name / -n 要生成的名字或文字(必填)
--style / -s 风格:中国风/烫金/霓虹/卡通/石刻/玫瑰/极简/火焰/冰晶/单线卡通/彩铅卡通/自定义
--prompt / -p 自定义描述,配合 --style 自定义 使用
--output / -o 图片保存目录
--token / -t 临时指定 Access Token
--model / -m 模型选择(默认 ERNIE-Image-Turbo)
--set-token 将 Token 保存到配置文件(只需一次)
--list-styles 查看所有可用风格
--show-config 查看当前配置

卡通签名风格提示:

  • 单线卡通彩铅卡通 每次调用会从多个模板中随机选取,多次生成可获得不同效果
  • 这两类风格适合英文名/拼音,中文名效果可能偏弱

Step 4:展示结果

脚本成功执行后,生成的图片会保存到本地。使用 open_result_view 展示图片,并询问是否需要调整风格重新生成。

错误处理

错误 解决方案
Token 无效 / 401 引导用户重新获取 Token 并用 --set-token 保存
网络超时 重试,或将 timeout 延长至 180 秒
内容审核拦截 调整 Prompt 表达方式,避免敏感词
模型不可用 切换为 ERNIE-ImageStable-Diffusion-XL

参考文档

详见 references/api_docs.md:包含完整 API 参数说明、Prompt 写作技巧和代码示例。

配置管理

配置文件 config.json 位于 skill 安装目录下,格式如下:

{
  "access_token": "在这里填写你的 Access Token",
  "model": "ERNIE-Image-Turbo",
  "output_dir": "./art_names"
}

可直接编辑此文件,或用 --set-token 命令更新 Token。

安全使用建议
This skill appears coherent and implements the described ERNIE-Image name-to-art functionality. Before installing, consider: 1) You must provide a Baidu/Aistudio Access Token (via --token, AISTUDIO_ACCESS_TOKEN env var, or saved config.json). 2) Using --set-token will store the token in plaintext in config.json under the skill directory—avoid saving long-lived or sensitive tokens there on shared systems. 3) If you prefer not to persist credentials, run with --token for one-off uses and do not use --set-token. 4) Confirm you are comfortable with files being written to the skill directory (output images and config.json). 5) The registry metadata omitted the expected env var (AISTUDIO_ACCESS_TOKEN); this is a documentation mismatch but not a functional issue. If you need higher assurance, review the included scripts locally before running and rotate the token if it is ever exposed.
功能分析
Type: OpenClaw Skill Name: ernie-image-art-name Version: 0.1.1 The skill is a legitimate tool for generating artistic text images using the Baidu ERNIE-Image API. The Python script (scripts/generate_art_name.py) uses only standard libraries, communicates with a verified API endpoint (aistudio.baidu.com), and handles authentication tokens through standard methods such as environment variables, a local config.json, or command-line arguments. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found in the code or instructions.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name-to-art image generation using Baidu ERNIE-Image is exactly what the SKILL.md, README, and scripts implement: the Python script builds prompts, calls https://aistudio.baidu.com/llm/lmapi/v3/images/generations, and saves returned image data. The required capability (an API token) matches the described service.
Instruction Scope
Runtime instructions are limited to collecting the user's text, selecting a style, and running the included Python script. The skill reads/writes a local config.json in its own install directory and expects a token from --token, env var AISTUDIO_ACCESS_TOKEN, or config.json. It will store the token to disk if the user runs --set-token. There are no instructions to read other system files or send data to endpoints other than the documented Baidu API.
Install Mechanism
No install spec; the skill is instruction+script only. The script uses only Python standard library (urllib, json, base64, etc.). No downloads or third-party package installs are performed.
Credentials
Only one credential (Baidu/Aistudio access token) is needed, which is proportional to the task. However, the registry metadata lists no required env vars while the SKILL.md and script expect AISTUDIO_ACCESS_TOKEN (minor metadata mismatch). Also note the script can persist the token unencrypted in config.json in the skill directory — a sensitive artifact that could be exposed if the machine or backups are shared.
Persistence & Privilege
The skill does not request always:true and does not attempt to modify other skills or system-wide settings. It writes only its own config.json under the skill directory and otherwise has no elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ernie-image-art-name
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ernie-image-art-name 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Version 1.1.0 introduces new signature styles and optimizes user experience: - 增加了“单线卡通签名”和“彩铅卡通签名”两类可爱签名风格,支持共 12 种风格选择。 - skill 触发词和描述中新增“可爱签名”“卡通签名”等关键词。 - 风格分类更详细,加入卡通签名推荐逻辑,适应姓名、ins 风等应用场景。 - 更新说明文档,优化参数表述和使用引导。 - 调整作者信息。
v0.1.0
- Initial release of "ernie-image-art-name" Skill for artistic text/name image generation. - Uses Baidu ERNIE-Image API to create stylized, calligraphy, or art-font images from user-provided names or text. - Supports multiple styles: Chinese calligraphy, gilded, neon, cartoon, stone, rose, minimalism, flame, ice crystal, and custom. - Requires Baidu Star River Community Access Token for operation; clear setup and token management workflow provided. - Includes detailed steps for input confirmation, API use, error handling, and local result saving.
元数据
Slug ernie-image-art-name
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Ernie Image Art Name 是什么?

名字转艺术字签名 Skill,使用百度星河社区 ERNIE-Image API 将姓名或文字生成为艺术字/签名图片。This skill should be used when users want to generate artistic text/name images, calligraphy art, c... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 80 次。

如何安装 Ernie Image Art Name?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ernie-image-art-name」即可一键安装,无需额外配置。

Ernie Image Art Name 是免费的吗?

是的,Ernie Image Art Name 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ernie Image Art Name 支持哪些平台?

Ernie Image Art Name 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ernie Image Art Name?

由 whisky-12(@whisky-12)开发并维护,当前版本 v0.1.1。

💬 留言讨论