toon-formatter
Token-Oriented Object Notation (TOON) format expert for 30-60% token savings on structured data. Auto-applies to arrays with 5+ items, tables, logs, API responses, database results. Supports tabular, inline, and expanded formats with comma/tab/pipe delimiters. Triggers on large JSON, data optimization, token reduction, structured data, arrays, tables, logs, metrics, TOON.
npx skills add majiayu000/claude-skill-registry --skill toon-formatter --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 Format Expert **TOON (Token-Oriented Object Notation)** saves 30-60% tokens on structured data by eliminating repetitive keys in uniform arrays. ## When to Use **Automatically apply TOON when:** - Arrays with 5+ similar objects - API responses with repeated structure - Database query results - Log entries, events, transactions - Metrics, analytics, benchmarks - Any tabular data **Keep as JSON when:** - Small arrays (<5 items) - Deeply nested non-uniform data - Single objects - Narrative text or instructions ## Format Specification ### Tabular Format (Most Common) For arrays of uniform objects: ``` [count]{field1,field2,field3}: value1,value2,value3 value1,value2,value3 ``` **Example - JSON (120 tokens):** ```json [ {"id": 1, "name": "Alice", "role": "admin", "active": true}, {"id": 2, "name": "Bob", "role": "user", "active": true}, {"id": 3, "name": "Carol", "role": "user", "active": false} ] ``` **TOON (70 tokens, 42% savings):** ``` [3]{id,name,role,active}: 1,Alice,admin,true 2,Bob,user,true 3,Carol,user,false ``` ### Inline Format For primitive arrays (10 or fewer items): ``` fieldName[count]: value1,value2,value3 ``` **Example:** ``` tags[4]: javascript,react,nodej
- When to Use
- Format Specification
- Tabular Format (Most Common)
- Inline Format
- Expanded Format
- Delimiters
- Key Folding (Nested Objects)
- Special Values
- Conversion Patterns
- API Response
- Log Entries
- Database Results
- Mixed Content
- Decision Flowchart
Encode JSON to TOON Decode TOON to JSON Check if TOON recommended Analyze token savings
What does the toon-formatter skill do?
Token-Oriented Object Notation (TOON) format expert for 30-60% token savings on structured data. Auto-applies to arrays with 5+ items, tables, logs, API responses, database results. Supports tabular, inline, and expanded formats with comma/tab/pipe delimiters. Triggers on large JSON, data optimization, token reduction, structured data, arrays, tables, logs, metrics, TOON.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill toon-formatter --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.
