toon
Token-Oriented Object Notation (TOON) for passing structured data to LLMs with 30-60% reduced token costs and improved reliability compared to JSON/YAML. Use…
от siddu1004★ 43 звезды на GitHub
Установить toon в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
TOON (Token-Oriented Object Notation)
TOON is a compact, human-readable serialization format specifically designed for passing structured data to Large Language Models with reduced token costs and improved extraction reliability.
Format Overview
TOON achieves 30-60% token reduction over standard JSON and YAML by:
- Eliminating repeated keys across collections of records
- Removing redundant quotation marks and braces
- Providing deterministic parsing rules for primitives (strings, numbers, booleans, null)
Syntax Guide
Key-Value Objects
project: SFP
version: 3.4.0
status: active
Lists and Sequences
skills:
- frontend
- backend
- testing-quality
Tabular Objects (Record Collections)
For arrays of uniform objects, declare fields once in brackets:
users[id, name, role, active]:
1, Alice, admin, true
2, Bob, developer, true
3, Charlie, viewer, false
Nested Structures
server:
host: 127.0.0.1
port: 8080
routes[path, method, handler]:
/health, GET, checkHealth
/api/skills, GET, listSkills
/api/sync, POST, runSync
Prompt Engineering with TOON
Sending Data to LLMs (Context Injection)
When providing context data to an LLM:
Here is the dataset in TOON format:
---
products[sku, name, price, stock]:
A101, Widget Pro, 29.99, 142
A102, Widget Mini, 14.99, 85
---
Analyze the inventory levels above.
Requesting TOON Output from LLMs
Prompt instruction:
Respond ONLY with valid TOON format representing the extracted records:
records[field1, field2, field3]:
val1, val2, val3
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл toon?
Token-Oriented Object Notation (TOON) for passing structured data to LLMs with 30-60% reduced token costs and improved reliability compared to JSON/YAML. Use when formatting prompt payloads, structured agent outputs, or tabular data.
Как установить скилл toon?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл toon запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…