From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/get-toony:csv-to-toonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Convert a CSV file into TOON. The reference CLI doesn't accept CSV directly, so this skill goes CSV → JSON → TOON.
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.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin get-toonySearches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.