← 返回 Skills 市场
ohernandez-dev-blossom

Base64 Encode

作者 Omar Hernandez · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install base64-encode
功能描述
Encode or decode text using Base64, URL percent-encoding, or HTML entities. Use when the user asks to encode, decode, base64 encode, base64 decode, URL encod...
使用说明 (SKILL.md)

Base64 / URL / HTML Encoder & Decoder

Encode or decode text using Base64, URL percent-encoding, or HTML entities. Processes text client-side with no external calls.

Input

  • The text string to encode or decode
  • Encoding type: base64 (default), url, or html
  • Direction: encode (default) or decode

Output

  • The transformed string
  • A brief note on the encoding type and direction applied

Instructions

Base64 (type: base64)

Encode:

  1. Take the input string.
  2. Convert each character to its UTF-8 byte sequence (handle non-ASCII/Unicode correctly).
  3. Apply Base64 encoding using the standard alphabet (A–Z, a–z, 0–9, +, /).
  4. Pad with = characters to make the length a multiple of 4.
  5. The algorithm equivalent is: btoa(unescape(encodeURIComponent(input))).

Decode:

  1. Take the Base64-encoded input.
  2. Validate it contains only valid Base64 characters (A–Z, a–z, 0–9, +, /, =).
  3. Decode using: decodeURIComponent(escape(atob(input))).
  4. Return the original UTF-8 string.

URL Percent-Encoding (type: url)

Encode:

  1. Apply encodeURIComponent semantics: encode every character except A–Z a–z 0–9 - _ . ! ~ * ' ( ).
  2. Spaces become %20 (not +).
  3. Non-ASCII characters are UTF-8 encoded then percent-escaped.

Decode:

  1. Replace each %XX sequence with the corresponding byte.
  2. Interpret the resulting bytes as UTF-8.
  3. Equivalent to decodeURIComponent(input).

HTML Entities (type: html)

Encode: Replace these characters with their named HTML entities:

  • \x3C<
  • >>
  • &&
  • ""
  • ''

Decode: Reverse the mapping — replace each HTML entity with its literal character.

Options

  • type: base64 | url | html — default: base64
  • direction: encode | decode — default: encode

Examples

Base64 encode: Input: Hello, World! Output: SGVsbG8sIFdvcmxkIQ==

Base64 encode (Unicode): Input: Héllo Output: SMOpbGxv

Base64 decode: Input: SGVsbG8sIFdvcmxkIQ== Output: Hello, World!

URL encode: Input: name=John Doe&city=New York Output: name%3DJohn%20Doe%26city%3DNew%20York

URL decode: Input: hello%20world%21 Output: hello world!

HTML encode: Input: \x3Cscript>alert("XSS")\x3C/script> Output: <script>alert("XSS")</script>

HTML decode: Input: <h1>Hello & welcome</h1> Output: \x3Ch1>Hello & welcome\x3C/h1>

Error Handling

  • Invalid Base64 input for decode: If the string contains characters outside the Base64 alphabet or has incorrect padding, report: Error: Invalid Base64 string. Ask the user to verify the input.
  • Invalid URL encoding for decode: If a %XX sequence uses non-hex digits or the sequence is incomplete, report: Error: Invalid URL encoded string.
  • Empty input: Return an empty string with a note that no input was provided.
  • Binary/non-text data: Warn the user that Base64 encoding of binary data requires the raw bytes, which cannot be provided as plain text — suggest they use a tool that accepts file uploads.
安全使用建议
This skill appears to do exactly what it says: only text encoding/decoding with no external calls or credentials. Consider: (1) the SKILL.md uses browser JS functions as examples — in a non-browser agent those should be implemented equivalently to preserve correct UTF-8 handling; (2) the skill warns it cannot handle raw binary file uploads — use a file-capable tool for binary data; and (3) autonomous invocation by agents is allowed by default on the platform, but given this skill's limited scope that is low risk. If you need file/binary support or URL-safe Base64 variants, confirm the implementation details before relying on it.
功能分析
Type: OpenClaw Skill Name: base64-encode Version: 1.0.0 The skill is a standard utility for Base64, URL, and HTML encoding/decoding. The instructions in SKILL.md are purely functional, process data locally without external network calls or file system access, and contain no evidence of malicious intent or prompt injection.
能力评估
Purpose & Capability
Name and description match the actual requirements and behavior: a simple encoder/decoder that needs no binaries, env vars, or installs.
Instruction Scope
SKILL.md confines actions to client-side string transformations (Base64, percent-encoding, HTML entities) and explicitly states no external calls. It references browser JS helpers (btoa/atob/encodeURIComponent/decodeURIComponent/escape/unescape), which is fine for specification but may require different implementations in non-browser runtimes; this is a compatibility note rather than a security concern.
Install Mechanism
No install spec and no code files — instruction-only skill, so nothing is downloaded or written to disk.
Credentials
Requires no environment variables, credentials, or config paths. The requested surface is minimal and appropriate for the described functionality.
Persistence & Privilege
always is false and the skill does not request persistent system presence or modify other skills or agent-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install base64-encode
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /base64-encode 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the base64-encode skill. - Supports encoding and decoding of text using Base64, URL percent-encoding, or HTML entities. - Handles Unicode and non-ASCII characters correctly in Base64 and URL modes. - Provides clear error messages for invalid input and empty input scenarios. - Offers options to choose encoding type (`base64`, `url`, `html`) and direction (`encode`, `decode`).
元数据
Slug base64-encode
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Base64 Encode 是什么?

Encode or decode text using Base64, URL percent-encoding, or HTML entities. Use when the user asks to encode, decode, base64 encode, base64 decode, URL encod... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 Base64 Encode?

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

Base64 Encode 是免费的吗?

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

Base64 Encode 支持哪些平台?

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

谁开发了 Base64 Encode?

由 Omar Hernandez(@ohernandez-dev-blossom)开发并维护,当前版本 v1.0.0。

💬 留言讨论