parallel-file-processor-example-1-process-csv-files
Sub-skill of parallel-file-processor: Example 1: Process CSV Files (+3).
Best use case
parallel-file-processor-example-1-process-csv-files is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of parallel-file-processor: Example 1: Process CSV Files (+3).
Teams using parallel-file-processor-example-1-process-csv-files should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/example-1-process-csv-files/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How parallel-file-processor-example-1-process-csv-files Compares
| Feature / Agent | parallel-file-processor-example-1-process-csv-files | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of parallel-file-processor: Example 1: Process CSV Files (+3).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Example 1: Process CSV Files (+3)
## Example 1: Process CSV Files
```python
from parallel_file_processor import (
FileScanner, FileProcessor, ProcessingMode,
ProgressTracker, ResultAggregator
)
from pathlib import Path
import pandas as pd
# Define processing function
def process_csv(file_info):
"""Extract statistics from CSV file."""
df = pd.read_csv(file_info.path)
return {
'rows': len(df),
'columns': len(df.columns),
'memory_mb': df.memory_usage(deep=True).sum() / 1e6,
'numeric_columns': len(df.select_dtypes(include='number').columns)
}
# Setup scanner and processor
scanner = FileScanner(extensions={'.csv'})
processor = FileProcessor(
scanner=scanner,
mode=ProcessingMode.THREAD_POOL,
max_workers=8
)
# Create progress tracker
tracker = ProgressTracker(0, "Processing CSVs")
tracker.start()
# Process with progress
result = processor.process_directory(
Path("data/raw/"),
process_csv,
progress_callback=tracker.update
)
tracker.finish()
# Aggregate results
aggregator = ResultAggregator(result)
print(f"\nSummary: {aggregator.summary()}")
aggregator.export_csv(Path("data/results/csv_stats.csv"))
```
## Example 2: Parallel ZIP Extraction
```python
# Extract all ZIPs in parallel
processor = FileProcessor(mode=ProcessingMode.THREAD_POOL)
result = processor.extract_all_zips(
directory=Path("data/archives/"),
output_directory=Path("data/extracted/")
)
print(f"Extracted {result.successful} ZIP files")
print(f"Failed: {result.failed}")
# Get extraction details
aggregator = ResultAggregator(result)
df = aggregator.to_dataframe()
total_files = df['result_files_extracted'].sum()
print(f"Total files extracted: {total_files}")
```
## Example 3: Aggregate Data from Multiple Sources
```python
# Aggregate CSV files with custom processing
def load_and_clean(file_info):
"""Load CSV and perform basic cleaning."""
df = pd.read_csv(file_info.path)
# Clean column names
df.columns = [c.lower().strip().replace(' ', '_') for c in df.columns]
# Add metadata
df['_source'] = file_info.path.name
df['_loaded_at'] = pd.Timestamp.now()
return df
processor = FileProcessor(
scanner=FileScanner(extensions={'.csv'}),
mode=ProcessingMode.THREAD_POOL
)
result = processor.process_directory(
Path("data/monthly_reports/"),
load_and_clean
)
# Combine all DataFrames
aggregator = ResultAggregator(result)
combined_df = aggregator.combine_dataframes()
print(f"Combined {len(combined_df)} rows from {result.successful} files")
combined_df.to_csv("data/combined_reports.csv", index=False)
```
## Example 4: Custom Batch Processing
```python
from parallel_file_processor import ParallelProcessor, ProcessingMode
# Process list of items (not files)
items = list(range(1000))
def heavy_computation(item):
"""CPU-intensive calculation."""
import math
result = sum(math.sin(i * item) for i in range(10000))
return {'item': item, 'result': result}
# Use process pool for CPU-bound work
processor = ParallelProcessor(
processor=heavy_computation,
mode=ProcessingMode.PROCESS_POOL,
max_workers=4
)
# Track progress
def show_progress(completed, total):
pct = (completed / total) * 100
print(f"\rProgress: {pct:.1f}%", end='', flush=True)
processor.on_progress(show_progress)
result = processor.process(items)
print(f"\nCompleted {result.successful}/{result.total_files} items")
```Related Skills
wave-based-parallel-plan-execution
Orchestrate phase execution by discovering dependencies, grouping into waves, spawning subagents, and collecting results with optional wave filtering
parallel-array-alignment-pattern
Maintain index synchronization between parallel arrays when adding new entries to preserve label-path mappings
multi-file-tax-reconciliation-workflow
Systematic parallel review and reconciliation of multi-document tax filings with cross-reference validation
multi-file-tax-prep-orchestration
Structured approach to complex multi-file tax return preparation with traceability and planning
git-large-file-staging-conflict-recovery
Recover from pre-commit hook blocks on oversized files and corrupted rebase states during bulk repo syncs
freetaxusa-eefile-navigation-pattern
Handling session timeouts and navigating FreeTaxUSA's multi-step e-filing flow to the signature page
interactive-Codex-to-file-based-fallback
Switch from tmux/interactive Codex to file-based Codex -p execution when interactive runs fail with upstream errors or analysis-only stalls, then verify landing from git/GitHub state.
preserved-plan-refile-with-attested-review-wave
Reopen a previously closed GitHub issue with a preserved local plan, rewrite it into a conservative draft, and drive iterative attested adversarial review waves until it is truly approval-ready.
parallel-llm-wiki-gap-to-issues
Use parallel subagents to mine remaining LLM-wiki/document-intelligence gaps, de-duplicate against existing GitHub issues, then create only the strongest bounded follow-on issues.
large-parallel-planning-wave-environment-failure-handoff
Handle large pre-plan-review planning waves that succeed analytically but fail to persist artifacts due to quota exhaustion, sandbox write failures, or cancelled GitHub mutations.
parallel-approved-issue-worktrees
Launch approved GitHub issue implementation in parallel using isolated git worktrees, committed execution-pack prompts, local plan-approved markers, and direct background Codex runs when delegate_task workers are unreliable for real repo writes.
overnight-parallel-agent-prompts
Design self-contained prompts for 3-5 terminals to run overnight without supervision. Ensures zero git contention, provider-optimal allocation, and a clear morning deliverable summary.