examples/json-formatter
CommunityFormat JSON files with configurable indentation.
Authorwhile-basic
Version1.0.0
Installs0
System Documentation
What problem does it solve?
JSON datasets and configs often require consistent formatting for readability and tooling. This Skill formats JSON files across nested directories, applying a configurable indentation and optional key sorting, saving results to an output folder.
Core Features & Use Cases
- Flexible formatting: apply indentation and optional key sorting to all JSON files under /input.
- Directory-preserving: preserves the original directory structure in /output for easy mapping back to source files.
- Use case: format a large set of JSON configuration files for a CI pipeline, generating consistently formatted configs for reviews.
Quick Start
Use the json-formatter tool to format JSON files located under /input and write results to /output. Example commands:
- enact run ./examples/tools/json-formatter --input ./data --output ./formatted
- enact run ./examples/tools/json-formatter --input ./data --output ./formatted --input indent=4
- enact run ./examples/tools/json-formatter --input ./data --output ./formatted --input sort_keys=true
- enact run ./examples/tools/json-formatter --input ./src --output ./src --apply
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: examples/json-formatter Download link: https://github.com/while-basic/enact-template/archive/main.zip#examples-json-formatter Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.