format-validation

otw1248's avatarfrom otw1248

Validate JSON file formats by scanning directories and checking for correct JSON syntax

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 6, 2026

When & Why to Use This Skill

This Claude skill automates the validation of JSON file formats by scanning directories and performing deep syntax checks. It ensures data integrity and prevents runtime errors by identifying malformed JSON files, providing detailed error reports, and offering summary statistics for large-scale codebases or data repositories.

Use Cases

  • CI/CD Pipeline Integration: Automatically verify JSON configuration files during the build process to prevent deployment failures caused by syntax errors.
  • Data Integrity Auditing: Scan large data directories to ensure all JSON datasets are well-formed and ready for processing by analytical tools or databases.
  • Troubleshooting & Debugging: Quickly locate and identify specific syntax errors in complex, nested JSON files within a large project structure.
  • Pre-processing Validation: Check JSON schema compliance and formatting before importing external data sources into a production environment.
nameformat-validation
descriptionValidate JSON file formats by scanning directories and checking for correct JSON syntax

Overview

This Skill validates JSON files in specified directories to ensure they have correct syntax and valid format. When you need to verify JSON files are well-formed and can be parsed correctly, use this Skill. It scans the specified path, finds all JSON files, and validates their format.

When to Use

Use this Skill when:

  • Verifying JSON configuration files are valid
  • Checking data files before processing
  • Validating JSON schema compliance
  • Troubleshooting JSON parsing errors
  • Auditing codebase for malformed JSON files

Validation Process

The validation process includes:

  1. Scanning the specified directory recursively
  2. Identifying all files with .json extension
  3. Parsing each JSON file to check syntax validity
  4. Reporting validation results with file paths and error details
  5. Providing summary statistics (total files, valid, invalid)

Usage

Invoke this Skill by specifying the path to validate:

Validate JSON files in /path/to/directory

The Skill will:

  • Scan the directory tree
  • Validate each JSON file found
  • Return detailed validation results

Dependencies

Python 3.8+ or Go 1.16+

Resources

  • scripts/validate_json.py: Python implementation of JSON validation
  • scripts/validate_json.go: Go implementation of JSON validation