← 返回 Skills 市场
JSON Formatter
作者
HonestQiao
· GitHub ↗
· v1.0.0
943
总下载
0
收藏
10
当前安装
1
版本数
在 OpenClaw 中安装
/install json-formatter
功能描述
Format, validate, compress JSON data, and extract JSON paths for improved readability and structure verification.
使用说明 (SKILL.md)
JSON Formatter
格式化、验证和压缩 JSON 数据。
功能
- JSON 格式化(缩进)
- JSON 验证
- JSON 压缩
- 路径提取
触发词
- "格式化JSON"
- "json格式化"
- "prettify json"
- "验证json"
示例
输入: {"a":1,"b":2}
输出: {
"a": 1,
"b": 2
}
输出
{
"formatted": "...",
"valid": true,
"size": 1024,
"paths": ["$.a", "$.b"]
}
安全使用建议
This appears to be a simple, low-risk JSON formatting skill, but it advertises features (compression/minification and JSON path extraction) that are not implemented in the provided snippet or output schema. Before installing or enabling it for autonomous use, ask the author to: (1) clarify/implement the path-extraction and compression features or remove them from the docs, (2) align the SKILL.md output schema with the actual implementation, and (3) provide examples showing how 'paths' are derived. Test the skill on representative inputs to confirm outputs match expectations. No external credentials are requested, so there is no immediate credential-exfiltration risk, but the capability mismatch could lead to confusing or incorrect agent behavior.
功能分析
Type: OpenClaw Skill
Name: json-formatter
Version: 1.0.0
The skill is designed for JSON formatting, validation, and compression. The JavaScript implementation in `skill.yaml` uses standard `JSON.parse` and `JSON.stringify` methods, performing only the stated functions without any high-risk operations like network calls, file system access, or arbitrary code execution. While there is a minor inconsistency between the `SKILL.md` (mentioning 'path extraction' and a 'paths' key in output) and the `skill.yaml` implementation (which does not include this feature), and a type mismatch in the `skill.yaml` function signature (string return type vs. object actual return), these are considered minor bugs or incomplete features, not malicious intent or exploitable vulnerabilities.
能力评估
Purpose & Capability
The skill name and description (format/validate/compress/extract paths) match an instruction-only JSON formatter. It appropriately requires no binaries, env vars, or installs. However, the implementation snippet only implements formatting, validation, and size — it does not implement compression/minification options or JSON path extraction despite those being advertised.
Instruction Scope
SKILL.md declares outputs including 'paths' and lists compression as a feature. The skill.yaml's JavaScript implementation returns {formatted, valid, size} (and error on parse failure) and does not produce 'paths' nor a dedicated 'compressed' output. This mismatch may cause the agent to promise outputs it cannot produce.
Install Mechanism
Instruction-only skill with no install spec and no code files beyond short manifest; nothing is written to disk or downloaded. This is low-risk from an install perspective.
Credentials
No environment variables, credentials, or config paths are requested — consistent and proportionate for a JSON formatting utility.
Persistence & Privilege
Skill is not forced-always, does not request elevated privileges, and does not modify other skills. Autonomous invocation is allowed by default (platform normal) and does not combine with other red flags here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install json-formatter - 安装完成后,直接呼叫该 Skill 的名称或使用
/json-formatter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of JSON Formatter.
- Supports JSON formatting (indentation), validation, and compression.
- Allows extraction of all JSON paths from input data.
- Handles trigger phrases in both Chinese and English.
- Provides structured output with formatted JSON, validity status, size, and paths.
元数据
常见问题
JSON Formatter 是什么?
Format, validate, compress JSON data, and extract JSON paths for improved readability and structure verification. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 943 次。
如何安装 JSON Formatter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-formatter」即可一键安装,无需额外配置。
JSON Formatter 是免费的吗?
是的,JSON Formatter 完全免费(开源免费),可自由下载、安装和使用。
JSON Formatter 支持哪些平台?
JSON Formatter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 JSON Formatter?
由 HonestQiao(@honestqiao)开发并维护,当前版本 v1.0.0。
推荐 Skills