toon

Solid

Token-Oriented Object Notation (TOON) format for LLM-optimized data encoding. Converts JSON to compact, human-readable format that minimizes tokens (~40% reduction) while improving LLM comprehension accuracy.

Data & Documents 24 stars 6 forks Updated today MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
47
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# TOON Format Guide ## Overview TOON (Token-Oriented Object Notation) is a compact encoding of JSON designed for LLM input. Combines YAML-style indentation w/ CSV-style tables for uniform arrays. **Key benefits:** - ~40% fewer tokens vs JSON - 73.9% accuracy vs 69.7% for JSON in retrieval tasks - Explicit length declarations for validation - Lossless JSON round-trips ## Syntax ### Objects (YAML-style indentation) ```toon user: name: John age: 30 address: city: NYC zip: 10001 ``` ### Uniform Arrays (Tabular) ```toon users[3]{id,name,email}: 1,John,john@ex.com 2,Jane,jane@ex.com 3,Bob,bob@ex.com ``` - `[N]` = array length (req for validation) - `{fields}` = column schema (declared once) ### Scalar Arrays ```toon tags[4]: api,rest,json,toon ``` ### Non-uniform Arrays (Nested) ```toon items: - id: 1 type: book meta: pages: 200 - id: 2 type: video meta: duration: 3600 ``` ## Conversion Rules ### JSON to TOON 1. **Objects** => indented key-value pairs 2. **Uniform arrays** => tabular `[N]{fields}:` format 3. **Mixed/nested arrays** => `-` list notation 4. **Scalars** => quote only when containing `,` or special chars ### Examples **JSON:** ```json {"orders":[{"id":1,"item":"Book","qty":2,"price":29.99},{"id":2,"item":"Pen","qty":10,"price":1.99}]} ``` **TOON:** ```toon orders[2]{id,item,qty,price}: 1,Book,2,29.99 2,Pen,10,1.99 ``` **Neste...

Details

Author
georgekhananaev
Repository
georgekhananaev/claude-skills-vault
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Related Skills

Data & Documents Featured

clinical-decision-support

Generate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.

25,858 Updated today
K-Dense-AI
Data & Documents Featured

seo-dataforseo

Live SEO data via DataForSEO MCP server. SERP analysis (Google, Bing, Yahoo, YouTube, Google Images), keyword research (volume, difficulty, intent, trends), backlink profiles, on-page analysis (Lighthouse, content parsing), competitor analysis, content analysis, business listings, AI visibility (ChatGPT scraper, LLM mention tracking), and domain analytics. Requires DataForSEO extension installed. Use when user says "dataforseo", "live SERP", "keyword volume", "backlink data", "competitor data", "AI visibility check", "LLM mentions", "image SERP", "google images", "image rankings", or "real search data".

7,082 Updated today
AgriciDaniel
Data & Documents Featured

alphasense

AlphaSense integration. Manage data, records, and automate workflows. Use when the user wants to interact with AlphaSense data.

3,964 Updated 1 months ago
openclaw