Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

check-jsonschema

$ check-jsonschema Community Low Risk
sirosen · Database & Data · Apache-2.0 · macos / linux / windows

check-jsonschema validates JSON, YAML, and TOML files against local schemas, remote URLs, or vendored SchemaStore schemas (--builtin-schema, e.g., GitHub Workflows, Dependabot, pyproject), emitting structured -o JSON diagnostics.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install check-jsonschema
CLI vs MCP Decision CLI Only

Validates YAML/TOML/JSON configs against local or vendored SchemaStore schemas locally with -o JSON error reports.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports -o JSON (--output-format JSON), --no-cache, clean 0/1 exit codes, and non-interactive multi-file validation.

  • Supports -o JSON structured diagnostics
  • Zero interactive prompts
Trust & Safety 25 / 25

Strictly read-only validator; only writes optional remote schema caches unless --no-cache is passed.

  • Strictly read-only validation tool
Setup & Portability 13 / 15

Available via Homebrew, pip, and uvx across macOS, Linux, and Windows.

  • Available via brew install check-jsonschema and PyPI
Utility & Efficiency 13 / 15

Natively parses JSON, YAML, and TOML and ships vendored SchemaStore schemas for CI/config linting without network calls.

  • Handles JSON/YAML/TOML plus --builtin-schema
Maintenance & Lineage 9 / 10

Actively maintained under python-jsonschema/check-jsonschema with Apache-2.0 license.

  • Active python-jsonschema/check-jsonschema repository
Docs & Verifiability 8 / 10

Clear ReadTheDocs manual listing CLI flags and all built-in schema identifiers.

  • Official docs at check-jsonschema.readthedocs.io

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None; optionally caches fetched remote schemas locally under ~/.cache/check_jsonschema.

Side Effects
Read-Only
Cost & Quotas

Apache-2.0 open-source CLI; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# check-jsonschema Agent Rules
- Always pass `-o JSON` (`--output-format JSON`) for machine-parseable validation errors.
- Use `--builtin-schema` for standard configs (e.g. `vendor.github-workflows`) in air-gapped sandboxes.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate a YAML/JSON/TOML file with JSON output
check-jsonschema --schemafile schema.json -o JSON data.yaml

Validates data.yaml against schema.json and outputs structured JSON validation results.

Validate a GitHub Actions workflow using a built-in schema
check-jsonschema --builtin-schema vendor.github-workflows -o JSON .github/workflows/ci.yml

Validates CI workflows offline using vendored SchemaStore definitions.

Strengths for Agents

  • + -o JSON emits clean structured failure paths and messages for automated repair loops.
  • + Vendored --builtin-schema presets validate GitHub Workflows, Dependabot, and Renovate configs offline.
  • + Supports JSON, YAML, and TOML inputs uniformly.

Caveats & Pitfalls

  • ! Passing remote HTTP URLs to --schemafile attempts network fetches unless --no-cache/local files are used.
  • ! Python startup is slightly slower than compiled Rust/Go validators.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI