schema-cleaner

Installation
SKILL.md

Schema Cleaner — JSON Schema Normalization

Clean JSON Schemas for optimal LLM tool-calling compatibility across different providers.

Overview

Different LLM providers support different subsets of JSON Schema. This skill:

  • Provider-Specific Cleaning: Remove keywords unsupported by each provider
  • Reference Resolution: Inline $ref entries from $defs and definitions
  • Union Flattening: Convert anyOf/oneOf with literals into enum
  • Nullable Handling: Strip nullable variants from unions and type arrays
  • Const Conversion: Convert const to single-value enum
  • Circular Detection: Detect and safely handle circular references

Provider Compatibility Matrix

Keyword Gemini Anthropic OpenAI Description
$ref Reference resolution
Related skills
Installs
12
First Seen
Mar 1, 2026