Agent skill
enact/json-formatter
Formats and prettifies JSON with configurable indentation
Install this agent skill to your Project
npx add-skill https://github.com/while-basic/enact-template/tree/main/examples/json-formatter
SKILL.md
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
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
test/echo-tool
A tool that echoes its input for testing
enact/hello-ruby
A simple Ruby greeting tool
enact/hello-js
A simple JavaScript greeting tool
enact/firecrawl
Scrape, crawl, search, and extract structured data from websites using Firecrawl API - converts web pages to LLM-ready markdown
examples/code-reviewer
AI-powered code review tool that analyzes code for bugs, style issues, and improvements
enact/text-summarizer
Analyzes text and provides word count, character count, and sentence statistics
Didn't find tool you were looking for?