← Back to Skills Marketplace
harrylabsj

json-formatter-pro

by haidong · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
203
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install json-formatter-pro
Description
Format and validate JSON files with options for pretty-printing, indentation, key sorting, and output to files or stdout.
README (SKILL.md)

json-formatter-pro

Format and validate JSON files with pretty-printing and validation modes.

Description

A utility skill for formatting JSON files with proper indentation and validating JSON syntax. Supports reading from files or stdin, outputting to files or stdout.

Usage

# Format a JSON file (pretty-print to stdout)
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format input.json

# Format and save to a new file
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format input.json -o output.json

# Validate JSON syntax without formatting
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate input.json

# Read from stdin, format and output to stdout
cat input.json | python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format -

# Validate JSON from stdin
cat input.json | python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate -

Options

  • format: Pretty-print JSON with proper indentation
  • validate: Check if JSON is valid without formatting output
  • -o, --output: Specify output file (default: stdout)
  • -i, --indent: Number of spaces for indentation (default: 2)
  • --sort-keys: Sort JSON keys alphabetically

Examples

# Format with 4-space indentation
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json -i 4

# Format and sort keys
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py format data.json --sort-keys

# Validate a JSON file
python ~/.openclaw/skills/json-formatter-pro/json_formatter.py validate config.json
# Output: Valid JSON or error message with line number

Exit Codes

  • 0: Success
  • 1: Invalid JSON syntax
  • 2: File not found or permission error
  • 3: Other error
Usage Guidance
This skill appears to be a simple, coherent JSON formatter/validator. Before installing or running it: (1) review the included json_formatter.py (which is short and readable) if you don't trust the source, (2) be aware it reads files or stdin and will write to any output path you provide (so avoid passing sensitive files or output paths you don't want overwritten), (3) ensure you run it with a standard Python runtime (no external network activity or credentials are required). There are no red flags in the code or SKILL.md.
Capability Analysis
Type: OpenClaw Skill Name: json-formatter-pro Version: 1.0.2 The skill is a straightforward JSON formatting and validation utility. The Python script (json_formatter.py) uses standard libraries to process JSON data and lacks any suspicious behaviors such as network access, credential theft, or command execution. The instructions in SKILL.md and README.md are consistent with the tool's stated purpose.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md examples, and the included python script all match: a CLI tool to validate and pretty-print JSON. Required capabilities (none) are proportional to the stated purpose.
Instruction Scope
SKILL.md instructs running the included python script from the skill directory or via stdin/files. The runtime instructions reference only file I/O and stdin/stdout consistent with formatting/validation; there are no steps that read unrelated system files, environment variables, or transmit data externally.
Install Mechanism
No install spec is provided (instruction-only), and the package includes a small Python script. No downloads, external package installs, or archive extraction are performed by the skill itself.
Credentials
The skill declares no environment variables, no credentials, and the code does not access environment or credential stores. The level of requested access is minimal and appropriate for a formatter.
Persistence & Privilege
The skill is not always-enabled, does not modify other skills or global agent settings, and does not request persistent privileges. It simply reads and writes files as dictated by the CLI arguments.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install json-formatter-pro
  3. After installation, invoke the skill by name or use /json-formatter-pro
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Version 1.0.2 of json-formatter-pro - No changes detected in this version.
v1.0.0
Initial release of json-formatter-pro. - Format JSON files with pretty-printing and customizable indentation. - Validate JSON syntax from files or stdin. - Support reading from stdin and outputting to files or stdout. - Options for sorting keys and specifying output files. - Clear exit codes for success and common error states.
v1.0.1
Rename skill to json-formatter-pro and republish
Metadata
Slug json-formatter-pro
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is json-formatter-pro?

Format and validate JSON files with options for pretty-printing, indentation, key sorting, and output to files or stdout. It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.

How do I install json-formatter-pro?

Run "/install json-formatter-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is json-formatter-pro free?

Yes, json-formatter-pro is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does json-formatter-pro support?

json-formatter-pro is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created json-formatter-pro?

It is built and maintained by haidong (@harrylabsj); the current version is v1.0.2.

💬 Comments