Skip to content
OpenSmartRoute
Skillv1.0.0

enact-json-formatter

Formats and prettifies JSON with configurable indentation

by aiskillstore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from aiskillstore/marketplace (skills/enactprotocol/enact-json-formatter/SKILL.md). Install upstream with npx skills add aiskillstore/marketplace --skill enact-json-formatter. Copyright stays with the author.

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
}

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/aiskillstore-marketplace-enact-json-formatter/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

aiskillstore-marketplace-enact-json-formatter.ocm.jsonjson
{
  "ocm": "1",
  "id": "aiskillstore-marketplace-enact-json-formatter",
  "kind": "skill",
  "name": "enact-json-formatter",
  "description": "Formats and prettifies JSON with configurable indentation",
  "publisher": "aiskillstore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "json",
      "formatting",
      "utility",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Formats and prettifies JSON with configurable indentation"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/aiskillstore/marketplace",
      "path": "skills/enactprotocol/enact-json-formatter/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/aiskillstore/marketplace/blob/HEAD/skills/enactprotocol/enact-json-formatter/SKILL.md",
      "key": "aiskillstore/marketplace/skills/enactprotocol/enact-json-formatter/SKILL.md"
    }
  },
  "instructions": "# JSON Formatter\n\nA simple tool that formats and prettifies JSON strings.\n\n## Usage\n\n```bash\nenact run enact/json-formatter --args '{\"json\": \"{\\\"name\\\":\\\"test\\\",\\\"value\\\":123}\", \"indent\": 2}'\n```\n\n## Features\n\n- Validates JSON input\n- Configurable indentation (default: 2 spaces)\n- Returns structured output with validation status\n- Handles errors gracefully\n\n## Example Output\n\n```json\n{\n  \"formatted\": \"{\\n  \\\"name\\\": \\\"test\\\",\\n  \\\"value\\\": 123\\n}\",\n  \"valid\": true\n}\n```",
  "cost": {
    "context_tokens": 118
  }
}

Fetch it by URL: GET /api/v1/registry/aiskillstore-marketplace-enact-json-formatter/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.

enact-json-formatter - Skill - OpenSmartRoute