smithery/diegopacheco

json-formatter

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

Installation

$ npx skills add smithery/diegopacheco --skill json-formatter

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/diegopacheco.

npx skills add smithery/diegopacheco

Browse all from smithery/diegopacheco

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Bash

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,302 B
  • docs SUMMARY.md 140 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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