← Back to Skills Marketplace
zmkkevin

Shrink JSON in Prompts (TOON Encoder/Decoder)

by kevin Zhang · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
97
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install toon-json
Description
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...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install toon-json
  3. After installation, invoke the skill by name or use /toon-json
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug toon-json
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.

How do I install Shrink JSON in Prompts (TOON Encoder/Decoder)?

Run "/install toon-json" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Shrink JSON in Prompts (TOON Encoder/Decoder) free?

Yes, Shrink JSON in Prompts (TOON Encoder/Decoder) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Shrink JSON in Prompts (TOON Encoder/Decoder) support?

Shrink JSON in Prompts (TOON Encoder/Decoder) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Shrink JSON in Prompts (TOON Encoder/Decoder)?

It is built and maintained by kevin Zhang (@zmkkevin); the current version is v1.0.0.

💬 Comments