From get-toony
Convert a JSON file (or JSON on stdin / pasted into chat) into TOON format using the @toon-format/toon CLI. Verifies losslessness via round-trip decode and reports the token-count saving.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin get-toonyThis skill uses the workspace's default tool permissions.
Convert one JSON document into TOON.
Conducts multi-round deep research on GitHub repos via API and web searches, generating markdown reports with executive summaries, timelines, metrics, and Mermaid diagrams.
Share bugs, ideas, or general feedback.
Convert one JSON document into TOON.
.json file.curl to a temp file..toon extension, in the same directory as the source. For pasted inline JSON, default to a temp file and print the result.Validate the source is well-formed JSON: python3 -c "import json,sys; json.load(open(sys.argv[1]))" <path>. If it fails, surface the parser error and stop — don't try to "fix" the JSON.
Convert: npx -y @toon-format/toon encode --input <src> --output <dst> (or pipe via stdin if the input is inline).
Round-trip check — decode the result back to JSON and compare against the source with key-order canonicalisation:
npx -y @toon-format/toon decode --input <dst> --output /tmp/toon-rt.json
python3 -c "import json; a=json.load(open('<src>')); b=json.load(open('/tmp/toon-rt.json')); import sys; sys.exit(0 if a==b else 1)"
If the round-trip differs, stop and report the diff — do not present a lossy output as success.
Token delta — count tokens on both files and report:
# Prefer ttok if available, otherwise tiktoken
npx -y ttok < <src>; npx -y ttok < <dst>
Report: original tokens, TOON tokens, absolute delta, percentage saving.
Tell the user where the file is and the token saving. If the saving is negative or trivial (<10%), point it out — TOON isn't always the right format (deeply nested or non-uniform JSON; see toon-reference).