formatting-with-toon
Formats structured data using TOON v2.0 to minimize tokens while preserving readability. Use when outputs include tables, logs, events, or repeated records and token budgets matter. Triggers include "format table", "structured data", "TOON", "minimize tokens", or "large list".
npx skills add majiayu000/claude-skill-registry --skill toon-formatter-ven0m0-claude-config --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# TOON v2.0 Formatter Skill (AGGRESSIVE MODE) ## Purpose **AGGRESSIVELY** apply TOON v2.0 format to save 30-60% tokens on structured data. Use TOON **by default** for biggish, regular data. Use native Zig encoder for 20x performance. ## When to Use (AGGRESSIVE) **TOON ALL DAY** - Use automatically for: - ✅ Arrays with ≥ 5 similar items - ✅ Tables, logs, events, transactions, analytics - ✅ API responses with uniform structure (≥60% field overlap) - ✅ Database query results - ✅ Repeatedly-used, structured data in prompts - ✅ RAG pipelines, tool calls, agents passing data around - ✅ Benchmarks/evals where prompt size = money - ✅ Shape is more important than labels - ✅ You know what each column means - ✅ Can declare headers once, go row-by-row **MAYBE, BUT NOT AUTOMATICALLY** - Be selective when: - ⚠️ Human collaborators reading/editing data a lot - ⚠️ APIs/tools expect JSON (use JSON on wire, TOON in prompts) - ⚠️ Structure is uneven (many optional keys, weird nesting) **NO, JUST DON'T** - Stick to JSON/text for: - ❌ Short arrays (< 5 items) - ❌ One-off examples in docs - ❌ Narrative text, instructions, essays - ❌ Deep, irregular trees where hierarchy matters ## What is TOON v2.0? **T
- Purpose
- When to Use (AGGRESSIVE)
- What is TOON v2.0?
- Three Array Types
- Three Delimiters
- Key Folding
- Progressive Details
- Process
- 1. Detect Suitable Data
- 2. Estimate Token Savings
- 3. Apply TOON v2.0 Aggressively
- 4. Show Formatted Output
- Best Practices
- Always Show Format Decision
What does the formatting-with-toon skill do?
Formats structured data using TOON v2.0 to minimize tokens while preserving readability. Use when outputs include tables, logs, events, or repeated records and token budgets matter. Triggers include "format table", "structured data", "TOON", "minimize tokens", or "large list".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill toon-formatter-ven0m0-claude-config --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
