Archive Management
Create, extract, or inspect archive files including tarballs, zip files, and compressed archives for backup or file bundling.
What it does
Create, extract, or inspect archive files including tarballs, zip files, and compressed archives for backup or file bundling.
Procedure
When this skill is activated, Chalie follows these steps:
- Use
memoryto recall any prior archiving preferences or commonly used paths. - Ask the user what they need: create an archive, extract an existing one, or list the contents of an archive without extracting.
- For creating an archive: ask for the source path and desired archive name, then use
bashwith action execute to run the appropriate command —tar -czf <name>.tar.gz <path>for tarballs orzip -r <name>.zip <path>for zip files. - For extracting an archive: ask for the archive path and destination, then use
bashwith action execute to runtar -xzf <archive> -C <dest>orunzip <archive> -d <dest>depending on the format. - For listing contents: use
bashwith action read to runtar -tzf <archive> | head -50orunzip -l <archive> | head -50to show the file listing without extracting. - Use
bashwith action read to runls -lh <archive>to report the final archive size. - Present the result: archive path, size, and number of files included or extracted.
Version
v1 (curated)