← Back to Skills Marketplace
harrylabsj

json-formatter-pro

by haidong · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
293
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install harrylabsj-json-formatter
Description
Format and validate JSON files with options for indentation, key sorting, input/output from files or stdin, and detailed error reporting.
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/json_formatter.py format input.json

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

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

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

# Validate JSON from stdin
cat input.json | python ~/.openclaw/skills/json-formatter/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/json_formatter.py format data.json -i 4

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

# Validate a JSON file
python ~/.openclaw/skills/json-formatter/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
The skill is internally consistent and low-risk: it runs locally, uses only Python stdlib json, and does not call the network or request secrets. Still exercise normal caution: the source and homepage are unknown — consider reviewing the included json_formatter.py yourself (it is short and readable) before installing, avoid running it on sensitive system files, and be careful with output paths (it will overwrite files you point it at). If you want extra safety, run it in a restricted/sandboxed environment or with non-privileged user permissions.
Capability Analysis
Type: OpenClaw Skill Name: harrylabsj-json-formatter Version: 1.0.3 The skill is a standard JSON formatting and validation utility. The Python script (json_formatter.py) uses built-in libraries (json, argparse, pathlib) to perform its stated tasks without any network access, shell execution, or suspicious data handling. The documentation (SKILL.md and README.md) contains clear usage instructions and lacks any prompt-injection attempts or malicious commands.
Capability Assessment
Purpose & Capability
Name/description match the included code and instructions. The script implements formatting and validation, and the SKILL.md usage examples align with the code's CLI.
Instruction Scope
SKILL.md instructs running the included Python script against user-specified files or stdin; it does not ask the agent to read unrelated files, environment variables, or transmit data externally. The script only reads the provided input path or stdin and writes to the specified output or stdout.
Install Mechanism
No install spec — instruction-only with an included Python script. Nothing is downloaded or extracted from external URLs and no packages are installed.
Credentials
No environment variables, credentials, or config paths are requested. The script uses only standard library json and filesystem access for user-specified paths.
Persistence & Privilege
always is false and the skill does not request elevated or persistent privileges, nor does it modify other skills or global agent configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install harrylabsj-json-formatter
  3. After installation, invoke the skill by name or use /harrylabsj-json-formatter
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
Fix wrong package upload caused by ambiguous publish path; republish correct JSON formatter content.
v1.0.2
Republish clean package for json-formatter-pro with correct files only
v1.0.1
Rename skill to json-formatter-pro
v1.0.0
Initial release: Format and validate JSON files
Metadata
Slug harrylabsj-json-formatter
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is json-formatter-pro?

Format and validate JSON files with options for indentation, key sorting, input/output from files or stdin, and detailed error reporting. It is an AI Agent Skill for Claude Code / OpenClaw, with 293 downloads so far.

How do I install json-formatter-pro?

Run "/install harrylabsj-json-formatter" 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.3.

💬 Comments