/install archive-extractor
Archive Extractor
Extracts archives recursively using scripts/extract.py.
Zero local-software dependency — works on any machine with Python 3.8+.
.rar and .7z formats use pure-Python libraries (rarfile, py7zr) that are
auto-installed on first use via pip. No 7-Zip, WinRAR, or unrar binary needed.
How to run
python scripts/extract.py \x3CPATH> [OPTIONS]
Always use the absolute path to the script when calling from a different working directory:
# Windows
python "C:\Users\\x3Cuser>\.workbuddy\skills\archive-extractor\scripts\extract.py" "\x3CPATH>"
# Linux / macOS
python ~/.workbuddy/skills/archive-extractor/scripts/extract.py "\x3CPATH>"
Options
| Flag | Description |
|---|---|
-f / --force |
Re-extract even if a .extracted_success marker already exists |
-d DIR / --dest DIR |
Write all output under a custom root directory |
Supported formats
| Format | Backend |
|---|---|
.zip |
Python stdlib zipfile |
.tar .tar.gz .tar.bz2 .tar.xz .tgz .tbz2 |
Python stdlib tarfile |
.gz .bz2 .xz (single-file) |
Python stdlib gzip / bz2 / lzma |
.rar |
rarfile (pure-Python, auto-installed) |
.7z |
py7zr (pure-Python, auto-installed) |
Key behaviours
- Idempotent: skips archives that already have a
.extracted_successmarker; use-fto override. - Recursive: after extracting an archive, immediately scans the output for nested archives (up to 20 levels deep).
- Auto-deps:
rarfileandpy7zrare installed automatically via pip on first use — no manual setup needed. - Fault-tolerant: corrupted or unsupported archives are logged as
[FAIL]and skipped; remaining archives continue.
Examples
# Extract everything in a directory (including sub-archives)
python extract.py "D:\jira\TICKET-123"
# Force clean re-extraction of a single file
python extract.py report.zip -f
# Extract to a separate output folder
python extract.py "D:\jira\TICKET-123" -d "D:\extracted"
# Glob pattern — extract all zips in current directory
python extract.py "*.zip"
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install archive-extractor - 安装完成后,直接呼叫该 Skill 的名称或使用
/archive-extractor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
archive-extractor 是什么?
Recursively extract archive files from a file or directory. Supports zip, tar, tar.gz, tar.bz2, tar.xz, tgz, rar, 7z, gz, bz2, xz. Works on Windows, Linux, m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 387 次。
如何安装 archive-extractor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install archive-extractor」即可一键安装,无需额外配置。
archive-extractor 是免费的吗?
是的,archive-extractor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
archive-extractor 支持哪些平台?
archive-extractor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 archive-extractor?
由 leon388(@qiliangzhao20241028)开发并维护,当前版本 v1.1.0。