
Toon Format
If you're hitting token limits or paying per-token on LLM APIs, this skill converts your JSON to TOON format, which cuts tokens by around 40% using YAML-style indentation for objects and CSV-style tables for arrays. It's genuinely more compact for uniform data like employee records or product catalogs. The encode/decode functions round-trip cleanly, and there's a CLI for quick conversions. Works well when you're injecting structured context into prompts or doing RAG retrieval where you have lots of similar objects. The format is readable enough that models understand it with a short system prompt explaining the bracket notation.
- skills.sh installs
- 1.3K
- GitHub stars
- 61
- last updated
- Jul 14, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill toon-format --agent claude-codeInstalls into .claude/skills of the current project.
Files
Token-Oriented Object Notation (TOON)
Skill by ara.so — Daily 2026 Skills collection.
TOON is a compact, human-readable encoding of the JSON data model that minimizes tokens for LLM input. It combines YAML-style indentation for nested objects with CSV-style tabular layout for uniform arrays, achieving ~40% token reduction while maintaining or improving LLM comprehension accuracy.
Installation
# npm
npm install @toon-format/toon
# pnpm
pnpm add @toon-format/toon
# yarn
yarn add @toon-format/toon
CLI
# Install globally
npm install -g @toon-format/toon
# Convert JSON file to TOON
toon encode input.json
toon encode input.json -o output.toon
# Convert TOON back to JSON
toon decode input.toon
toon decode input.toon -o output.json
# Pipe support
cat data.json | toon encode
cat data.toon | toon decode
# Pretty-print JSON output
toon decode input.toon --pretty
# Show token count comparison
toon encode input.json --stats
Core API
encode / stringify
import { encode, decode } from '@toon-format/toon';
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- Category
- Code Review & Quality
- First seen
- Apr 16, 2026
More from aradotso/trending-skills
All 251- Translate Book Parallel1.3K
- Trump Code Market Signals1.3K
- Vinext Vite Nextjs1.3K
- Voicebox Voice Synthesis1.3K
- Aracli Deploy Management1.2K
- Codex Autoresearch Loop1.2K
- Fabro Workflow Factory1.2K
- Grimmory Self Hosted Library1.2K
- Keyid Agent Kit Mcp1.2K
- Kimodo Motion Diffusion1.2K
- Nightingale Karaoke1.2K
- Openhanako Personal Ai Agent1.2K
- Slug Font Rendering1.2K
- Taiwan Md Knowledge Base1.2K
- Witr Process Inspector1.2K
- Zeroboot Vm Sandbox1.2K
- Code Review Graph1.1K
- Flash Moe Inference1.1K
- Ghostling Libghostty Terminal1.1K
- 724 Office Ai Agent1K
- Claude Peers Mcp1K
- My Brain Is Full Crew1K
- Weixin Agent Sdk1K
- Dingtalk Workspace Cli941