Claude Code Plugins

Community-maintained marketplace

Feedback

examples/json-formatter

@while-basic/enact-template
0
0

Format JSON files with configurable indentation

Install Skill

Shared

Installs to .agents/skills, used by Codex, Amp, Warp, Cursor, OpenCode, and more.

CodexAmp
Warp
CursorOpenCode
Cline
Gemini CLI
GitHub Copilot
Personal

Available across projects.

$npx skills-installer add @while-basic/enact-template/skill.md --client shared
Project

Writes to .agents/skills.

$npx skills-installer add @while-basic/enact-template/skill.md -p --client shared
Note: Review the skill instructions before using it.

SKILL.md

name examples/json-formatter
description Format JSON files with configurable indentation
version 1.0.0
enact 2.0
from python:3.12-slim
inputSchema [object Object]
command python /workspace/format.py --indent ${indent} --sort-keys ${sort_keys}

JSON Formatter

A tool that formats JSON files in /input and writes prettified versions to /output.

Usage

# Basic usage - format JSON files with default 2-space indent
enact run ./examples/tools/json-formatter --input ./data --output ./formatted

# Custom indentation
enact run ./examples/tools/json-formatter --input ./data --output ./formatted --input indent=4

# Sort keys alphabetically
enact run ./examples/tools/json-formatter --input ./data --output ./formatted --input sort_keys=true

# In-place formatting with --apply
enact run ./examples/tools/json-formatter --input ./src --output ./src --apply

Container Layout

  • /workspace - Tool source code (format.py)
  • /input - Your JSON files to format
  • /output - Formatted JSON files

Parameters

Name Type Default Description
indent integer 2 Number of spaces for indentation
sort_keys boolean false Sort object keys alphabetically