Help us improve
Share bugs, ideas, or general feedback.
From self-learning
Provides syntax rules, quoting conventions, examples, and validation for writing, parsing, and generating TOON files including org-patterns.toon and JSON conversions.
npx claudepluginhub closedloop-ai/claude-plugins --plugin self-learningHow this skill is triggered — by the user, by Claude, or both
Slash command
/self-learning:toon-formatThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.
Converts verbose CLAUDE.md or LLM system prompts into compact structured-label format for better AI compliance and lower token usage. Use for long prompts AI ignores.
Formats code in languages without dedicated formatters using Tree-sitter queries. Write .scm query files and configure Topiary via languages.ncl.
Universal code formatter using Tree-sitter queries for languages lacking dedicated formatters like JSON, TOML, Bash, Nickel, CSS. Aids writing .scm query files and configuring via languages.ncl.
Share bugs, ideas, or general feedback.
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.
Arrays use bracketed headers with mandatory length count:
tags[3]: admin,ops,dev
For arrays of objects with identical structure, use field headers in braces:
patterns[2]{id,category,summary}:
P-001,pattern,"Use tokens for colors"
P-002,mistake,"Check auth before routes"
{...} after the countObjects use indentation-based nesting (2 spaces per level):
user:
id: 123
name: Ada
Strings MUST be quoted if they contain:
true, false, null)Escape sequences: \\, \", \n, \r, \t
Standard format for ClosedLoop organization learnings:
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 emptyapplies_to - Pipe-separated agent names or * for allcontext - Pipe-separated tagsrepo - Repository name (derived from git remote basename) or * for all reposreferences/examples.md for comprehensive examples