← 返回 Skills 市场
142
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install unzip-all
功能描述
递归解压所有嵌套的压缩包(zip/7z/rar),支持中文文件名。用于解压包含多层嵌套压缩包的文件夹。
安全使用建议
This skill appears to do exactly what it says, but take precautions before using it on important data:
- Backup your archives or test the skill on a copy first — the script deletes original archives after successful extraction.
- The zip extraction does not sanitize archive member names (no zip-slip protection). Malicious archives could write files outside the target folder; avoid running this on untrusted archives or add path-sanitization checks (ensure final paths are under the extraction directory using abspath checks).
- The script searches the Windows registry for 7‑Zip and uses Windows-style paths; it may not work on non-Windows systems or systems where 7z is in PATH but not registered. Confirm 7‑Zip is installed and accessible.
- If you want safer behavior, modify the script to: (a) not auto-delete originals (or make deletion optional), (b) validate member paths (reject absolute paths and any path that escapes the target directory), and (c) look for 7z on PATH for non-Windows OSes.
If you accept those limitations and run it in a controlled environment (or after applying the suggested fixes), the skill is coherent with its stated purpose.
功能分析
Type: OpenClaw Skill
Name: unzip-all
Version: 1.0.0
The script scripts/unzip_all.py is vulnerable to a ZipSlip attack because it extracts files using paths stored within the archive (after decoding) without sanitizing them against path traversal (e.g., '../'). Additionally, the script automatically deletes original archive files after extraction (os.remove), which is a destructive action that could lead to data loss if extraction is only partially successful or if the archive contains malicious paths. It also executes an external binary (7z.exe) located via the Windows registry or hardcoded paths.
能力评估
Purpose & Capability
Name/description match the included script: the Python script recursively extracts .zip/.7z/.rar files and handles GBK-encoded Chinese filenames. Required capabilities (7‑Zip for .7z/.rar) are documented in SKILL.md.
Instruction Scope
SKILL.md instructs the agent to extract files or folders and documents behavior (recursive extraction, GBK handling, and deleting originals). Nothing in the instructions or code attempts to read unrelated user files, call external network endpoints, or access unrelated credentials. Two operational risks: (1) the script deletes original archives after successful extraction (documented, but destructive), and (2) the zip extraction lacks protection against path traversal (zip-slip), so a malicious archive could write files outside the intended folder.
Install Mechanism
Instruction-only skill with an included Python script and no install spec. No downloads or third-party install steps are performed by the skill itself.
Credentials
The skill requests no environment variables or credentials. It does access the Windows registry to find 7z.exe (to locate 7‑Zip), which is reasonable for the stated Windows-targeted behavior but is not declared as an OS restriction.
Persistence & Privilege
No 'always' flag and no code that modifies other skills or agent-wide configuration. The skill runs only when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install unzip-all - 安装完成后,直接呼叫该 Skill 的名称或使用
/unzip-all触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始版本:递归解压所有嵌套压缩包,支持中文文件名
元数据
常见问题
unzip-all 是什么?
递归解压所有嵌套的压缩包(zip/7z/rar),支持中文文件名。用于解压包含多层嵌套压缩包的文件夹。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 142 次。
如何安装 unzip-all?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install unzip-all」即可一键安装,无需额外配置。
unzip-all 是免费的吗?
是的,unzip-all 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
unzip-all 支持哪些平台?
unzip-all 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 unzip-all?
由 tang-dafa(@tang-dafa)开发并维护,当前版本 v1.0.0。
推荐 Skills