toon-adoption

Optimize token usage by adopting the compact TOON format for data storage and context.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "toon-adoption" with this command: npx skills add nelohenriq/toon-adoption-skill

TOON Adoption Skill

Description

Efficiently parse, generate, and store data using Token-Oriented Object Notation (TOON). TOON is designed for LLMs as a lossless, drop-in representation of JSON data that reduces token usage by approximately 40% through indentation, minimal quoting, and tabular layouts.

TOON Syntax Rules

1. Indentation-based Nesting

  • Use 2-space indentation to define hierarchy, similar to YAML.
  • Avoid curly braces {} and square brackets [] for nesting unless defining a tabular schema.

2. Minimal Quoting

  • Keys and values do not require quotes unless they contain commas or significant leading/trailing whitespace.

3. Explicit Array Lengths

  • Declare the number of items in an array using the [N] notation (e.g., friends[3]).

4. Tabular Arrays (Arrays of Objects)

  • For uniform arrays of objects, use the format: key[N]{field1,field2,...}:.
  • List the field names once in the header, followed by rows of values separated by commas.

5. Encoding

  • Always use UTF-8.

Guidelines for Agent Use

  1. Storage: Prioritize .toon files for logs, schedules, and long-term data tracking.
  2. Context Compression: When summarizing history or notes, use TOON to fit more information into the context window.
  3. Parsing: Interpret indentation as nested object levels and CSV rows as objects matching the header schema.

Example Document

metadata:
  name: Sample Configuration
  format: TOON
  efficiency_gain: 0.4
goals[3]{id,title,category}:
  1,Lose weight,health
  2,Increase self-esteem,personal
  3,Get out of loneliness,social

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Llmcom Token Optimizer

Token-efficient context format using LLMCOM specification - reduces token usage by 70-80% through compact object notation.

Registry SourceRecently Updated
980Profile unavailable
General

OpenClaw Token Saver

OpenClaw Token 节省指南。提供5大类20+种减少Token消耗的方法,包括上下文瘦身、工具优化、缓存复用、模型控制和本地替代方案。当Token使用超过阈值时自动触发优化建议。

Registry SourceRecently Updated
2600Profile unavailable
General

Token Budget Guard

Automatically manages and compresses context to optimize token usage by summarizing, selectively loading, and budgeting for tool schemas, history, and tasks.

Registry SourceRecently Updated
1320Profile unavailable
General

File Converter

This skill provides comprehensive file format conversion capabilities. It should be used when users need to convert files between different formats, includin...

Registry SourceRecently Updated
960Profile unavailable