ingest_archive_zip_preview

Scan ZIP archives recursively and preview text file contents.

541|171|Updated May 3, 2018
One-click install
npx skills add https://github.com/cas-bigdatalab/piflow --skill ingest-archive-zip-preview
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ingest_archive_zip_preview
Source: https://github.com/cas-bigdatalab/piflow/tree/main/workspace/skills/ingest_archive_zip_preview
Command: npx skills add https://github.com/cas-bigdatalab/piflow --skill ingest-archive-zip-preview

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The ingest_archive_zip_preview skill simplifies the task of examining ZIP archives to determine whether their contents should be extracted for further processing.

Core Features & Use Cases

  • Recursive Directory Scanning: Scans directory structures for .zip files recursively.
  • File List and Preview: Lists all files within the zip archive and optionally previews the contents of text files.
  • Use Case: Ideal for pre-inspecting the contents of a zip archive to decide if its contents should be extracted, saving time on unnecessary extractions.

Quick Start

To generate a preview of a zip file at a specified path and output it to a report, run: python scripts/run_ingest_archive_zip_preview.py --input_dir <path_to_zip> --output <report_path>

Frequently Asked Questions about ingest_archive_zip_preview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preview zip archive contents without extracting files?

To preview zip archive contents without extracting, use a directory scanning script to list internal files and generate text previews. This automates preliminary file checks, eliminating the need for manual examination before deciding to extract.

What is the best way to automate zip file pre-inspection for directory scanning?

Automating zip file pre-inspection involves recursively scanning directories for .zip files and outputting a report of file listings. This approach optimizes extraction workflows by identifying unnecessary archives before processing.

Can I scan a directory recursively for zip archives and list their internal files?

Yes, you can recursively scan directories for zip archives and list their internal files. The script outputs file listings and optional text previews to a report, enabling automated preliminary checks of archive contents.

Does the zip archive preview script support text file content inspection?

Yes, the zip archive preview script supports text file content inspection. It optionally previews the contents of text files within the archive, allowing you to determine if full extraction is necessary.

How do I optimize extraction workflows by checking zip file contents first?

Optimize extraction workflows by scanning zip files to preview directory structures and file listings first. Generating a content report helps avoid unnecessary extractions and saves time on manual archive examination.