Back to list
Mearman

schema-meta

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-meta description: Validate that a JSON Schema is well-formed and conforms to the JSON Schema specification. Use when the user asks to check if a schema is valid, verify schema syntax, validate schema structure, or check a JSON Schema file for errors.

Validate JSON Schema (Meta-Validation)

Validate that a JSON Schema document is itself a valid schema according to the JSON Schema specification.

Usage

npx tsx scripts/meta-validate.ts <schema-file> [options]

Arguments

ArgumentRequiredDescription
schema-fileYesPath to the JSON Schema file to validate

Options

OptionDescription
--draft=VERSIONJSON Schema draft version (draft-04, draft-06, draft-07, 2019-09, 2020-12). Default: auto-detect
--strictEnable strict mode (additional validation rules)
--verboseShow detailed validation information

Output

Valid schema:

Valid JSON Schema (draft-2020-12)
  Keywords: 5
  Definitions: 2

Invalid schema:

Invalid JSON Schema
  Error: "type" must be a string or array
  Path: /properties/name/type

Script Execution

npx tsx scripts/meta-validate.ts schema.json
npx tsx scripts/meta-validate.ts schema.json --draft=draft-07
npx tsx scripts/meta-validate.ts schema.json --strict --verbose

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

Draft Version Detection

The script auto-detects the JSON Schema draft version from:

  1. The $schema keyword in the document
  2. Falls back to draft-2020-12 if not specified

Supported drafts:

  • draft-04 - JSON Schema Draft 4
  • draft-06 - JSON Schema Draft 6
  • draft-07 - JSON Schema Draft 7
  • 2019-09 - JSON Schema Draft 2019-09
  • 2020-12 - JSON Schema Draft 2020-12 (default)

Strict Mode

When --strict is enabled, additional validations are performed:

  • Disallow unknown keywords
  • Require $schema declaration
  • Validate format assertions by default
  • Use schema-validate to validate JSON data against a schema
  • Use schema-check to validate a JSON file against its embedded $schema

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