thomasholknielsen/claude-code-config · Archived

json-formatter

Formats and validates JSON data. Use when you need to pretty-print JSON, fix formatting issues, or validate JSON syntax. ALWAYS USE THIS when doing JSON Formatting

First seen Jan 24, 2026

Installation

$ npx skills add thomasholknielsen/claude-code-config --skill json-formatter

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

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 thomasholknielsen/claude-code-config.

npx skills add thomasholknielsen/claude-code-config

Browse all from thomasholknielsen/claude-code-config

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 Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Stars 6
License LICENSE
Default branch master
Open issues 1
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,232 B
  • docs SUMMARY.md 185 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 39 installs

SKILL.md

JSON Formatter

Instructions

When asked to format, validate, or prettify JSON:

  1. Identify the JSON data (raw, minified, or malformed)
  2. Parse and validate the structure
  3. Return properly formatted JSON with:

- Consistent 2-space indentation - Proper line breaks - Valid syntax

Examples

Example 1: Minified JSON

Input:

{"name":"John","age":30,"city":"New York","hobbies":["reading","gaming"]}

Output:

{
  "name": "John",
  "age": 30,
  "city": "New York",
  "hobbies": [
    "reading",
    "gaming"
  ]
}

Example 2: Validating JSON

If JSON is invalid, explain the issue and suggest a fix:

{"incomplete": "data",}  // trailing comma

Response: "Invalid JSON: Trailing comma after last property. Remove the comma before the closing brace."

Best Practices

  • Use 2-space indentation for consistency
  • Sort object keys alphabetically when helpful
  • Validate before formatting
  • Preserve original data types (strings, numbers, booleans, null)