← 返回 Skills 市场
rogue-agent1

Jsonpretty

作者 rogue-agent1 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
130
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install jsonpretty
功能描述
Format, validate, query, flatten, and analyze JSON data. Use when asked to pretty-print JSON, validate JSON syntax, query nested JSON with dot-notation, flat...
使用说明 (SKILL.md)

jsonpretty 📋

JSON swiss army knife — format, validate, query, flatten, stats.

Commands

# Pretty-print (from file or stdin)
python3 scripts/jsonpretty.py data.json
echo '{"a":1}' | python3 scripts/jsonpretty.py

# Validate JSON
python3 scripts/jsonpretty.py --validate data.json

# Query with dot-notation
echo '{"user":{"name":"Rogue"}}' | python3 scripts/jsonpretty.py -q "user.name"

# Flatten nested JSON
cat data.json | python3 scripts/jsonpretty.py --flat

# Structure stats (key count, depth, types, size)
python3 scripts/jsonpretty.py --stats data.json

# Compact output (minify)
python3 scripts/jsonpretty.py --compact data.json

# Sort keys
python3 scripts/jsonpretty.py --sort data.json

Features

  • Pretty-print with 2-space indent (default)
  • JSON validation with error messages
  • Dot-notation querying (supports array indices: key[0].sub)
  • Flatten nested objects to key.subkey = value pairs
  • Structure statistics: key count, nesting depth, type distribution, byte size
  • Compact/minify mode
  • Sorted key output
  • Reads from file or stdin
安全使用建议
This appears to be a simple, self-contained JSON utility. Before installing or running it, ensure you have Python3 available and be mindful about pointing it at sensitive files (it will read any file path you provide). Note: the repository contains the same script in two locations (root and scripts/), which is harmless but redundant. Also be aware that some query paths may raise exceptions on malformed paths (this is a usability bug, not a security issue). If you need production guarantees, consider auditing behavior on very large or deeply nested JSON to avoid memory/stack issues.
功能分析
Type: OpenClaw Skill Name: jsonpretty Version: 1.0.0 The jsonpretty skill is a standard utility for processing JSON data, including formatting, validation, and querying. The Python implementation in jsonpretty.py uses only the standard library, contains no network or unauthorized file system access, and lacks any signs of obfuscation or malicious intent.
能力评估
Purpose & Capability
Name/description (format, validate, query, flatten, stats) matches the code and SKILL.md. The skill only requires Python to run and reads JSON from a file or stdin, which is appropriate for the stated purpose.
Instruction Scope
SKILL.md instructs running the provided Python script against a file or stdin and lists feature flags (validate, query, flat, stats, compact, sort). The runtime instructions do not ask the agent to read unrelated files, environment variables, or transmit data to external endpoints.
Install Mechanism
There is no install spec. The skill is instruction-only / script-based and uses only the local Python interpreter and standard library; nothing is downloaded or written to disk beyond the included files.
Credentials
No environment variables, credentials, or config paths are required. The skill does not request broad secrets or unrelated tokens.
Persistence & Privilege
always is false and the skill does not request persistent system privileges or modify other skills or system-wide settings. It only runs the provided script when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install jsonpretty
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /jsonpretty 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of jsonpretty, a pure Python tool for JSON formatting and analysis. - Supports pretty-printing, validation with error messages, dot-notation querying (including array indices), and flattening of nested JSON. - Provides JSON structure statistics: key count, maximum depth, data type summary, and byte size. - Includes compact (minify) and key-sorting output modes. - Works with files or stdin; zero external dependencies required.
元数据
Slug jsonpretty
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Jsonpretty 是什么?

Format, validate, query, flatten, and analyze JSON data. Use when asked to pretty-print JSON, validate JSON syntax, query nested JSON with dot-notation, flat... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。

如何安装 Jsonpretty?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install jsonpretty」即可一键安装,无需额外配置。

Jsonpretty 是免费的吗?

是的,Jsonpretty 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Jsonpretty 支持哪些平台?

Jsonpretty 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Jsonpretty?

由 rogue-agent1(@rogue-agent1)开发并维护,当前版本 v1.0.0。

💬 留言讨论