Skip to content
Back to skills

Enact Formatter

ASecurity

Formats and prettifies JSON with configurable indentation

  • 416 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
toolsbashnode

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add aiskillstore/marketplace --skill enact-formatter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Enact Formatter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Enact Formatter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aiskillstore-enact-formatter/badge)](https://www.skillsdirectory.com/skills/aiskillstore-enact-formatter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
enact: "2.0.0"
name: enact-formatter
version: 1.0.0
description: Formats and prettifies JSON with configurable indentation
from: "node:20-alpine"
command: "node /workspace/format.js ${json} ${indent}"

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
---

# 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.md926 B
  • format.js434 B
  • skill-report.json6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…