/get-toony:batch-to-toonfrom get-toony
Convert 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.
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 many files at once.
--recursive to walk subdirs..json, .csv, .yaml, .yml. Limit with --ext.<source>/toon/. Mirrors the input layout.config.json (set by setup-tooling); fall back to npx -y @toon-format/toon.Glob the source dir for matching files. Skip anything already present in the output dir with the same mtime (idempotent reruns).
Create or load a manifest at:
${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/get-toony/state/<batch-id>.json
Each row: input path, type, status (pending / done / failed / skipped-no-savings), original tokens, TOON tokens, saving %, error (if any).
For each file:
json-to-toon skill logic (validate → encode → round-trip).csv-to-toon skill logic (CSV → JSON → encode).yq -o=json or python3 -c "import yaml,json; print(json.dumps(yaml.safe_load(open(p))))"), then encode.Round-trip every file. If any fails, mark failed in the manifest and continue — don't abort the batch.
Token saving below 5%? Mark skipped-no-savings and leave the original alone. TOON-ifying tiny savings is just churn.
At the end, print:
Re-running on the same source dir re-uses the existing manifest. done rows are skipped; pending and failed are retried. --reset forces a clean run.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/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./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