JSON Schema Builder
Generate a valid JSON Schema from example data, with nullability and enum detection baked in.
🧠 Why it works
Hand-writing schemas is tedious and error-prone; the examples already contain the structural truth, they just need aggregation. Inferring nullability across N examples (rather than one) prevents the classic mistake of typing a field as string when 3% of your real data has it as null. Pairing inference with LLM-generated descriptions turns a dry schema into documentation that explains itself to downstream consumers.
⚙️ How it works
1) Parse every example file, recursing into nested objects/arrays. 2) For each field path, collect the set of observed types. 3) If more than one type appears and null is one of them, emit oneOf: [<T>, null]. 4) For string fields with ≤ 12 unique values across examples, emit an enum. 5) For numeric fields, emit minimum/maximum pulled from observed range. 6) LLM pass: generate a one-line description per field name using the field path + 3 sample values. 7) Validate the emitted schema against the original examples; any failure triggers a second pass that widens the constraint.
Description
Packaged skill that infers a JSON Schema (Draft 2020-12) from a folder of example documents. Detects nullable fields, enum-able strings (low cardinality), required vs optional, and emits a schema with human-readable descriptions derived from field names.
Install this skill
A Claude skill is a skill.md file with YAML frontmatter and a markdown body.
Drop the file into your tool of choice — or pick a different format if you use Cursor, Windsurf, Copilot, or something else.
mkdir -p ~/.claude/skills/json-schema-builder \
&& curl -L https://aidiveforge.com/skill/json-schema-builder.skill-md \
-o ~/.claude/skills/json-schema-builder/skill.md
Save to ~/.claude/skills/json-schema-builder/skill.md
Recommended Use
Sign in to suggestTools and workflow packs this skill pairs well with. Forge picks are auto-generated from category + capability signals; Community picks are added by people who've used the pairing.
Forge Auto-recommended matches
Workflow packs
-
Podcast Production Automation transform 31%
Capture, transcribe, edit, and distribute podcast episodes with automatic audio cleanup, timestamped transcripts, and multi-platform preparation—reducing manual editing from 5 hours to 1 hour per episode.
Why: caps 0/0 · io-match · name-mention
-
Multilingual Content Localization transform 31%
Convert English content into multiple languages with culturally adapted audio and subtitled videos. Reach global audiences in 2-3 hours instead of weeks of manual translation.
Why: caps 0/0 · io-match · name-mention
Report compatibility
Tell the community which tool you used this skill with, and whether it worked.
Suggest a pairing
Recommend a tool or workflow pack that this skill works well with. Up to 5 recommendations per day.