Skip to content
Back to skills

Toon

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added October 25, 2026
ai-agentstestingapifrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned October 25, 2026

npx -y skills add siddu1004/SFP --skill toon --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Toon?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Toon
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/siddu1004-toon/badge)](https://www.skillsdirectory.com/skills/siddu1004-toon)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: toon
description: "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 (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
```toon
project: SFP
version: 3.4.0
status: active
```

### Lists and Sequences
```toon
skills:
  - frontend
  - backend
  - testing-quality
```

### Tabular Objects (Record Collections)
For arrays of uniform objects, declare fields once in brackets:
```toon
users[id, name, role, active]:
  1, Alice, admin, true
  2, Bob, developer, true
  3, Charlie, viewer, false
```

### Nested Structures
```toon
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:
```text
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:
```text
Respond ONLY with valid TOON format representing the extracted records:
records[field1, field2, field3]:
  val1, val2, val3
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.