file-compress
Skill: file-compress
When to Use
Use this skill when the user asks to:
- Zip or compress files/folders
- Unzip or extract an archive
- Create a ZIP or tar.gz archive
- List contents of an archive
- Compress files for sharing or backup
Supported Formats
| Format | Extensions | Notes |
|---|---|---|
| ZIP | .zip |
Most common, cross-platform |
| Gzipped Tar | .tar.gz, .tgz |
Unix standard, preserves permissions |
Input Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
action |
Yes | create, extract, or list |
create |
archive_path |
Yes | Path to the archive file | ./backup.zip |
files |
For create | Files/directories to include | file1.txt dir/ |
target_dir |
For extract | Directory to extract to (default: current) | ./output/ |
format |
For create | zip (default) or tar.gz |
zip |
Procedure
-
Determine the action from the user's request
-
Run the bundled script:
# Create a ZIP archive python3 skills/file-compress/scripts/archive.py create backup.zip file1.txt file2.txt mydir/ # Create a tar.gz archive python3 skills/file-compress/scripts/archive.py create backup.tar.gz --format tar.gz file1.txt mydir/ # Extract an archive python3 skills/file-compress/scripts/archive.py extract backup.zip --target ./output/ # List archive contents python3 skills/file-compress/scripts/archive.py list backup.zip -
Report the result to the user
Bundled Scripts
| Script | Type | Description |
|---|---|---|
scripts/archive.py |
Python | Create, extract, and list ZIP/tar.gz archives |
Script Usage
# Create ZIP from files and directories
python3 scripts/archive.py create output.zip file1.txt file2.txt mydir/
# Create tar.gz
python3 scripts/archive.py create output.tar.gz --format tar.gz src/ README.md
# Extract to current directory
python3 scripts/archive.py extract archive.zip
# Extract to specific directory
python3 scripts/archive.py extract archive.tar.gz --target /tmp/extracted/
# List contents
python3 scripts/archive.py list archive.zip
Example
zip up the src/ folder
create a tar.gz of these files
extract backup.zip to my desktop
what's inside archive.tar.gz
compress the project folder into a zip
unzip downloaded-file.zip
More from dalehurley/phpbot
desktop-control
Control the mouse, keyboard, and read screen content via accessibility. Use this skill when the user asks to click somewhere on screen, type text into an app, move the mouse, press keyboard shortcuts, read what's on screen, get the accessibility tree of the current window, automate desktop interactions, or control the computer.
39summarize-unread-emails
Retrieve and summarize all unread emails from your inbox, organized by category, sender, and date. Use this skill when the user asks to summarize unread emails, get an overview of unread messages, organize inbox emails, or review pending email communications. Provides a structured summary with categorization and timeline analysis.
20open-application
Open or launch applications on your computer by name. Use this skill when the user asks to open, launch, or start an application like Mail, Finder, Safari, Chrome, or any other installed macOS application. Works with both built-in and third-party applications.
10homebrew
Install, manage, and search for software packages on macOS using Homebrew. Use this skill when the user asks to install software, apps, CLI tools, developer utilities, programming languages, databases, or any package on a Mac. Supports formulae (CLI tools) and casks (GUI apps). Can also search, update, upgrade, uninstall, and diagnose Homebrew issues.
10csv-tools
Parse, query, filter, sort, transform, and summarize CSV and JSON data files. Use this skill when the user asks to view a CSV, filter data, get statistics from a data file, convert CSV to JSON or vice versa, sort data, or analyze tabular data.
9get-weather-forecast
Retrieve current weather conditions and multi-day forecasts for any location using the wttr.in API. Use this skill when the user asks for weather information, weather forecast, current conditions, temperature, or weather updates for a specific city or location. Provides detailed weather data including temperature, wind, precipitation, and visibility.
8