← 返回
效率工具 中文

TOON

Optimize token usage by adopting the compact TOON format for data storage and context.
采用紧凑的TOON格式存储数据与上下文,以优化令牌使用。
nelohenriq
效率工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 512
下载
💾 3
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 08:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,454
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,116
developer-tools

Frugal Orchestrator

nelohenriq
令牌高效的任务编排系统,将工作委托给专门的子模块,优先考虑系统层面的解决方案,而非 AI 推理。
★ 0 📥 757