Skip to content
Skills Library
Programming · Conversion & formats

toon-format

/toon-format

This skill should be used when writing or parsing TOON (Token-Oriented Object Notation) files. Triggers on .toon file operations, org-patterns.toon generation, or when converting between JSON and TOON formats. Provides syntax rules, quoting conventions, and examples for LLM-optimized data serialization.

Licence
Apache-2.0
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

This skill should be used when writing or parsing TOON (Token-Oriented Object Notation) files. Triggers on .toon file operations, org-patterns.toon generation, or when converting between JSON and TOON formats. Provides syntax rules, quoting conventions, and examples for LLM-optimized data serialization.

Original author description

This skill should be used when writing or parsing TOON (Token-Oriented Object Notation) files. Triggers on .toon file operations, org-patterns.toon generation, or when converting between JSON and TOON formats. Provides syntax rules, quoting conventions, and examples for LLM-optimized data serialization.

How it works

  1. Core Syntax Rules
  2. Quoting Rules (Critical)
  3. org-patterns.toon Format
  4. Validation Checklist
  5. References
Original SKILL.md headings · 82 lines, 293 words
SKILL.md preview
---
name: toon-format
description: This skill should be used when writing or parsing TOON (Token-Oriented Object Notation) files. Triggers on .toon file operations, org-patterns.toon generation, or when converting between JSON and TOON formats. Provides syntax rules, quoting conventions, and examples for LLM-optimized data serialization.
---

# TOON Format (Token-Oriented Object Notation)

TOON is a compact, human-readable encoding of the JSON data model optimized for LLM prompts. It achieves ~40% token reduction compared to JSON while maintaining lossless round-trip compatibility.

## Core Syntax Rules

### Array Declaration

Arrays use bracketed headers with mandatory length count:

```toon
tags[3]: admin,ops,dev
```

### Tabular Arrays (Uniform Object Arrays)

For arrays of objects with identical structure, use field headers in braces:

```toon
patterns[2]{id,category,summary}:
  P-001,pattern,"Use tokens for colors"
  P-002,mistake,"Check auth before routes"
```

- Field names declared once in `{...}` after the count
- Each row contains values in declared field order
- Rows indented with 2 spaces (NEVER tabs)

### Objects

Objects use indentation-based nesting (2 spaces per level):

```toon
user:
  id: 123
  name: Ada
```

## Quoting Rules (Critical)

Strings MUST be quoted if they contain:
- The active delimiter (comma by default)
- Empty string, leading/trailing whitespace
- Reserved literals (`true`, `false`, `null`)
- Numeric-like patterns
- Colons, quotes, backslashes, brackets, braces
- Control characters or leading hyphens

**Escape sequences:** `\\`, `\"`, `\n`, `\r`, `\t`

## org-patterns.toon Format

Standard format for ClosedLoop organization learnings:

```toon
patterns[N]{id,category,summary,confidence,seen_count,success_rate,flags,applies_to,context,repo}:
  P-001,pattern,"Summary here",high,5,0.85,,implementation-subagent,UI|styling,*
  P-002,mistake,"Check auth before routes",medium,3,0.60,[REVIEW],*,auth|routes,astoria-frontend
```

**Field notes:**
- `summary` - **Always quoted** (contains natural language with commas)
- `flags` - `[REVIEW]`, `[STALE]`, `[UNTESTED]`, `[PRUNE]`, or empty
- `applies_to` - Pipe-separated agent names or `*` for all
- `context` - Pipe-separated tags
- `repo` - Repository name (derived from git remote basename) or `*` for all repos

## Validation Checklist

1. Count matches actual rows/items
2. Field count in rows matches declaration
3. Strings needing quotes are quoted
4. 2-space indentation (no tabs)
5. No blank lines within array blocks

## References

- See `references/examples.md` for comprehensive examples
- [TOON Specification](https://github.com/toon-format/spec)
- [Reference Implementation](https://github.com/toon-format/toon)
Files in this package (2)
  • SKILL.md 3 KB
  • references/examples.md 5 KB

Versions

The database has no other skills named toon-format.

Database snapshot: 13.11.2026 · package version 011966d276d2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85beta-version-toon-studio
    Make a short 9:16 toon-style animated video (flat drawn characters standing in a simple Blender 3D set, 30 fps) from an idea or from the user's own script, through to final.mp4 and a short posting caption. Use when the user says toon video, toon reel, cartoon short, Beta Version…
  • 100token-optimizer
    Reduce token count in prompts, docs, and prose. Covers prompt compression (40-60% savings), doc formatting, TOON data serialization, and Strunk's prose clarity rules. Use when compressing prompts, optimizing docs for LLM context, or writing clear technical prose.
  • 100threejs-materials
    Choosing and configuring three.js materials - unlit, diffuse, specular, PBR, toon, point and line materials - shared properties like blending and stencil, environment response, and the WebGPU node-material and TSL equivalents. Use when styling meshes or tuning material behavior.
  • 90toon-shorts
    Build 3D cartoon shorts in berat studio with the toon engine - our own big-headed cartoon characters with painted, expressive faces (expression sprites), densely dressed sets, smooth pose-to-pose character animation timed to the words, a camera that never stops, 6-frame…
  • 87ugc-toon-action
    How to make a stylized cartoon / painterly action animation of ANY subject — generalized niche know-how, not one specific video. A domain overlay on the standard pipeline that supplies the two pillars of good toon-action: (1) a seedance-2.0 t2v action-generation guide (the…
  • 87ugc-toon-action
    How to make a stylized cartoon / painterly action animation of ANY subject — generalized niche know-how, not one specific video. A domain overlay on the standard pipeline that supplies the two pillars of good toon-action: (1) a seedance-2.0 t2v action-generation guide (the…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.