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-code

Installs 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
1sickn33 avatarbackend-architectsickn33/antigravity-awesome-skillsbackend architect1.3Kskills.sh installs
2cxuu avatargo-namingcxuu/golang-skillsUse when naming any Go identifier — packages, types, functions, methods, variables, constants, or receivers — to ensure idiomatic, clear names. Also use when a 1.3Kskills.sh installs
3neolabhq avatarreview-prneolabhq/context-engineering-kitReview an existing GitHub pull request and post inline review comments on its diff. Use when the changes are on an opened PR rather than your local working tree1.3Kskills.sh installs
4liuzhengdongfortest avatarcs-refactorliuzhengdongfortest/codestablecs refactor1.2Kskills.sh installs
5sickn33 avatararchitecturesickn33/antigravity-awesome-skillsarchitecture1.2Kskills.sh installs
6mastepanoski avatarui-design-reviewmastepanoski/claude-skillsComprehensive visual design and aesthetics evaluation. Analyzes typography, color, spacing, hierarchy, consistency, branding, and current product-category conve1.2Kskills.sh installs