Agent skill
json-formatter
Validate, format, and minify JSON files when users request JSON validation, formatting, or ask to validate their JSONs
Install this agent skill to your Project
npx add-skill https://github.com/diegopacheco/ai-playground/tree/main/agents/claude-code/claude-skill-fun/json-formatter
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:
- Reads the target JSON file
- Validates the syntax
- Asks user preference: format or minify
- Shows the proposed changes
- Reports size difference
- 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
bruno-generator
Scans the entire codebase, detects all HTTP/API endpoints across Java/Spring Boot, Node/Express, Go/Gin, Rust/Actix+Axum, Python/Django, and generates a complete Bruno API client project with .bru files, sample requests, and environments.
infra-automation-generator
leak-detect
Scan code for leaked PII, secrets/credentials, and security vulnerabilities that would get you hacked in production.
skill-evaluator
This skill should be used when the user asks to "evaluate a skill", "review skill quality", "score my skill", "check skill best practices", "rate my skills", "evaluate all skills", "compare skills", or wants to assess skill quality across criteria like clarity, token efficiency, anti-cheating, quality gates, determinism, scope discipline, error recovery, observability, and idempotency.
metrics-report
Scan an entire codebase, discover and run all test types, compute hybrid coverage, evaluate quality, and generate a full metrics report website with trends and charts.
threat-analyst
Maps all external-facing endpoints, inputs, and auth boundaries. Scans the whole codebase and produces threat-analysis.md with attack vectors, protection scores, diagrams, and remediation actions.
Didn't find tool you were looking for?