← Back to Skills Marketplace
Sort
by
BytesAgain2
· GitHub ↗
· v3.0.2
· MIT-0
307
Downloads
0
Stars
2
Active Installs
8
Versions
Install in OpenClaw
/install sort
Description
Sort files, lines, and columns with custom ordering and dedup. Use when scanning duplicates, monitoring changes, reporting results, alerting anomalies.
Usage Guidance
This skill appears coherent and local-only: it sorts and analyses files using a bundled shell script and standard utilities. Before installing or invoking it, be aware that it will create ~/.local/share/sort/history.log and append entries containing the filenames and operation details (counts, flags). If you plan to run it on sensitive files, either inspect the script yourself, run it in a sandbox, or clear/relocate the history file afterwards. Also note the python fallback embeds the provided JSON key into inline Python code (unescaped), which is fine for normal keys but could misbehave with unexpected characters—prefer using jq if available. Otherwise there are no requested credentials or network endpoints to be concerned about.
Capability Analysis
Type: OpenClaw Skill
Name: sort
Version: 3.0.2
The skill bundle contains a critical command injection vulnerability in the `cmd_json` function within `scripts/script.sh`. The Python fallback implementation for JSON sorting interpolates the `${key}` and `${file}` variables directly into a `python3 -c` command string and a Python f-string, allowing for arbitrary code execution (RCE) if a malicious key or filename is provided. While the tool's functionality is consistent with its stated purpose and it includes documented local logging to `~/.local/share/sort/history.log`, the lack of input sanitization in a high-risk execution context warrants a suspicious classification.
Capability Assessment
Purpose & Capability
Name/description match the code and instructions: the script implements line/csv/json/dedup/shuffle/rank/top/freq/stats operations. No unrelated credentials, binaries, or network access are requested.
Instruction Scope
Runtime instructions are focused on file-processing commands and match the included script. The SKILL.md and script explicitly log operations to ~/.local/share/sort/history.log; this is in-scope for an audit trail but is additional data collection the user should expect.
Install Mechanism
No install spec or external downloads; the skill is instruction + an included shell script. It relies on standard OS utilities (sort, awk, head, tail, etc.) and optionally jq/python3 if available.
Credentials
No environment variables, credentials, or config paths are required. The script checks for optional tools (jq, python3) but does not request secrets or unrelated tokens.
Persistence & Privilege
The script creates ${HOME}/.local/share/sort and appends operations to history.log. This is limited persistence (per-user) and appears reasonable for audit logging, but it will store filenames and operation metadata locally.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install sort - After installation, invoke the skill by name or use
/sort - Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.2
v3.0.2: Fixed SKILL.md alignment — declared data storage, env vars, fixed python3 injection.
v3.0.1
v3.0.1: SKILL.md rewritten to match new script commands.
v3.0.0
v3.0.0: Complete rewrite — real sort commands instead of logging template.
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.2
old template -> domain-specific v2.0.0
v1.0.1
old template -> domain-specific v2.0.0
v1.0.0
Initial release
Metadata
Frequently Asked Questions
What is Sort?
Sort files, lines, and columns with custom ordering and dedup. Use when scanning duplicates, monitoring changes, reporting results, alerting anomalies. It is an AI Agent Skill for Claude Code / OpenClaw, with 307 downloads so far.
How do I install Sort?
Run "/install sort" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Sort free?
Yes, Sort is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Sort support?
Sort is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Sort?
It is built and maintained by BytesAgain2 (@ckchzh); the current version is v3.0.2.
More Skills