跳到正文
TakoAPI
返回技能列表

expanso-json-pretty

由 aronchick 提供

PDF & Documents
588下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

"Pretty print JSON with indentation".

描述

该技能的功能

Formats JSON input with standard indentation. Accepts raw or minified JSON via stdin and outputs a human-readable version. Can run as a standalone CLI pipeline or as an MCP server.

Runs as both a CLI pipeline and an MCP server from the same skill, so the same tool works for interactive terminal use and automated agent workflows without switching utilities.

何时使用

  • Formatting raw API response bodies before reading
  • Inspecting minified JSON config files
  • Cleaning up curl output in a terminal pipeline
  • Reviewing webhook payloads during local development
  • Preparing JSON snippets for readable code review comments

示例工作流

输入

User asks: Format this JSON: {"name":"alice","age":30,"active":true}

智能体
  1. 1

    Receives the raw JSON string as input

  2. 2

    Pipes it through expanso-edge using pipeline-cli.yaml

  3. 3

    Expanso Edge applies indentation and formatting

  4. 4

    Returns the pretty-printed JSON

输出

{ "name": "alice", "age": 30, "active": true }

前置要求

  • Expanso Edge binary installed in PATH (run `clawhub install expanso-edge`)

安装

clawhub install aronchick/expanso-json-pretty

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接