← 返回 Skills 市场
freeter226

JSON Wizard

作者 freeter226 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
150
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install json-wizard
功能描述
JSON formatting, validation, and conversion tool. Format, compress, validate JSON, and convert between JSON and YAML.
使用说明 (SKILL.md)

JSON Formatter

A simple JSON formatting, validation, and conversion tool.

Features

  • Format/Beautify - Make JSON readable with proper indentation
  • Compress/Minify - Remove whitespace for compact JSON
  • Validate - Check JSON syntax and report errors
  • Convert - JSON ↔ YAML conversion

Usage

python3 skills/json-formatter/scripts/json_formatter.py \x3Caction> [options]

Actions

Action Description
format Format JSON with indentation
compress Minify JSON (remove whitespace)
validate Validate JSON syntax
to-yaml Convert JSON to YAML
from-yaml Convert YAML to JSON

Options

Option Type Default Description
--input string - Input string or file path
--indent int 2 Indentation spaces (for format)
--file bool false Treat input as file path

Examples

# Format JSON
python3 skills/json-formatter/scripts/json_formatter.py format --input '{"name":"test","value":123}'

# Compress JSON
python3 skills/json-formatter/scripts/json_formatter.py compress --input '{"name": "test", "value": 123}'

# Validate JSON
python3 skills/json-formatter/scripts/json_formatter.py validate --input '{"name":"test"}'

# Convert to YAML
python3 skills/json-formatter/scripts/json_formatter.py to-yaml --input '{"name":"test","items":[1,2,3]}'

# From YAML to JSON
python3 skills/json-formatter/scripts/json_formatter.py from-yaml --input 'name: test'

Use Cases

  1. Debug API responses - Format and inspect JSON data
  2. Reduce file size - Compress JSON for storage/transmission
  3. Validate config files - Check JSON syntax before deployment
  4. Convert formats - Switch between JSON and YAML for different tools

Current Status

In development.

安全使用建议
This skill appears to do exactly what it says: format, compress, validate JSON and convert to/from YAML. Before installing or running it: 1) ensure python3 is available; install PyYAML (pip install pyyaml) if you need YAML conversion; otherwise JSON-only features work without it. 2) Be aware the script can read arbitrary local files when run with --file, so do not point it at sensitive files unless you intend to process them. 3) Fix the path mismatch in SKILL.md (it references a different path than the actual file) so the agent can invoke the script reliably. Overall the skill is coherent and contains no obvious malicious behavior.
能力评估
Purpose & Capability
The name/description (JSON formatting, validation, conversion) align with the included script and requirements. Minor inconsistency: SKILL.md usage shows the script path as 'skills/json-formatter/scripts/json_formatter.py' while the repository contains 'scripts/json_formatter.py' (README also references 'scripts/json_formatter.py'). This is a packaging/path mismatch that can break execution but is not a security issue.
Instruction Scope
The SKILL.md instructions are narrowly scoped to formatting/validating/converting JSON and YAML. The runtime script will read an input string or an arbitrary local file when invoked with --file; it prints JSON-formatted results to stdout. There are no network calls, no references to unrelated env vars, and no attempts to access config or credentials. Note: reading arbitrary local files is expected for a converter but could expose sensitive files if used on secrets.
Install Mechanism
There is no install spec (instruction-only skill) and no downloads. A requirements.txt lists pyyaml; the script gracefully handles PyYAML not being installed. README suggests 'pip install pyyaml' for YAML support. This is proportionate and low-risk.
Credentials
The skill requests no environment variables, no credentials, and no config paths. This is appropriate for its stated functionality.
Persistence & Privilege
The skill does not request persistent/always presence (always:false) and does not modify other skills or system configuration. Default autonomous invocation is allowed but not in itself a red flag here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install json-wizard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /json-wizard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首个版本:支持 JSON 格式化、压缩、校验、JSON-YAML互转
元数据
Slug json-wizard
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

JSON Wizard 是什么?

JSON formatting, validation, and conversion tool. Format, compress, validate JSON, and convert between JSON and YAML. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。

如何安装 JSON Wizard?

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

JSON Wizard 是免费的吗?

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

JSON Wizard 支持哪些平台?

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

谁开发了 JSON Wizard?

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

💬 留言讨论