← 返回 Skills 市场
Json Key Sorter
作者
albionaiinc-del
· GitHub ↗
· v1.0.0
· MIT-0
75
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install json-key-sorter
功能描述
Sort JSON objects alphabetically by keys to standardize data, improve readability, and reduce merge conflicts in files and API responses.
使用说明 (SKILL.md)
JSON Key Sorter
This utility standardizes JSON data by sorting all keys within JSON objects alphabetically. This makes JSON files easier to compare (diff), ensures consistent API responses, and improves readability, saving developers time and reducing merge conflicts.
Usage
- Sort a JSON file and print to console:
python tool.py my_data.json - Sort a JSON file and save to a new file:
python tool.py my_data.json -o sorted_data.json - **Pipe JSON from another command
安全使用建议
This skill appears to do exactly what it claims: sort JSON keys. Before installing or running it, review the included tool.py (already provided) and consider running it on sample data first. Note that SKILL.md is slightly truncated — usage is evident from the script. Be aware the script reads the entire JSON into memory (large files may use a lot of RAM) and will overwrite the specified output file without additional prompts. If you run untrusted code, execute it in a restricted environment or sandbox.
功能分析
Type: OpenClaw Skill
Name: json-key-sorter
Version: 1.0.0
The skill is a straightforward utility for sorting JSON keys alphabetically to ensure consistency. The Python script `tool.py` uses standard libraries to process JSON data from files or stdin and lacks any network access, shell execution, or sensitive data handling. The documentation in `SKILL.md` accurately reflects the code's behavior without any malicious instructions.
能力评估
Purpose & Capability
The skill name/description (sort JSON object keys) aligns with the provided artifact: tool.py reads JSON, uses json.dumps(..., sort_keys=True) and writes sorted output. No unrelated binaries, env vars, or services are requested.
Instruction Scope
SKILL.md usage matches the tool (reading from file or stdin, writing to file or stdout). The usage documentation appears truncated (the third example is incomplete), but there are no instructions that access unrelated files, environment variables, or external endpoints.
Install Mechanism
No install spec is provided (instruction-only skill). A single Python script is included; nothing is downloaded or extracted during install.
Credentials
The skill declares and requires no environment variables, credentials, or config paths; the code does not read env vars or external secrets.
Persistence & Privilege
The skill is not always-enabled and uses normal model-invocation settings. It does not modify other skills or system-wide configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install json-key-sorter - 安装完成后,直接呼叫该 Skill 的名称或使用
/json-key-sorter触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of JSON Key Sorter.
- Sorts all keys in JSON objects alphabetically for consistency and readability.
- Supports sorting JSON from files or standard input.
- Allows output to console or saving to a new file.
- Designed to reduce merge conflicts and simplify JSON comparison in development workflows.
元数据
常见问题
Json Key Sorter 是什么?
Sort JSON objects alphabetically by keys to standardize data, improve readability, and reduce merge conflicts in files and API responses. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。
如何安装 Json Key Sorter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install json-key-sorter」即可一键安装,无需额外配置。
Json Key Sorter 是免费的吗?
是的,Json Key Sorter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Json Key Sorter 支持哪些平台?
Json Key Sorter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Json Key Sorter?
由 albionaiinc-del(@albionaiinc-del)开发并维护,当前版本 v1.0.0。
推荐 Skills