structured-output
Skill1 starsChanged 31 days agoMITView on GitHub
Instructions for the upstream workflow: Compact LLM-facing JSON and optionally emit round-trip-verified TOON for beneficial tabular data.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Oct 13, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- Zavelinski/structured-outputtheir own version, first seen Jun 30, 2026
- mykaarma/kaarma-skillstheir own version, first seen Apr 28, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- nahid-sparktales/agent-dispatcher★ 59same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- mykaarma/kaarma-skills★ 4same name
- Zavelinski/structured-output★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- agent-cacheSkill
- agent-compressionSkill
- agent-intelSkill
- agent-overlapSkill
- agent-stateSkill
- ambient-hudSkill
- app-testSkill
- audit-dagSkill
- auto-distillSkill
- auto-memorySkill
- auto-routerSkill
- benchSkill
- bootstrapSkill
- botte-learnSkill
- botte-nnSkill
- botte-proxySkill
- botte-wrapSkill
- cacheSkill
- call-chainsSkill
- capabilitiesSkill
- cardinalSkill
- checkupSkill
- clarificationSkill
- clusterSkill
- code-complexitySkill
- code-duplicationSkill
- code-fingerprintSkill
- code-rulesSkill
- code-stateSkill
- code-wrappersSkill
- comfyuiSkill
- completion-proofSkill
- conductorSkill
- context-budgetSkill
- context-compressorSkill
- context-profilerSkill
- context-slicerSkill
- context-windowsSkill
- control-loopSkill
- cost-estimatorSkill
- dag-optimizerSkill
- dashboardSkill
- decision-ladderSkill
- demoSkill
- diff-languageSkill
- directives-auditSkill
- docgenSkill
- docs-stewardSkill
- dynamic-workflowsSkill
- efficiencySkill
- eventsSkill
- fallow-likeSkill
- fallowSkill
- fast-contextSkill
- fixSkill
- fleetSkill
- hailo-visionSkill
- harness-deltaSkill
- harvestSkill
- hermes-bridgeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this module at the boundary between programmatic JSON data and LLM-facing text.
- Distinctive: line 22
Default output is strict compact JSON.
- Very specific: line 85
When enabled, telemetry is a machine-local aggregate under .botte-cache/.
- Distinctive: line 103
Do not persist auto-selected output as canonical state.
- Very specific: line 104
Do not name a fallback JSON file .toon.
- Distinctive: line 105
Do not decode arbitrary full TOON with this subset decoder.
- Distinctive: line 106
Do not mark tiktoken or Hugging Face tokenization exact unless the selected encoding/reference is proven to match the served model.
- Distinctive: line 108
Do not activate from the character heuristic.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
structured-output — adaptive JSON/TOON presentation
Package scope and prerequisites
This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.
Use this module at the boundary between programmatic JSON data and LLM-facing text. JSON remains canonical for storage, APIs, schemas, JSON-RPC, caches, and model artifacts.
Contract
- Default output is strict compact JSON.
autoconsiders only the implemented TOON v3.3 tabular subset.- TOON requires a successful encode/decode round-trip.
- TOON requires at least 10% estimated savings and 32 estimated source tokens.
- Unsupported, small, or non-beneficial data falls back to compact JSON.
- Non-JSON text is preserved byte-for-byte.
- The dependency-free estimate is
ceil(characters / 4)and is never activation-eligible. - MCP TOON requires an active per-model profile by default. The profile requires an exact counter, zero fidelity failures, at least 10% aggregate incremental savings, and paired JSON/TOON comprehension evidence with no TOON regression.
- Formatting/tokenization p95 must fit both a 50 ms absolute ceiling and 10% of the measured JSON TTFT p95 for that model.
- Runtime loading revalidates the current quality report, model fingerprint, eligibility, and digest. Replaced or stale evidence disables the profile.
Supported TOON shapes:
- JSON primitives;
- primitive arrays;
- flat objects containing primitives or supported arrays;
- uniform non-empty object arrays with identical keys and primitive values.
Deep objects, mixed arrays, and nested cell values remain JSON.
Commands
python -m skills.structured_output.test_structured_output
python -m skills.structured_output.benchmark
python -m skills.structured_output.benchmark --json --repeat 50
python -m skills.structured_output.comprehension MODEL --json
python -m skills.structured_output.candidate_latency MODEL --trials 3 --json
python -m skills.structured_output.candidate_latency MODEL --trials 3 \
--response-mode structured --json
python -m skills.structured_output.profile MODEL --counter heuristic --json
python -m skills.structured_output.profile MODEL --counter lmstudio_sdk \
--endpoint localhost:1234 --activate --jsonExact counter adapters are available for llama.cpp /tokenize, vLLM
/tokenize, an explicit tiktoken encoding, a locally cached Hugging Face
tokenizer, and an already-loaded model through the optional LM Studio Python
SDK. HTTP adapters refuse public hosts and redirects.
MCP opt-in
BOTTE_MCP_OUTPUT_FORMAT=json|toon|auto
BOTTE_MCP_OUTPUT_MODEL=exact-consumer-model-id
BOTTE_MCP_TOON_MIN_SAVINGS=0.10
BOTTE_MCP_TOON_MIN_TOKENS=32
BOTTE_MCP_TOON_REQUIRE_PROFILE=1
BOTTE_MCP_TOON_PROFILE_PATH=.botte-cache/structured-output-profiles.json
BOTTE_MCP_FORMAT_TELEMETRY=0|1json is the default. These settings affect only JSON-shaped tool text inside
MCP results. Missing, inactive, stale, inexact, slow, quality-unverified, or
failed profiles select compact JSON. BOTTE_MCP_TOON_REQUIRE_PROFILE=0 is a
diagnostic override, not a production activation path. The JSON-RPC transport
and tool schemas always remain JSON.
When enabled, telemetry is a machine-local aggregate under .botte-cache/.
It stores format/reason counts, total token counts, exact-call count, and
latency totals/maxima. It never stores source text, output text, or raw model
paths.
The paired comprehension report is also machine-local under .botte-cache/.
It stores case IDs, correctness, token counts, and latency only; prompts,
payloads, expected answers, and model answers are excluded.
candidate_latency measures formatting plus generation only for values that
clear the exact adaptive gates. Its report has activation_authority=false;
it diagnoses typical and tail latency but cannot activate a model profile.
--response-mode final measures the unwrapped FINAL: contract, while
--response-mode structured uses the LM Studio schema constraint to isolate
bounded answer generation. The modes write separate machine-local reports.
Safety
- Do not persist auto-selected output as canonical state.
- Do not name a fallback JSON file
.toon. - Do not decode arbitrary full TOON with this subset decoder.
- Do not mark tiktoken or Hugging Face tokenization exact unless the selected encoding/reference is proven to match the served model.
- Do not activate from the character heuristic.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

