enact-formatter
// Formats and prettifies JSON with configurable indentation
$ git log --oneline --stat
stars:194
forks:37
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
enact2.0.0
nameenact-formatter
version1.0.0
descriptionFormats and prettifies JSON with configurable indentation
fromnode:20-alpine
commandnode /workspace/format.js ${json} ${indent}
inputSchema[object Object]
JSON Formatter
A simple tool that formats and prettifies JSON strings.
Usage
enact run enact/json-formatter --args '{"json": "{\"name\":\"test\",\"value\":123}", "indent": 2}'
Features
- Validates JSON input
- Configurable indentation (default: 2 spaces)
- Returns structured output with validation status
- Handles errors gracefully
Example Output
{
"formatted": "{\n \"name\": \"test\",\n \"value\": 123\n}",
"valid": true
}