← Back to Skills Marketplace
tang-dafa

unzip-all

by tang-dafa · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
142
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install unzip-all
Description
递归解压所有嵌套的压缩包(zip/7z/rar),支持中文文件名。用于解压包含多层嵌套压缩包的文件夹。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install unzip-all
  3. After installation, invoke the skill by name or use /unzip-all
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
初始版本:递归解压所有嵌套压缩包,支持中文文件名
Metadata
Slug unzip-all
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is unzip-all?

递归解压所有嵌套的压缩包(zip/7z/rar),支持中文文件名。用于解压包含多层嵌套压缩包的文件夹。 It is an AI Agent Skill for Claude Code / OpenClaw, with 142 downloads so far.

How do I install unzip-all?

Run "/install unzip-all" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is unzip-all free?

Yes, unzip-all is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does unzip-all support?

unzip-all is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created unzip-all?

It is built and maintained by tang-dafa (@tang-dafa); the current version is v1.0.0.

💬 Comments