/get-toony:toon-referencefrom get-toony
Reference for the TOON (Token-Oriented Object Notation) format — what it is, when it helps, when it doesn't, and how to invoke the @toon-format/toon CLI. Read this before using the other skills in this plugin if the user is unfamiliar with TOON.
Ships in get-toony. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
TOON (Token-Oriented Object Notation) is a compact, lossless re-encoding of the JSON data model designed for LLM input. It combines YAML-style indentation for nesting with CSV-style tables for uniform arrays. Spec: https://github.com/toon-format/spec. Reference implementation: https://github.com/toon-format/toon.
[N] array lengths and {fields} headers give the model an explicit schema.If the user's data is one of those, say so before converting.
The reference implementation is a Node CLI: @toon-format/toon.
Install on demand (no global pollution):
npx -y @toon-format/toon --help
Common forms:
# JSON → TOON (stdin/stdout)
cat data.json | npx -y @toon-format/toon encode > data.toon
# TOON → JSON (round-trip)
cat data.toon | npx -y @toon-format/toon decode > data.json
# File in / file out
npx -y @toon-format/toon encode --input data.json --output data.toon
If the user prefers a persistent install, suggest npm i -g @toon-format/toon and then use toon directly. Don't install globally without asking.
After conversion, ALWAYS:
.toon back to JSON and diff (after canonicalising key order) against the original. Must be lossless.tiktoken or npx ttok) and report the saving in absolute and percentage terms.If the round-trip fails, surface the diff to the user and do not silently proceed.
.toontext/toon (UTF-8)This plugin writes nothing persistent. If the user wants to cache conversion artefacts (rare), put them at:
${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/get-toony/cache/
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/batch-to-toonConvert a directory of JSON / CSV / YAML files into TOON in one pass. Per-file round-trip checks, aggregate token-saving report, and a manifest so partial runs are resumable. Use when the user has a folder of structured data destined for LLM prompts./csv-to-toonConvert a CSV file into TOON. CSV is already token-efficient for flat tables, but TOON adds explicit array-length and field-header guardrails that improve LLM accuracy on the same data. Use this when the destination is an LLM prompt, not when CSV itself is the final consumer./json-to-toonConvert 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./setup-toolingInstall or verify TOON ecosystem tooling — the JS reference CLI (@toon-format/toon), Python implementations (xaviviro/python-toon, ScrapeGraphAI/toonify), the Java port (toon-format/toon-java), and adjacent JSON libraries like jdereg/json-io. Picks the right tool for the user's runtime and records what's installed in plugin config./structure-long-promptUse when the user wants to convert CLAUDE.md, a system prompt, or any long instruction file into TOON — or asks how to compress / restructure a long prose prompt. Pushes back on TOON for prose (wrong tool) and recommends XML-tag section delimiters, the Anthropic-recommended pattern for long/complex prompts. Acts as a guardrail against TOON-ifying instruction files where the format would degrade comprehension.get-toony@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin get-toony