Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

json-formatter

FreeRuns bundled scriptsNot checked

Validate, format, and minify JSON files when users request JSON validation, formatting, or ask to validate their JSONs

diegopachecoby diegopacheco★ 21 GitHub stars4 installs in other catalogs

About this skill

JSON Formatter Skill

Format, validate, and minify JSON files with precision and safety.

Capabilities

This skill provides comprehensive JSON processing:

  • Validation: Parse and validate JSON syntax, reporting errors with line numbers
  • Formatting: Pretty-print JSON with configurable indentation (default 2 spaces)
  • Minification: Remove all unnecessary whitespace for production use
  • Safety: Always show diffs before writing changes
  • Metrics: Report file size before and after operations

Usage

When a user requests JSON processing, this skill:

  1. Reads the target JSON file
  2. Validates the syntax
  3. Asks user preference: format or minify
  4. Shows the proposed changes
  5. Reports size difference
  6. Writes the result

Instructions

For any JSON file operation:

  • Always validate before processing
  • Use 2-space indentation for formatting
  • Preserve UTF-8 encoding
  • Show clear error messages with line numbers for invalid JSON
  • Never modify files without showing diffs first
  • Handle nested objects and arrays correctly
  • Support both single files and batch operations

Install json-formatter in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Bash

Bundled files

README.mdformat.pyvalidate.py

FAQ

What does the json-formatter skill do?

Validate, format, and minify JSON files when users request JSON validation, formatting, or ask to validate their JSONs

How do I install the json-formatter skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the json-formatter skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare json-formatter with