← Back to Skills Marketplace
Base64编解码工具
by
freedompixels
· GitHub ↗
· v1.0.0
· MIT-0
47
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cn-base64-tool
Description
通过纯 Python 标准库实现字符串和文件的 Base64 编解码,支持目录批量编码,无需外部依赖。
README (SKILL.md)
cn-base64-tool - Base64 编解码工具
纯 Python 标准库实现的 Base64 编解码工具。
功能
- 编码:将字符串或文件内容编码为 Base64
- 解码:将 Base64 字符串还原为原始内容
- 文件支持:支持对文件进行 Base64 编码/解码
使用方式
# 编码字符串
python3 cn_base64_tool.py encode "Hello World"
# 解码 Base64 字符串
python3 cn_base64_tool.py decode "SGVsbG8gV29ybGQ="
# 编码文件
python3 cn_base64_tool.py encode_file input.png
# 解码文件
python3 cn_base64_tool.py decode_file output.b64 output.png
# 批量编码(目录)
python3 cn_base64_tool.py encode_dir ./my_folder
技术说明
- 纯 Python 标准库(
base64、argparse) - 无外部依赖
- 支持 UTF-8 字符串
Usage Guidance
这个技能的代码本身是单个、无网络的 Base64 工具,但说明文档和示例命令不匹配实际脚本:SKILL.md 提到的 encode_dir、示例脚本名(cn_base64_tool.py)和“可传入 Base64 文件”行为在 scripts/base64_tool.py 中不存在或未实现。建议在安装/使用前:
- 在受限或沙箱环境中打开并审阅 scripts/base64_tool.py(已经包含在包中)。
- 注意 decode_file 会把传入的字符串当作 Base64 内容直接解码并写入你指定的输出路径——不要用它覆盖系统关键文件或提供不受信任的输出路径。
- 如果你需要批量目录编码或“文件作为输入”的行为,先联系作者或修正脚本/文档再使用;否则按当前脚本的实际命令(encode/decode/encode_file/decode_file)来调用。
由于这是文档与实现不一致造成的可疑之处(可能只是维护疏漏),我将整体评估为“可疑”,建议在确认并修正说明或源代码前不要在生产/敏感环境中使用。
Capability Analysis
Type: OpenClaw Skill
Name: cn-base64-tool
Version: 1.0.0
The bundle is a standard Base64 encoding/decoding utility implemented using Python's built-in libraries. The code in scripts/base64_tool.py performs simple file and string operations as described in SKILL.md, with no evidence of network activity, data exfiltration, or malicious intent.
Capability Assessment
Purpose & Capability
声明为“支持目录批量编码、纯标准库实现”的 Base64 工具;代码实现确实是用标准库完成的单文件编码/解码,但并不包含“encode_dir/目录批量编码”功能,且脚本路径/文件名在 SKILL.md 示例中与实际脚本不匹配。功能声明与实际能力不完全一致。
Instruction Scope
SKILL.md 指示使用 'cn_base64_tool.py' 和包含 'encode_dir'、可传入“Base64 字符串或文件”等用法,但实际脚本位于 scripts/base64_tool.py,且命令子项并未实现这些功能;说明文档会误导用户并可能导致错误操作(例如以为可传入文件而脚本会把文件名当作 Base64 字符串解码)。
Install Mechanism
无安装说明、无外部依赖、无远程下载。该包是指令/脚本型,未包含可疑安装来源或二进制。
Credentials
未请求任何环境变量、凭据或配置路径。脚本仅读取/写入由用户指定的文件路径,未尝试访问网络或其它系统凭据,所需权限与其宣称的用途一致。
Persistence & Privilege
无 always:true、无修改其他技能或系统配置的行为;技能为用户可调用且默认不强制常驻,权限与用途相符。
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install cn-base64-tool - After installation, invoke the skill by name or use
/cn-base64-tool - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of cn-base64-tool:
- Base64 encode and decode for strings via command line.
- Supports file Base64 encoding and decoding.
- Offers batch encoding for directories.
- Built with pure Python standard libraries; no external dependencies.
- Handles UTF-8 strings.
Metadata
Frequently Asked Questions
What is Base64编解码工具?
通过纯 Python 标准库实现字符串和文件的 Base64 编解码,支持目录批量编码,无需外部依赖。 It is an AI Agent Skill for Claude Code / OpenClaw, with 47 downloads so far.
How do I install Base64编解码工具?
Run "/install cn-base64-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Base64编解码工具 free?
Yes, Base64编解码工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Base64编解码工具 support?
Base64编解码工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Base64编解码工具?
It is built and maintained by freedompixels (@freedompixels); the current version is v1.0.0.
More Skills