← Back to Skills Marketplace
whisky-12

Ernie Image Art Name

by whisky-12 · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ Security Clean
80
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ernie-image-art-name
Description
名字转艺术字签名 Skill,使用百度星河社区 ERNIE-Image API 将姓名或文字生成为艺术字/签名图片。This skill should be used when users want to generate artistic text/name images, calligraphy art, c...
README (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。

Usage Guidance
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.
Capability Analysis
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.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ernie-image-art-name
  3. After installation, invoke the skill by name or use /ernie-image-art-name
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug ernie-image-art-name
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 80 downloads so far.

How do I install Ernie Image Art Name?

Run "/install ernie-image-art-name" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Ernie Image Art Name free?

Yes, Ernie Image Art Name is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Ernie Image Art Name support?

Ernie Image Art Name is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ernie Image Art Name?

It is built and maintained by whisky-12 (@whisky-12); the current version is v0.1.1.

💬 Comments