/get-toony:csv-to-toonfrom get-toony
Convert 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.
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.
Convert a CSV file into TOON. The reference CLI doesn't accept CSV directly, so this skill goes CSV → JSON → TOON.
,. Detect TSV (\t) automatically by extension.true/false/null); fall back to strings. The user can disable to keep everything as strings..toon extension.Validate the CSV parses cleanly:
python3 -c "import csv,sys; list(csv.DictReader(open(sys.argv[1])))" <src>
Convert to a JSON array of objects (this is the "obvious" CSV-to-JSON shape and the one TOON's tabular form is built for):
import csv, json
with open(src) as f:
rows = list(csv.DictReader(f, delimiter=delim))
# type-coerce numerics / booleans / nulls if enabled
json.dump(rows, open(tmp_json, 'w'))
Encode to TOON:
npx -y @toon-format/toon encode --input <tmp_json> --output <dst>
For uniform CSV-derived data, TOON should pick the tabular arr[N]{f1,f2,...} form automatically — that's the whole point.
Round-trip check — decode TOON, re-emit as CSV with the same column order, diff against the original (after stripping trailing newlines / re-quoting differences).
Token delta — count tokens on <src> and <dst> and report. CSV is already compact, so the absolute saving is usually small but the structural guardrails matter for LLM accuracy. State both.
If the user wants this purely so a downstream non-LLM consumer can read TOON instead of CSV, that's almost certainly a mistake — say so and suggest staying on CSV. TOON's value is on the LLM-input side.
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./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./toon-referenceReference 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.get-toony@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin get-toony