Skip to content
Back to skills

Validate Json Data And Config Files Against Schemas With Ajv Cli

ASecurity

Run schema checks from the shell or CI so malformed JSON, JSON5, or YAML inputs fail before they reach downstream tooling.

  • 36 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 8, 2026
ai-agentstypescriptgoshellnodegitapisecuritydocumentation

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill validate-json-data-and-config-files-against-schemas-with-ajv-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Validate Json Data And Config Files Against Schemas With Ajv Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Validate Json Data And Config Files Against Schemas With Ajv Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-validate-json-data-and-config-files-against-schema/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-validate-json-data-and-config-files-against-schema)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Validate JSON data and config files against schemas with ajv-cli"
slug: "validate-json-data-and-config-files-against-schemas-with-ajv-cli"
description: "Run schema checks from the shell or CI so malformed JSON, JSON5, or YAML inputs fail before they reach downstream tooling."
github_stars: 308
verification: "security_reviewed"
source: "https://github.com/ajv-validator/ajv-cli"
author: "ajv-validator maintainers"
publisher_type: "organization"
category: "Library & API Reference"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "ajv-validator/ajv-cli"
  github_stars: 308
  npm_package: "ajv-cli"
  npm_weekly_downloads: 335297
---

# Validate JSON data and config files against schemas with ajv-cli

Run schema checks from the shell or CI so malformed JSON, JSON5, or YAML inputs fail before they reach downstream tooling.

## Prerequisites

Node.js, ajv-cli, one or more JSON Schema or JTD files, and target JSON, JSON5, or YAML data files

## Installation

Use the upstream install or setup path that matches your environment:
- npm install -g ajv-cli

Requirements and caveats from upstream:
- Multiple schemas can be passed both by using this parameter multiple times and with [glob patterns](https://github.com/isaacs/node-glob#glob-primer). Glob pattern should be quoted and extensions cannot be omitted.
- These modules can be written in TypeScript if you have ts-node installed.
- Multiple schemas can be passed both by using this parameter multiple times and with [glob patterns](https://github.com/isaacs/node-glob#glob-primer).

Basic usage or getting-started notes:
- sh
- ## JSON schema language and version
- Parameter --spec can be used with all commands (other than help) to choose JSON schema language:

- Source: https://github.com/ajv-validator/ajv-cli
- Extracted from upstream docs: https://raw.githubusercontent.com/ajv-validator/ajv-cli/HEAD/README.md

## Documentation

- https://github.com/ajv-validator/ajv-cli

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/validate-json-data-and-config-files-against-schemas-with-ajv-cli/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.