← 返回 Skills 市场
File Organizer Skill
作者
azzar budiyanto
· GitHub ↗
· v1.0.0
12399
总下载
4
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install file-organizer-skill
功能描述
Organize files in directories by grouping them into folders based on their extensions or date. Includes Dry-Run, Recursive, and Undo capabilities.
安全使用建议
Install only if you are comfortable with a local script that moves files. Use dry-run first, run it only on directories you explicitly choose, avoid recursive mode on broad folders, and do not use --undo with a history file you did not create and inspect.
功能分析
Type: OpenClaw Skill
Name: file-organizer-skill
Version: 1.0.0
The `scripts/organize.py` skill is suspicious due to a critical file movement vulnerability in its `undo` functionality. The `undo` function takes a user-supplied `log_file` path without sufficient validation. This `log_file` is parsed as JSON, and its `src` and `dst` fields are directly used in `shutil.move(dst, src)`. An attacker could craft a malicious `organize_history.json` file containing arbitrary `src` and `dst` paths, allowing them to move any file on the system (e.g., `/etc/passwd` to `/tmp/backup` or vice-versa) by executing the skill with the `--undo` flag, leading to potential data tampering, denial of service, or privilege escalation.
能力评估
Credentials
Moving files is expected for this skill, but the undo implementation can relocate any file accessible to the running user if given a crafted history file, which is broader than the documented folder-scoped workflow.
Install Mechanism
The artifact is a simple skill with Markdown instructions, one local Python script, and one reference file; no package install, remote retrieval, or dependency setup was found.
Instruction Scope
The normal organize path is user-directed, but undo accepts any log file path and replays src/dst entries without validating that the file was generated by this tool or that paths stay within the organized directory.
Persistence & Privilege
No services, hooks, scheduled tasks, credential access, or network behavior were found; the only persistence is an organize_history.json audit file, which undo deletes after running.
Purpose & Capability
The core capability matches the stated purpose: it sorts files by extension or date, supports dry run, recursion, conflict renaming, history logging, and undo.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install file-organizer-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/file-organizer-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the File Organizer skill.
- Organize files by extension (default) or by date (year/month).
- Supports dry run mode to preview changes without moving files.
- Includes recursive scanning and undo functionality.
- Tracks actions in an organize_history.json file for audit and undo.
元数据
常见问题
File Organizer Skill 是什么?
Organize files in directories by grouping them into folders based on their extensions or date. Includes Dry-Run, Recursive, and Undo capabilities. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 12399 次。
如何安装 File Organizer Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install file-organizer-skill」即可一键安装,无需额外配置。
File Organizer Skill 是免费的吗?
是的,File Organizer Skill 完全免费(开源免费),可自由下载、安装和使用。
File Organizer Skill 支持哪些平台?
File Organizer Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 File Organizer Skill?
由 azzar budiyanto(@1999azzar)开发并维护,当前版本 v1.0.0。
推荐 Skills