managing-imports

Organize incoming import files and track status through the file staging workflow.

4|1|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/AJBcoding/claude-skill-eval --skill managing-imports
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-imports
Source: https://github.com/AJBcoding/claude-skill-eval/tree/main/.claude/skills/managing-imports
Command: npx skills add https://github.com/AJBcoding/claude-skill-eval --skill managing-imports

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires psycopg2, python-dotenv, and includes scripts (resource) components.

What problem does it solve?

Manually managing incoming data files, checking for duplicates, and tracking their import status is prone to errors and consumes valuable time. This skill automates the entire file staging workflow, ensuring data integrity and efficiency.

Core Features & Use Cases

  • Automated File Staging: Organizes incoming files by type and academic term, moving them to appropriate staged directories for processing.
  • Duplicate Detection: Prevents re-importing data by checking file hashes against a manifest in a PostgreSQL database, maintaining data cleanliness.
  • Import Status Tracking: Provides a clear, real-time overview of files in various workflow stages (inbox, staged, processing, archived).
  • Processed File Archiving: Safely moves successfully imported files to an organized archive structure, keeping your active directories clean.
  • Use Case: When new data files arrive daily, use this skill to automatically sort them, identify any already processed, and keep a real-time status of your import queue. This ensures data integrity, saves manual oversight, and reduces complexity in your data pipeline.

Quick Start

Stage all new files from the inbox and check for duplicates.

Frequently Asked Questions about managing-imports

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

FAQPage Schema
How do I automate file staging and duplicate detection for data imports?

File staging automation organizes incoming files by type and term, then checks file hashes against a PostgreSQL database to prevent duplicate imports. This skill handles the complete workflow from inbox classification through archiving, using SHA256 hashing and the file_staging orchestrator to track status and maintain data integrity.

What's the best way to prevent re-importing duplicate files in a data pipeline?

Duplicate detection compares incoming file hashes against an import_manifest stored in PostgreSQL, blocking already-processed files before they enter the pipeline. This approach eliminates manual verification and ensures each import runs only once.

Can I track import status across inbox, staged, and archive directories in real time?

Import status tracking provides a clear overview of files at each workflow stage—inbox, staged, processing, and archived. The skill generates real-time reports showing queue depth and processing state, reducing manual oversight in your data pipeline.

Do I need PostgreSQL and psycopg2 to use file staging automation?

Yes, PostgreSQL stores the import_manifest for duplicate detection, and psycopg2 connects Python to the database. You also need local inbox, staged, and archive directories and python-dotenv for environment configuration.

How does term detection work in the file staging workflow?

Term detection classifies incoming files by academic term during staging, organizing them into appropriately named directories. This enables term-based sorting and archive structure, supporting multi-term data pipelines without manual categorization.

What happens to files after they're successfully imported?

Processed files are automatically archived to an organized structure keyed by term, removing them from active staging directories. This keeps your inbox and staged paths clean while preserving a complete audit trail for historical reference.