← ClaudeAtlas

json-schema-authorlisted

Authors and validates JSON Schema (Draft 2020-12 and Draft-07) for configuration files and HTTP/REST APIs, applying types, constraints, composition keywords, and human-readable error messaging. Use this skill when the user wants to write, fix, refactor, or validate a JSON Schema, define a config-file contract, document request/response payloads, add validation rules to an OpenAPI spec, generate schemas from sample JSON, or produce clear validation error messages.
JayRHa/AgentSkills · ★ 4 · API & Backend · score 72
Install: claude install-skill JayRHa/AgentSkills
# JSON Schema Author ## Overview Keywords: JSON Schema, Draft 2020-12, Draft-07, $schema, $ref, $defs, validation, config schema, API schema, OpenAPI, additionalProperties, oneOf, anyOf, allOf, if/then/else, format, pattern, const, enum, error messages, ajv, jsonschema. This skill helps you design correct, strict, and maintainable JSON Schemas for two dominant use cases: **configuration files** (validate user/operator input, fail fast with helpful messages) and **APIs** (contract for request/response bodies, often embedded in OpenAPI). It covers the type system, every important constraint keyword, schema composition, reuse via `$ref`/`$defs`, conditional validation, and turning raw validator output into actionable error messages. Use the bundled material: - `references/keywords.md` — complete keyword reference (types, constraints, composition, applicators, annotations, draft differences) with copy-paste snippets. - `references/error-messages.md` — patterns for clear, user-facing validation errors and how to map validator output to them. - `templates/config-schema.json` — a strict, annotated starting point for a config-file schema. - `templates/api-schema.json` — request/response schema pattern suitable for OpenAPI `components.schemas`. - `scripts/validate.py` — stdlib-only structural linter that flags the most common schema authoring mistakes; falls back to `jsonschema` if installed for real validation. - `examples/config-walkthrough.md` — sample config JSON turned into a