Back to list
Mearman

schema-check

by Mearman

Plugin marketplace distributing extensions that add skills, commands, hooks and custom agents to the code environment.

2🍴 0📅 Jan 23, 2026

SKILL.md


name: schema-check description: Validate a JSON file against the schema referenced in its $schema property. Use when the user asks to check JSON against its own schema, validate self-describing JSON, auto-validate JSON files, or verify JSON with embedded schema reference.

Validate JSON Against Embedded $schema

Validate a JSON file against the schema referenced in its $schema property. This is useful for self-describing JSON documents that declare their own schema.

Usage

npx tsx scripts/check.ts <json-file> [options]

Arguments

ArgumentRequiredDescription
json-fileYesPath to the JSON file with $schema property

Options

OptionDescription
--all-errorsReport all errors, not just the first
--no-cacheBypass cache when fetching remote schemas
--strictEnable strict mode validation
--verboseShow detailed validation output
--formatOutput format: text (default), json

Output

Valid JSON:

Valid
  Schema: https://json-schema.org/draft/2020-12/schema
  File: my-schema.json

Invalid JSON:

Invalid (2 errors)
  Schema: ./schemas/config.schema.json
  1. /settings/timeout: must be number
  2. /settings/retries: must be >= 0

No schema reference:

Error: No $schema property found in config.json
  Hint: Use schema-validate to validate against a specific schema

Script Execution

npx tsx scripts/check.ts config.json
npx tsx scripts/check.ts config.json --all-errors
npx tsx scripts/check.ts config.json --no-cache --verbose

Run from the json-schema plugin directory: ~/.claude/plugins/cache/json-schema/

Schema Resolution

The $schema property can reference:

  1. Remote URLs - Fetched and cached (24h TTL)

    { "$schema": "https://json-schema.org/draft/2020-12/schema" }
    
  2. Local file paths - Resolved relative to the JSON file

    { "$schema": "./schemas/config.schema.json" }
    
  3. Absolute paths

    { "$schema": "/Users/joe/schemas/config.schema.json" }
    

Common $schema Values

Schema URIDescription
https://json-schema.org/draft/2020-12/schemaJSON Schema Draft 2020-12
https://json-schema.org/draft/2019-09/schemaJSON Schema Draft 2019-09
http://json-schema.org/draft-07/schema#JSON Schema Draft 7
http://json-schema.org/draft-06/schema#JSON Schema Draft 6
http://json-schema.org/draft-04/schema#JSON Schema Draft 4

Caching

Remote schemas are cached for 24 hours using the OS temporary directory. Use --no-cache to bypass caching and fetch fresh schemas.

  • Use schema-meta to validate that a schema is well-formed
  • Use schema-validate to validate JSON against an arbitrary schema file

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon