format-json

Parse Markdown files and reformat minified JSON code blocks with 2-space indentation.

9|3|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/steelan9199/wechat-publisher --skill format-json
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: format-json
Source: https://github.com/steelan9199/wechat-publisher/tree/main/skills/format-json
Command: npx skills add https://github.com/steelan9199/wechat-publisher --skill format-json

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the issue of unreadable, minified JSON data embedded within Markdown files, which is often difficult for developers and users to audit or review.

Core Features & Use Cases

  • Automated Formatting: Automatically detects and beautifies compressed JSON code blocks into standard 2-space indented format.
  • Language Agnostic: Works on any Markdown code block that contains valid JSON, regardless of the language tag used.
  • Use Case: When you have a documentation file containing raw API responses or configuration data that is hard to read, this tool instantly cleans up the structure for better readability.

Quick Start

Use the format-json skill to beautify all JSON code blocks found in the file named documentation.md.

Frequently Asked Questions about format-json

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I beautify minified JSON code blocks inside a Markdown file?

To beautify minified JSON inside Markdown, this Skill parses the file, detects compressed JSON code blocks, and automatically reformats them into human-readable, 2-space indented structures. It transforms target documentation files in-place for immediate readability.

Can I use this to clean up raw API responses embedded in documentation?

Yes, you can clean up raw API responses in documentation by running this Skill on the target Markdown file. It instantly parses and beautifies the embedded JSON configuration data into a standard 2-space indented format for easier code review.

Does the Markdown JSON formatter work on code blocks with any language tag?

The Markdown JSON formatter works on any Markdown code block containing valid JSON, regardless of the specific language tag used. It automatically detects and reformats the compressed data into indented structures.

What is the best way to format minified JSON for code review workflows?

The best way to format minified JSON for review workflows is using an automated beautifier that parses Markdown and restructures the data in-place. This Skill automatically applies a standard 2-space indentation to make embedded JSON readable.

Why does the formatter modify my documentation files in-place?

The formatter modifies documentation files in-place by utilizing Node.js file system operations to directly parse and transform the target Markdown. This approach instantly updates the minified JSON code blocks without generating separate output files.

When should I not use an automated Markdown JSON beautifier?

You should not use an automated Markdown JSON beautifier on code blocks containing invalid JSON, as the parser requires valid data to reformat the structure into indented, human-readable text.