← 返回 Skills 市场
tt-u

avatar-generator

作者 tt-u · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ✓ 安全检测通过
149
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install bmp-avatar-generator
功能描述
Generate a deterministic pixel-art avatar SVG from a seed string using the @bitmappunks/avatar-generator npm package (version 0.0.5, run via npx), and save i...
使用说明 (SKILL.md)

Avatar Generator

English · 中文

Generate a deterministic SVG avatar by running @bitmappunks/[email protected] via npx. Same seed → same avatar.

Version is locked to 0.0.5. Do not upgrade or drop the version pin without explicit user instruction.

Inputs required

  1. seed — the string that deterministically produces the avatar. Optional: if omitted, default to the current Unix timestamp in seconds so the result changes each time, and report the exact seed used back to the user.
  2. output path — where the .svg file is saved. If the user gave a directory, join it with \x3Cseed>.svg. If no path was given, default to ./\x3Cseed>.svg in the current working directory and tell the user what path you used.

Ask only if the output path is ambiguous.

Run

npx -y @bitmappunks/[email protected] --out "\x3Coutput-path>" --seed "\x3Cseed>"
  • -y auto-accepts the npx install prompt.
  • The @0.0.5 pin is required — never run it unpinned (@latest or bare).
  • Resolve \x3Cseed> to the user-provided seed, otherwise use the current Unix timestamp in seconds.

Preview

Render the generated SVG inline in the terminal using the bundled scripts/svg-tui.js (resolve its path from this skill's base directory, shown in the skill-load message):

node "\x3Cskill-base-dir>/scripts/svg-tui.js" "\x3Coutput-path>"

It parses the avatar's pixel stripes and prints them as ANSI truecolor blocks — works in any terminal transcript that supports 24-bit color, with no external dependency beyond node (already required by npx).

Confirm

Tell the user the absolute output path and the seed. One sentence.

Notes

  • Output is SVG only. For PNG or resizing, convert separately (e.g. rsvg-convert, sharp) — don't silently change format.
  • One seed per invocation. For multiple seeds, loop the command.
  • If npx errors (network, registry, install), surface the error — don't retry silently or fall back to a different version.
安全使用建议
This skill appears to be what it claims: a small, deterministic avatar generator that runs a pinned npm package and a tiny local preview script. Before installing, consider: 1) review the npm package @bitmappunks/[email protected] on the registry (its code and any install scripts) because npx will fetch and run third‑party code; pinning reduces but does not remove supply‑chain risk; 2) decide whether you prefer the SKILL.md behavior (auto‑use timestamp when seed omitted) or the commands file behavior (prompt user) and ensure your agent enforces the desired flow; 3) if you’re concerned about executing remote code, run the skill in a sandboxed environment or audit the package contents first; and 4) be aware npx -y auto‑accepts installation prompts — if you want manual consent, remove -y or run the package after reviewing it.
功能分析
Type: OpenClaw Skill Name: bmp-avatar-generator Version: 0.1.2 The skill is a straightforward implementation for generating deterministic SVG avatars using a pinned npm package (@bitmappunks/[email protected]) via npx. The included helper script, scripts/svg-tui.js, is a simple utility that parses SVG paths and renders them as ANSI truecolor blocks in the terminal without any external dependencies or network calls. No evidence of data exfiltration, malicious prompt injection, or unauthorized execution was found; the code and instructions are consistent with the stated purpose.
能力评估
Purpose & Capability
The skill claims to generate deterministic SVG avatars and does exactly that: it runs a pinned npm package via npx and includes a small terminal preview script. Declared runtime requirements (node, npx) match the stated purpose, and there are no unrelated env vars, binaries, or config paths requested.
Instruction Scope
The SKILL.md instructions stay within avatar generation and file output/preview. There is a minor inconsistency: SKILL.md says seed is optional and defaults to the current Unix timestamp, while commands/gen-avatar.md explicitly requires prompting the user if the seed is omitted. Also the preview script reads the generated SVG from a user-supplied path (intended behavior) — be aware the file path comes from the user/agent context.
Install Mechanism
No install spec is bundled; the skill runs @bitmappunks/[email protected] via npx. Version pinning is good for determinism. Running npx will download and execute third‑party package code (including any npm install/postinstall scripts) from the registry; this is expected for an npm-backed skill but is a general supply-chain risk to consider.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportionate to its stated purpose.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence or modify other skills' configs. Autonomous invocation is allowed by default but not combined with any broad privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bmp-avatar-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bmp-avatar-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.2
- Added terminal preview functionality: generated SVG avatars can now be rendered inline as ANSI art using the new svg-tui script. - Introduced scripts/svg-tui.js for terminal-based SVG visualization. - Added commands/gen-avatar.md for dedicated avatar generation documentation. - No changes to avatar generation logic; version remains pinned to @bitmappunks/[email protected].
v0.1.1
- The skill name has changed from "avatar-generator" to "bmp-avatar-generator". - If no seed is provided, the current Unix timestamp in seconds is now used as the default seed (instead of generating a random, unreproducible seed). - The behavior and user messaging around ambiguous inputs and seed reporting have been clarified. - Examples and descriptions have been updated for clearer guidance and broader coverage of avatar generation requests.
v0.1.0
Initial release (version 1.0.0): - Added avatar-generator skill for deterministic pixel-art SVG avatar creation from a seed string using @bitmappunks/[email protected] (via npx). - Requires explicit seed and output path; defaults to ./<seed>.svg if not specified. - Always pins package version to 0.0.5 as required. - Directs user to convert SVG separately if they need other formats. - Surfaces npx/network/install errors; does not silently retry or downgrade. - Accepts requests to generate or create avatars using a seed, name, or ID in multiple languages.
元数据
Slug bmp-avatar-generator
版本 0.1.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

avatar-generator 是什么?

Generate a deterministic pixel-art avatar SVG from a seed string using the @bitmappunks/avatar-generator npm package (version 0.0.5, run via npx), and save i... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 149 次。

如何安装 avatar-generator?

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

avatar-generator 是免费的吗?

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

avatar-generator 支持哪些平台?

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

谁开发了 avatar-generator?

由 tt-u(@tt-u)开发并维护,当前版本 v0.1.2。

💬 留言讨论