toon
SKILL.md
TOON Context Compression
Pipe any command output through toon to compress JSON and save ~40% tokens.
Usage
# API responses
curl -s "https://api.example.com/data" | toon
# JSON files
cat data.json | toon
# Any command - safe on non-JSON (passes through unchanged)
some_command | toon
Install
# Copy script to PATH
cp scripts/toon ~/.local/bin/
chmod +x ~/.local/bin/toon
Requires: npx (Node.js)
Example
[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}]
ā
[2]{id,name}:
1,Alice
2,Bob
When to Use
- Always when fetching JSON APIs
- Always when reading JSON files into context
- Safe to use on any output ā non-JSON passes through
Reference
- Format spec: https://toonformat.dev
- CLI:
@toon-format/cli
Weekly Installs
2
Repository
openclaw/skillsGitHub Stars
3.8K
First Seen
Feb 19, 2026
Security Audits
Installed on
amp2
opencode2
kimi-cli2
codex2
github-copilot2
gemini-cli2