file-compress

Create and extract ZIP and tar.gz archives. Use this skill when the user asks to zip files, unzip an archive, compress a folder, extract a tar.gz, create an archive, or list archive contents.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "file-compress" with this command: npx skills add dalehurley/phpbot/dalehurley-phpbot-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

FormatExtensionsNotes
ZIP.zipMost common, cross-platform
Gzipped Tar.tar.gz, .tgzUnix standard, preserves permissions

Input Parameters

ParameterRequiredDescriptionExample
actionYescreate, extract, or listcreate
archive_pathYesPath to the archive file./backup.zip
filesFor createFiles/directories to includefile1.txt dir/
target_dirFor extractDirectory to extract to (default: current)./output/
formatFor createzip (default) or tar.gzzip

Procedure

  1. Determine the action from the user's request

  2. 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
    
  3. Report the result to the user

Bundled Scripts

ScriptTypeDescription
scripts/archive.pyPythonCreate, 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

desktop-control

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

summarize-unread-emails

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

csv-tools

No summary provided by upstream source.

Repository SourceNeeds Review