clean-csv

clean-csv is a skill for Claude Code, Codex from sigilagent/sigil. It costs 31 tokens per session (507 once invoked), scanned A, original, MIT.

A CSV-cleaning procedure for turning messy spreadsheet exports into a consistent file. CSV is a plain-text table format used to exchange data.

In plain words
What is it for?
Use it to rename headers in snake_case, remove rows with no values, save the result as cleaned.csv, and verify the output.
Why use it?
It removes unclear column names and completely blank rows, which can make data harder to read or process reliably.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sigilagent/sigil/csv-clean
Any agent
npx skills add sigilagent/sigil --skill csv-clean
Clone the repo
git clone --depth 1 https://github.com/sigilagent/sigil

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clean-csv

README.md
[![agentmods](https://agentmods.dev/badge/skills/sigilagent/sigil/csv-clean.svg)](https://agentmods.dev/skills/sigilagent/sigil/csv-clean)
Your own site
<a href="https://agentmods.dev/skills/sigilagent/sigil/csv-clean"><img src="https://agentmods.dev/badge/skills/sigilagent/sigil/csv-clean.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 507 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.00507
Opus 5 $0.00015 $0.00253
Sonnet 5 $0.00006 $0.00101
Haiku 4.5 $0.00003 $0.00051

Measured 3d ago against content hash 5a6e3950ea0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

clean-csv scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/csv-clean/SKILL.md · 50 lines

What it actually says

Clean a messy CSV

Normalize a messy CSV export into a clean one: readable snake_case headers, no blank rows, written to disk and verified. A realistic skill — one genuine judgment call, ordered mechanical steps, a required output file, and a verification gate.

Steps

  1. Read the input CSV file named in the task.

  2. Rename every column header to a clean, readable snake_case identifier. Real exports carry units, punctuation, vendor prefixes and parenthetical qualifiers that a literal character substitution mangles — decide what each column actually means and name it that. For example:

    messy header good name a literal transform gives
    Cust. E-mail (primary) customer_email cust__e_mail__primary_
    Total Spend ($) total_spend total_spend____
    Signup Date (UTC) signup_date signup_date__utc_
    First Name first_name first__name
  3. Drop any row where every field is empty.

  4. Write the cleaned rows to cleaned.csv in the working directory, header row first.

  5. Verify the result before reporting success.

Rules

  • Every output header MUST be lowercase snake_case: letters, digits and single underscores only. No leading, trailing or doubled underscores.
  • You MUST produce exactly one name per input column, in the original order. Do not drop, add, merge or reorder columns.
  • Header names MUST be unique.
  • The cleaned data MUST be written to cleaned.csv — do not just print it.

Verification

  • Re-read cleaned.csv and confirm it parses as valid CSV with a header row.
  • Confirm every header matches ^[a-z][a-z0-9]*(_[a-z0-9]+)*$.
  • Confirm the output column count equals the input column count.
  • Confirm the output row count equals the input row count minus the fully-empty rows that were removed.
  • If verification fails, fix the output and check again before reporting done.
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 50 lines · 31 tokens per session scan A 5a6e3950ea0f

Subscribe to this mod's changes

clean-csv is a skill published in the GitHub repository sigilagent/sigil (11 stars, last pushed 13d ago), licensed MIT. It adds 31 tokens to every session and 507 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

xlsx-author

Produce a .xlsx file on disk (headless) instead of driving a live Excel workbook — for managed-agent sessions with no open Office app.

anthropics/financial-services · 32 tokens

audit-xls

Audit a spreadsheet for formula accuracy, errors, and common mistakes. Scopes to a selected range, a single sheet, or the entire model (including financial-model integrity checks like BS balance, cash tie-out, and logic sanity). Triggers on "audit this sheet", "check my formulas", "find formula errors", "QA this…

anthropics/financial-services · 104 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

Workspace Data Analyst

Analyze CSV files in the workspace and summarize insights.

VoltAgent/voltagent · 14 tokens

automation-sandbox-post-copy-config-generate

Generate the JSON config file that the Salesforce sandbox post-copy automation tool consumes, from a customer SOP in any format (PDF, xlsx, csv, JSON, docx, Markdown, plain text, or a screenshot of an endpoint table). Use when the user asks to create, build, generate, produce, or convert a post-copy or post-refresh…

forcedotcom/sf-skills · 221 tokens

excel-mcp

Excel MCP Server skill for Windows workbook automation. Use when an assistant needs rich MCP tools to create, inspect, modify, format, or analyze Excel files. Supports Power Query (M), Data Model/DAX, PivotTables, Tables, Ranges, Charts, Slicers, formatting, screenshots, VBA macros, connections, and calculation mode.…

sbroenne/mcp-server-excel · 106 tokens