Programming · Building & coding
json-schema # prettier-ignore
/json-schema # prettier-ignore
Use when working with JSON Schema for validation, OpenAPI schemas, type definitions, and data structure specification
- Author
- mcclowes ↗
- Repository
- omg ↗
- Licence
- MIT
- Last repository change
- 22.10.2026
Assessment and security
90/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 1
Deprecation
No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when working with JSON Schema for validation, OpenAPI schemas, type definitions, and data structure specification
Original author description
Use when working with JSON Schema for validation, OpenAPI schemas, type definitions, and data structure specification
How it works
- Quick Start
- Type Keywords
- Composition
- References
- Common Formats
- OpenAPI 3.1 Notes
Original SKILL.md headings · 68 lines, 225 words
SKILL.md preview
---
name: json-schema
# prettier-ignore
description: Use when working with JSON Schema for validation, OpenAPI schemas, type definitions, and data structure specification
---
# JSON Schema
## Quick Start
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["id", "email"],
"properties": {
"id": { "type": "string", "format": "uuid" },
"email": { "type": "string", "format": "email" },
"age": { "type": "integer", "minimum": 0, "maximum": 150 },
"role": { "enum": ["admin", "user", "guest"] },
"tags": { "type": "array", "items": { "type": "string" } }
}
}
```
## Type Keywords
| Type | Validation Keywords |
|------|---------------------|
| `string` | `minLength`, `maxLength`, `pattern`, `format` |
| `number/integer` | `minimum`, `maximum`, `exclusiveMinimum`, `multipleOf` |
| `array` | `items`, `minItems`, `maxItems`, `uniqueItems` |
| `object` | `properties`, `required`, `additionalProperties` |
## Composition
```json
{
"allOf": [{ "$ref": "#/$defs/Base" }, { "properties": { "extra": {} } }],
"oneOf": [{ "type": "string" }, { "type": "number" }],
"anyOf": [{ "minimum": 0 }, { "maximum": 100 }],
"not": { "type": "null" }
}
```
## References
```json
{
"$defs": {
"Address": {
"type": "object",
"properties": { "street": { "type": "string" } }
}
},
"properties": {
"billing": { "$ref": "#/$defs/Address" },
"shipping": { "$ref": "#/$defs/Address" }
}
}
```
## Common Formats
`date-time`, `date`, `time`, `email`, `uri`, `uuid`, `ipv4`, `ipv6`, `hostname`
## OpenAPI 3.1 Notes
- OpenAPI 3.1 uses JSON Schema 2020-12
- Use `nullable` via `type: ["string", "null"]`
- `example` for single example, `examples` for multiple
- `$ref` can have siblings in 3.1 (not in 3.0)
Versions
The database has no other skills named json-schema # prettier-ignore.
Database snapshot: 13.11.2026 · package version c9a8ec9bd704 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100validating-api-schemas
Validate API schemas against OpenAPI, JSON Schema, and GraphQL specifications. Use when validating API schemas and contracts. Trigger with phrases like "validate API schema", "check OpenAPI spec", or "verify schema". - 100validating-api-schemas
Validate API schemas against OpenAPI, JSON Schema, and GraphQL specifications. Use when validating API schemas and contracts. Trigger with phrases like "validate API schema", "check OpenAPI spec", or "verify schema". - 100openapi-to-zod
Generate Zod v4 TypeScript schemas from OpenAPI (openapi.yaml / openapi.json) definitions. This skill exists because npm packages like openapi-zod-client do not support Zod v4 — Claude reads the YAML/JSON directly and writes the conversion. Use this skill whenever the user wants… - 100openapi-specification
OpenAPI 3.x specification design, schema patterns, and validation for REST API contracts. Use when creating or maintaining API specifications, generating documentation, or validating API contracts. - 100prettier-configuration
Use when prettier configuration including options, config files, ignore patterns, and formatting rules. - 100json-schema-design
Design and validate JSON Schemas for API contracts, configuration files, and data exchange formats. Covers schema composition, conditional validation, and code generation from schemas. Triggers on JSON Schema creation, data validation, or API contract design requests.