← 返回 Skills 市场
Shrink JSON in Prompts (TOON Encoder/Decoder)
作者
kevin Zhang
· GitHub ↗
· v1.0.0
· MIT-0
97
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install toon-json
功能描述
Compress, encode, and decode large JSON payloads into a compact, reversible TOON string to reduce token usage in LLM prompts and tool payloads. Use when you...
安全使用建议
This skill appears coherent and limited to local JSON encoding/decoding, but the source listing you provided is truncated — I could not review the entire file. Before installing or running it, review the complete scripts/toon_json.py to confirm there are no network calls, subprocess exec/os operations, or hidden telemetry. If you cannot inspect the full file, run it in a sandbox or isolated environment and/or open the file to verify it only parses and transforms data (no requests, no subprocess.exec, no os.system, etc.). Also consider whether you will push sensitive data through this tool and test with non-sensitive samples first.
功能分析
Type: OpenClaw Skill
Name: toon-json
Version: 1.0.0
The toon-json skill is a legitimate utility designed to compress JSON payloads into a compact format (TOON) to reduce token usage in LLM interactions. The implementation in scripts/toon_json.py is a self-contained parser and encoder using only Python standard libraries, with no evidence of data exfiltration, malicious execution, or prompt injection attempts.
能力评估
Purpose & Capability
Name, description, SKILL.md, and the included Python script all point to a local JSON encoding/decoding utility; there are no declared env vars, binaries, or config paths that don't match this purpose.
Instruction Scope
Runtime instructions only ask the agent/user to run the bundled script against stdin/stdout (encode/decode/schema). The SKILL.md does not instruct reading unrelated files or sending data to external endpoints. However, the source in the prompt is truncated, so I cannot confirm there are no additional runtime behaviors later in the file.
Install Mechanism
No install spec is present (instruction-only skill with a local script). This is low risk — nothing is downloaded or written to disk by an installer.
Credentials
The skill declares no required credentials, environment variables, or config paths. The visible code uses only standard libraries (json, base64, hashlib, re, sys) consistent with its purpose.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent presence or elevated agent privileges in the provided metadata.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install toon-json - 安装完成后,直接呼叫该 Skill 的名称或使用
/toon-json触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of toon-json skill for encoding and decoding large JSON payloads into compact, reversible TOON strings.
- Supports both standard and schema-based encoding to maximize compression, especially with repeated keys.
- Provides command-line utilities for encoding, decoding, and schema derivation using `scripts/toon_json.py`.
- Designed for lossless JSON round-tripping; rejects non-JSON values and invalid keys.
- Includes operational guidance for choosing between schema and schema-less modes.
元数据
常见问题
Shrink JSON in Prompts (TOON Encoder/Decoder) 是什么?
Compress, encode, and decode large JSON payloads into a compact, reversible TOON string to reduce token usage in LLM prompts and tool payloads. Use when you... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。
如何安装 Shrink JSON in Prompts (TOON Encoder/Decoder)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install toon-json」即可一键安装,无需额外配置。
Shrink JSON in Prompts (TOON Encoder/Decoder) 是免费的吗?
是的,Shrink JSON in Prompts (TOON Encoder/Decoder) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Shrink JSON in Prompts (TOON Encoder/Decoder) 支持哪些平台?
Shrink JSON in Prompts (TOON Encoder/Decoder) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Shrink JSON in Prompts (TOON Encoder/Decoder)?
由 kevin Zhang(@zmkkevin)开发并维护,当前版本 v1.0.0。
推荐 Skills