toon
Skill1 starsChanged 5 months agoMITView on GitHub
Convert JSON or YAML to TOON format for token-efficient LLM input. Use when reducing prompt token count on tabular or structured data, or when TOON output is explicitly requested.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- rairahulr1/toontheir own version, first seen Oct 17, 2026
- sheikhsajid69/toon-skilltheir own version, first seen Jul 3, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- sheikhsajid69/toon-skill★ 3same name
- rairahulr1/toon★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audit-legalSkill
- audit-securitySkill
- echartsSkill
- explainSkill
- file-changelogSkill
- file-claudeSkill
- file-licenseSkill
- file-projectSkill
- file-readmeSkill
- frontendSkill
- hooksSkill
- lean-reviewSkill
- loopSkill
- masterpromptSkill
- mcpSkill
- mermaidSkill
- new-projectSkill
- outputstyleSkill
- proofreadSkill
- rulesSkill
- settingsSkill
- skillsSkill
- sotaSkill
- subagentsSkill
- tasksSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Do not invoke when:
- Very specific: line 32
Always read rules/toon-style.md before converting — it is the authoritative syntax reference for this harness.
- Distinctive: line 34
Never output TOON with a trailing newline — the spec mandates its absence.
- Distinctive: line 35
Never use single quotes — only double quotes for values that require quoting.
- Distinctive: line 36
Always prepend the format declaration for LLM-bound output (§5).
- Very specific: line 37
Always wrap TOON output in a fenced code block with the toon language tag.
- Distinctive: line 38
Always fall back to minified JSON with a reason when TOON does not apply.
- Very specific: line 67
Use the exact text from toon-style.md §2.6, verbatim.
- Distinctive: line 71
When TOON is not applicable, output minified JSON and state the reason:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
TOON Conversion
1§ Purpose
Convert JSON or YAML structured data to valid TOON (Token-Oriented Object Notation, spec v3.2, May 2026 — current) for LLM-bound INPUT — data the model reads, not a model-output target. Always prepend the format declaration so models parse correctly without native TOON support.
2§ Use when
- User provides JSON or YAML and wants to reduce token usage.
- User explicitly requests TOON output or mentions token efficiency.
- Composing a prompt with data the model READS: a uniform array, or an object whose bulk is one or more uniform arrays (named-array form), or a moderately nested but regular structure — TOON is an input format, not a model-output target.
Do not invoke when:
- Data will be passed to a non-LLM parser (API, database, tool definition) or rendered for humans (GitHub-facing docs).
- Tabular eligibility is low: deeply nested or heterogeneous fields between objects — minified JSON usually wins; fall back (§6).
- The header does not amortize: too few rows or too few fields to repay it. Five rows is the default heuristic — judge by rows × fields, not a fixed count: a 2-column table rarely pays, a wide table can pay below five.
3§ Hard constraints
- Always read
rules/toon-style.mdbefore converting — it is the authoritative syntax reference for this harness. - Never output TOON with a trailing newline — the spec mandates its absence.
- Never use single quotes — only double quotes for values that require quoting.
- Always prepend the format declaration for LLM-bound output (§5).
- Always wrap TOON output in a fenced code block with the
toonlanguage tag. - Always fall back to minified JSON with a reason when TOON does not apply.
4§ Conversion rules
4.1§ Structure selection
Identify the input shape and select the matching TOON structure:
- Single flat or nested object → flat object or nested object syntax.
- Array where every object shares identical field names → tabular array syntax.
- Array nested inside a parent object → named array syntax.
- Deeply nested or heterogeneous fields → minified JSON fallback (§6).
4.2§ Value encoding
Apply encoding rules from toon-style.md §2.3 exactly.
4.3§ Key folding
Collapse a chain of single-key nested objects into a dotted path:
server.host: localhost
server.port: 8080Apply only when every level in the chain has exactly one key. Do not fold when any level has sibling keys — that would misrepresent the structure.
4.4§ Syntax examples
Syntax reference and all examples: toon-style.md §2.4.
5§ Format declaration
Use the exact text from toon-style.md §2.6, verbatim.
Omit only when output is stored or displayed for humans, not passed to an LLM.
6§ Fallback
When TOON is not applicable, output minified JSON and state the reason:
TOON pays off when a shared header amortizes over many uniform rows. This data
[reason], so minified JSON is used instead (~15% token savings over pretty-printed JSON).Common reasons: heterogeneous fields between objects; header does not amortize (too few rows or fields); low tabular eligibility / deep nesting where minified JSON wins; non-LLM or human-facing destination.
7§ Output contract
Must include:
- Format declaration (for LLM-bound output)
- TOON in a fenced
tooncode block, no trailing newline inside the block - Estimated token savings relative to pretty-printed JSON
Must not include:
- Trailing newline at the end of the TOON content
- Single-quoted values
- Inline comments within tabular data rows
- TOON output intended for non-LLM consumption
8§ Associated documents
- [rules/toon-style.md] — authoritative TOON syntax reference for this harness; read before every conversion. No skill-local assets: the rule fully specifies the output format.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

