csv-processor
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Parses, transforms, validates, and exports CSV files. Use when reading, cleaning, filtering, merging, or converting CSV data.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nek1987/auto-agent-harnesstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- nek1987/auto-agent-harness★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 64
No unexpected nulls in key fields.
- Distinctive: line 70
Prefer Parquet for large/intermediate data (much faster, smaller, typed).
- Very specific: line 83
Embedded delimiters or quotes: Use the csv module's dialect or pandas with proper quoting.
- Distinctive: line 84
Huge files on low memory: Always offer the chunked path.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Handles real-world CSV processing tasks reliably: encoding detection, delimiter sniffing, header normalization, row filtering and column selection, merging multiple CSVs, chunked processing for large files, validation against schemas, and export to CSV, JSON, Parquet, or Excel with proper quoting and escaping.
When to Use This Skill
- Ingesting or cleaning data delivered as CSV exports.
- Combining data from multiple CSV sources.
- Converting CSV to other formats for downstream systems.
- The user provides CSV files or describes CSV processing needs.
Prerequisites
- Python with
pandas(recommended for most work) or standardcsvmodule for very simple cases. - The CSV file(s) or a description of their structure.
- For large files: enough memory or a chunked strategy.
Steps
- Inspect the CSV:
- Open with a text editor or
head -c 1000. - Determine encoding (use
chardetorcharset_normalizer). - Sniff delimiter (
,,;,\t).
- Open with a text editor or
- Read safely:
pd.read_csv(..., encoding=..., sep=..., engine='c' or 'python').dtype=strinitially to avoid type inference surprises, then cast.on_bad_lines='skip'or custom error handler for malformed rows.
- Header & column normalization:
- Lowercase, strip, replace spaces with underscores.
- Handle duplicate column names.
- Rename using a mapping if the source headers are bad.
- Filtering & selection:
- Boolean indexing for rows.
- Column list or regex for selection.
- Drop or keep based on business rules.
- Merging multiple CSVs:
pd.concatwithignore_index=True.- Or
pd.mergeon keys for relational join. - Handle schema differences between files.
- Chunked processing (for >1GB or memory-constrained):
pd.read_csv(..., chunksize=100_000).- Process each chunk, write to Parquet or append to output.
- Aggregate as you go when possible.
- Validation:
- Required columns present.
- No unexpected nulls in key fields.
- Value ranges or allowed sets.
- Row count within expected bounds.
- Export:
to_csv(index=False, quoting=csv.QUOTE_MINIMAL).- Prefer Parquet for large/intermediate data (much faster, smaller, typed).
- Excel with
openpyxlfor business users (with formatting).
- Output:
- Reusable
process_csv(input_path, output_path)function or notebook cells. - Handling for common real-world messiness (quotes, newlines in fields, BOM).
- Reusable
Examples
A robust script that reads a messy sales CSV (mixed encodings, bad headers, embedded newlines), cleans it, merges with a second "customers" CSV, validates, and exports to Parquet + a summary Excel report is included.
Edge Cases & Error Handling
- Embedded delimiters or quotes: Use the
csvmodule's dialect or pandas with proper quoting. - Huge files on low memory: Always offer the chunked path.
- Date formats: Multiple formats in one column — use
dateutil.parserorpd.to_datetimewithformatinference.
Verification
- The script runs without crashing on the provided (messy) file.
- Output file has the expected columns, dtypes, and row count.
- Manual spot checks in the output match expectations.
- Re-running on the same input produces bit-identical output (when deterministic).
- Success: The CSV is turned into clean, usable data with a clear audit trail of transformations.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

