Skip to content
Back to skills

Archive Tool

ASecurity

"Extract and create archive files (zip, rar, 7z, tar, gz). Use

  • 21 stars
  • 0 votes
  • 9 copies
  • 48 views
  • Added September 7, 2026
toolspythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill archive-tool --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Archive Tool?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Archive Tool
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-archive-tool/badge)](https://www.skillsdirectory.com/skills/modbender-archive-tool)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: archive-tool
description: "Extract and create archive files (zip, rar, 7z, tar, gz). Use
  when: (1) Extracting zip/rar/7z files, (2) Creating zip archives, (3) Viewing
  archive contents, (4) Batch extracting files."
---


# Archive Skill

Extract and create archive files. Uses Python stdlib for zip/tar/gz, falls back to system tools for rar/7z.

## Install

```bash
# Optional (for rar/7z support)
brew install unar p7zip
```

## Features

- ✅ Extract: zip, tar, tar.gz, tgz, gz
- ⚠️ Extract: rar, 7z (if tools installed)
- ✅ Create: zip, tar, tar.gz
- ✅ List: View archive contents

## Usage

### Extract

```bash
python archive.py extract file.zip
python archive.py extract file.zip -o ./output
python archive.py extract file.rar --password secret
python archive.py extract "*.zip"  # Batch
```

### Create

```bash
python archive.py create output.zip ./folder
python archive.py create output.tar ./folder
python archive.py create output.tar.gz ./folder
```

### List

```bash
python archive.py list file.zip
```

## Examples

```bash
# Extract to current folder
python archive.py extract archive.zip

# Extract to specific folder
python archive.py extract archive.zip -o ./extracted

# Create zip from folder
python archive.py create myfiles.zip ./myfolder

# List contents
python archive.py list archive.zip
```

## Supported Formats

| Format | Extract | Create | Stdlib |
|--------|---------|--------|--------|
| zip | ✅ | ✅ | ✅ |
| tar | ✅ | ✅ | ✅ |
| tar.gz / tgz | ✅ | ✅ | ✅ |
| gz | ✅ | ❌ | ✅ |
| rar | ⚠️ | ❌ | - |
| 7z | ⚠️ | ❌ | - |

⚠️ = requires system tools (unar, p7zip)

Files in this skill

  • SKILL.md1.7 KB
  • scripts/archive.py7.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.