Back to skills
SKILL.md
Enact Json Formatter
ASecurityFormats and prettifies JSON with configurable indentation
- 416 stars
- 0 votes
- 0 copies
- 3 views
- Added February 7, 2026
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add aiskillstore/marketplace --skill enact-json-formatter --agent claude-codeAre you the author of Enact Json Formatter?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aiskillstore-enact-json-formatter)---
enact: "2.0.0"
name: enact-json-formatter
version: 1.0.1
description: Formats and prettifies JSON with configurable indentation
from: "node:20-alpine"
command: "node /workspace/format.js ${json} ${indent}"
timeout: "30s"
inputSchema:
type: object
properties:
json:
type: string
description: "JSON string to format"
indent:
type: integer
default: 2
description: "Number of spaces for indentation"
required:
- json
outputSchema:
type: object
properties:
formatted:
type: string
description: "Prettified JSON string"
valid:
type: boolean
description: "Whether the input was valid JSON"
error:
type: string
description: "Error message if JSON was invalid"
annotations:
readOnlyHint: true
idempotentHint: true
tags:
- json
- formatting
- utility
---
# JSON Formatter
A simple tool that formats and prettifies JSON strings.
## Usage
```bash
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
```json
{
"formatted": "{\n \"name\": \"test\",\n \"value\": 123\n}",
"valid": true
}
```
Files in this skill
- SKILL.md
- format.js
- skill-report.json
Attribution
Comments
Loading comments…