Community코딩 & 개발github.com

aradotso/toon-format

토큰 지향 객체 표기법(TOON)에 대한 전문 기술 — LLM 프롬프트용 스키마 인식 간결 JSON 인코딩으로 토큰을 약 40% 절감합니다.

toon-format란 무엇인가요?

이 스킬은 LLM 프롬프트에서 JSON 구조의 토큰 소비를 크게 줄이기 위한 토큰 지향 객체 표기법(TOON) 전문 기술입니다. TOON은 기존 JSON과 비교하여 토큰을 약 40% 절감하는 스키마 인식 압축 포맷으로, 특히 대규모 프롬프트와 컨텍스트 윈도우 최적화에 유용합니다. 이 스킬은 프롬프트 최적화 도구를 사용하는 모든 AI 에이전트(예: Claude Code, Cursor 등)와 함께 사용할 수 있으며, TOON으로 데이터 구조를 정의하고 인코딩/디코딩하는 방법을 설명합니다. 또한 사용자 정의 스키마, 중첩 객체, 배열 지원 등 고급 기능을 다루며, 실제 워크플로우에 통합하는 방법을 안내합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aradotso/trending-skills/tree/main/skills/toon-format

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

toon-format은(는) 무엇을 하나요?

토큰 지향 객체 표기법(TOON)에 대한 전문 기술 — LLM 프롬프트용 스키마 인식 간결 JSON 인코딩으로 토큰을 약 40% 절감합니다.

개요

TOON은 JSON의 대안으로, 필드 이름을 짧은 식별자로 압축하고 스키마를 사용하여 구조적 중복을 제거합니다. 이는 특히 반복적인 구조가 많은 LLM 프롬프트에서 효과적입니다.

시작하기

TOON을 사용하려면 스키마를 정의한 다음 데이터를 인코딩하면 됩니다.

const schema = {
  user: { id: 'int', name: 'str', role: 'str' }
};

const data = {
  user: { id: 1, name: "Alice", role: "admin" }
};

const encoded = toonEncode(data, schema);
// 결과: "u.id=1,u.name=Alice,u.role=admin"

지원 기능

  • 스키마 기반 인코딩: 필드 이름을 짧은 별칭으로 압축
  • 중첩 객체: 점 표기법을 사용한 계층적 구조 지원
  • 배열: 쉼표로 구분된 배열 요소 인코딩
  • 기본 타입: int, float, str, bool, null 지원
  • 사용자 정의 스키마: 특정 사용 사례에 맞게 스키마 구성 가능

고급 사용법

조건부 필드

스키마에 조건부 필드를 정의할 수 있습니다:

schema:
  entity:
    type: str
    id: int
    metadata:
      createdAt: str
      updatedAt: optional str

벤치마크

TOON은 동일한 데이터에 대해 JSON보다 약 40% 적은 토큰을 사용합니다. 예:

포맷예시 크기 (토큰)
JSON100
TOON60

플랫폼 지원

TOON은 모든 주요 AI 에이전트 플랫폼(Claude Code, Cursor, Codex 등)과 호환되며, JavaScript/TypeScript, Python, Go용 인코더/디코더 라이브러리와 함께 사용할 수 있습니다.

참고 자료

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

aradotso/724-office-ai-agent

Self-evolving AI agent system with 26 tools, three-layer memory, MCP plugins, and 24/7 self-repair in pure Python.

aradotso/agency-agents-ai-specialists

A collection of specialized AI agent personalities for Claude Code, Cursor, Aider, Windsurf, and other AI coding tools — covering engineering, design, marketing, sales, and more.

aradotso/agent-browser-automation

Headless browser automation CLI for AI agents using native Rust binary with Chrome DevTools Protocol

aradotso/antigravity-manager

AI coding agent skill for Antigravity Manager — a Tauri v2 + Rust desktop app and Docker service that manages multiple Google/Anthropic accounts and proxies them as standard OpenAI/Anthropic/Gemini API endpoints with intelligent account rotation.

aradotso/aracli-deploy-management

Guide to deploying and managing OpenClaw-compatible AI agent systems across cloud, bare metal, and hybrid infrastructure.

aradotso/autoresearchclaw-autonomous-research

Fully autonomous research pipeline that turns a topic idea into a complete academic paper with real citations, experiments, and conference-ready LaTeX.

aradotso/autoresearch-genealogy

Structured prompts, vault templates, and autonomous research workflows for AI-assisted genealogy using Claude Code.

aradotso/brreg

Search and retrieve Norwegian company data from Brønnøysundregistrene (the Norwegian Business Registry). Access all ~1.2 million registered companies in Norway.

aradotso/chrome-cdp-live-browser

Give AI agents access to your live Chrome session via CDP — interact with open tabs, logged-in accounts, and current page state

aradotso/claude-hud-statusline

A Claude Code plugin that displays a real-time HUD showing context usage, active tools, running agents, and todo progress in your terminal statusline.

aradotso/claude-peers-mcp

Enable multiple Claude Code instances to discover each other and exchange messages in real-time via a local broker daemon and MCP server.

aradotso/clui-cc-claude-overlay

Command Line User Interface for Claude Code — a floating macOS desktop overlay with multi-tab sessions, permission approval UI, voice input, and skills marketplace.

aradotso/cmux-terminal-multiplexer

AI-native terminal multiplexer with programmable socket API, full Playwright-equivalent browser automation, and agent team coordination — built for Claude Code and autonomous agent workflows

aradotso/code-review-graph

Build a persistent knowledge graph of your codebase so Claude reads only what matters — up to 49x fewer tokens on coding tasks.

aradotso/codex-autoresearch-loop

Self-directed iterative research skill for Codex that continuously cycles through modify, verify, retain or discard, and repeat until a measurable goal is reached.

aradotso/copaw-ai-assistant

Personal AI assistant framework supporting multiple chat channels (DingTalk, Feishu, QQ, Discord, etc.) with extensible skills, local/cloud deployment, and cron scheduling.

aradotso/corridorkey-green-screen

AI-powered green screen keyer that unmixes foreground colors and generates clean linear alpha channels using neural networks

aradotso/crucix-intelligence-dashboard

Personal intelligence agent that aggregates 27 OSINT data sources into a self-hosted Jarvis-style dashboard with Telegram/Discord bots, LLM analysis, and real-time alerts.

aradotso/daily-stock-analysis

LLM-powered A/H/US stock intelligent analysis system with multi-source data, real-time news, AI decision dashboards, and multi-channel push notifications via GitHub Actions.

aradotso/deepseek-ocr

Expert skill for using DeepSeek-OCR, a vision-language model for optical character recognition with context optical compression supporting documents, PDFs, and images.

관련 스킬