← 返回 Skills 市场
sqizzo

bratification

作者 sqizzo · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
70
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install bratification
功能描述
Generate brat-style text cover images and sticker-like WhatsApp-safe outputs from custom text. Use when the user asks to make a brat or brat-gen style cover,...
使用说明 (SKILL.md)

Bratification

Generate brat-style images from text using the bundled Python scripts.

Quick start

  • For a plain render, run scripts/render_brat.py.
  • For command-style parsing like !brat hello world, run scripts/handle_brat_command.py.
  • Prefer white background, Arial Narrow bold (with cross-platform font fallback), centered composition, word wrapping without cutting words, and automatic font shrink to fit.
  • handle_brat_command.py now sanitizes slug/output naming and always writes into its managed scripts/out directory tree.

Workflow

  1. Decide whether the request is direct text rendering or !brat command parsing.
  2. Use scripts/handle_brat_command.py for command-style input.
  3. Use scripts/render_brat.py for direct text-to-image rendering.
  4. For WhatsApp-safe sticker-like delivery, prefer --size 512 --sticker-size 512 and send the generated PNG with no caption.
  5. Treat WEBP as an optional artifact unless the channel has verified native sticker upload support.

Commands

Render text directly

python scripts/render_brat.py "hello world" --png out/hello-world.png --webp out/hello-world.webp

Parse a !brat command

python scripts/handle_brat_command.py "!brat hello world"

Sticker-like WhatsApp-safe output

python scripts/handle_brat_command.py --size 512 --sticker-size 512 "!brat hello world"

Output handling

  • Use PNG as the primary reliable delivery format.
  • Use WEBP as a secondary artifact for future native-sticker-capable channels.
  • If the input is only !brat with no text, ask briefly for the text.
  • If generation fails, apologize briefly and say the brat render failed.

Scripts

  • scripts/render_brat.py: deterministic renderer for PNG/WEBP output
  • scripts/handle_brat_command.py: parser for !brat-style input that emits JSON with generated paths
安全使用建议
This skill appears coherent and limited to generating images. Before installing, note: (1) it requires Python with the Pillow library and access to system TTF fonts — otherwise rendering will fail; (2) it writes output files under scripts/out (the code sanitizes paths to avoid traversal); and (3) there is no network or credential usage in the bundle. If the source is untrusted, run the scripts in a restricted environment first (or inspect/execute them locally) — but from a security/permission perspective the behavior matches the stated purpose.
功能分析
Type: OpenClaw Skill Name: bratification Version: 1.0.1 The 'bratification' skill bundle is a legitimate utility for generating text-based images in the 'brat' aesthetic. The Python scripts (scripts/render_brat.py and scripts/handle_brat_command.py) use the Pillow library for image processing and include robust path sanitization logic to prevent directory traversal when saving outputs. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description describe text-to-image 'brat' rendering and the bundled Python scripts implement exactly that (PNG/WEBP output, !brat command parsing, font handling, sticker-size options). There are no unrelated credentials, binaries, or capabilities requested.
Instruction Scope
SKILL.md instructs running the included scripts and the scripts only read inputs, measure fonts, render images, and write outputs into a managed scripts/out tree. Path sanitization is implemented; the code does not read unrelated files, environment variables, or contact external endpoints.
Install Mechanism
No install spec is provided (instruction-only). Code is included in the bundle but there is no network download or external installer declared. This minimizes install-time risk.
Credentials
The skill requires no environment variables or credentials. The only external dependencies are local font files and the Python imaging library (Pillow), which are proportional to rendering images.
Persistence & Privilege
The skill is not marked always:true and uses default autonomous invocation; it does not modify other skills or system-wide settings. It only creates files under its own scripts/out directory.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bratification
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bratification 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Improved font handling with cross-platform Arial Narrow fallback for consistent renders. - `handle_brat_command.py` now sanitizes slug/output names and always writes to the managed `scripts/out` directory. - Documentation updated to reflect these output and font changes.
v1.0.0
Initial release of bratification. - Generate brat-style cover images and WhatsApp-safe sticker-like outputs from custom text. - Provides scripts for rendering images directly or interpreting `!brat` commands. - Outputs square, white-background, Arial Narrow images sized at 512x512 for sticker use. - Delivers PNG format by default, with optional WEBP for sticker-capable channels. - Gracefully handles empty input and generation errors.
元数据
Slug bratification
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

bratification 是什么?

Generate brat-style text cover images and sticker-like WhatsApp-safe outputs from custom text. Use when the user asks to make a brat or brat-gen style cover,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 bratification?

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

bratification 是免费的吗?

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

bratification 支持哪些平台?

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

谁开发了 bratification?

由 sqizzo(@sqizzo)开发并维护,当前版本 v1.0.1。

💬 留言讨论