Install
openclaw skills install archive-toolExtract, create, and list archive files (zip, tar, gz natively; rar, 7z with system tools) using batch or single operations with optional passwords.
openclaw skills install archive-toolExtract and create archive files (zip, rar, 7z, tar, gz).
This skill triggers when user wants to extract, create, or list archive files.
| Step | Action | Why |
|---|---|---|
| 1 | DETECT | Identify archive format (zip/tar/gz/rar/7z) |
| 2 | CHECK | Verify tools available for format |
| 3 | EXECUTE | Extract, create, or list |
| 4 | VERIFY | Confirm success, report errors |
# Optional (for rar/7z support)
brew install unar p7zip
├── Extract archive
│ └── Use: archive.py extract file.zip -o ./output
│
├── Create archive
│ └── Use: archive.py create output.zip ./folder
│
├── View contents
│ └── Use: archive.py list file.zip
│
└── Batch extract
└── Use: archive.py extract "*.zip"
| Feature | Description |
|---|---|
| Extract | zip, tar, tar.gz, tgz, gz, rar, 7z |
| Create | zip, tar, tar.gz |
| List | View archive contents |
| Batch | Extract multiple files |
python archive.py extract <file> [-o OUTPUT] [--password PASS]
# Extract to current folder
python archive.py extract archive.zip
# Extract to specific folder
python archive.py extract archive.zip -o ./extracted
# Extract with password
python archive.py extract archive.rar --password secret
# Extract to current directory
python archive.py extract archive.7z -o ./
# Batch extract all zip files
python archive.py extract "*.zip"
python archive.py create <output> <source> [--compression LEVEL]
# Create zip from folder
python archive.py create myfiles.zip ./myfolder
# Create tar from folder
python archive.py create backup.tar ./folder
# Create tar.gz
python archive.py create backup.tar.gz ./folder
python archive.py list <file>
# List contents
python archive.py list archive.zip
# View without extracting
python archive.py list backup.tar.gz
| Format | Extract | Create | Notes |
|---|---|---|---|
| zip | ✅ | ✅ | Python stdlib |
| tar | ✅ | ✅ | Python stdlib |
| tar.gz / tgz | ✅ | ✅ | Python stdlib |
| gz | ✅ | ❌ | Python stdlib |
| rar | ⚠️ | ❌ | Requires unar |
| 7z | ⚠️ | ❌ | Requires p7zip |
⚠️ = requires system tools
| Flag | Description | Default |
|---|---|---|
-o, --output | Output directory | current dir |
--password | Archive password | none |
--compression | 0-9 (zip only) | 6 |
python3 instead of python--password flagbrew install unar p7zip| Task | Command |
|---|---|
| Extract zip | python archive.py extract file.zip |
| Extract to folder | python archive.py extract file.zip -o ./out |
| Extract rar | python archive.py extract file.rar |
| Create zip | python archive.py create out.zip ./folder |
| Create tar.gz | python archive.py create out.tar.gz ./folder |
| List contents | python archive.py list file.zip |