clean-csv SKILL.md skillA

clean-csv from sigilagent/sigil is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add sigilagent/sigil/clean-csv@git:20260726.9d44567

Pins git:20260726.9d44567 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
sigilagent/sigil
Path
examples/csv-clean/SKILL.md
Versions recorded
1
Latest version
git:20260726.9d44567, committed Jul 26, 2026
Size
2,105 bytes
Repository stars
19
License
MIT

Use when a messy CSV file needs its headers normalized to clean snake_case names and blank rows removed, saved to a verified output file.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file 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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sigilagent/sigil/clean-csv@sha256:5a6e3950ea0fcf33

The line at the top of this page pins the label git:20260726.9d44567, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_dkepjdrvtazgcq6m.svg)](https://markdownregistry.com/a/art_dkepjdrvtazgcq6m)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Jul 26, 2026.

versioncommittedcommitsizeaudit
git:20260726.9d44567 latest2026-07-26 9d44567 2,105 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2105 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

sigilagent/sigil · 19 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_dkepjdrvtazgcq6m
GET https://markdownregistry.com/api/v1/resolve?ref=sigilagent/sigil/clean-csv
GET https://markdownregistry.com/api/v1/blob/5a6e3950ea0fcf337ee406b6de174789e685143eb1883636706289e26d03e9c1

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from sigilagent/sigil

writing-plans SKILL.md skill
sigilagent/sigil · examples/writing-plans/SKILL.md
git:20260724.0564d2d · audit C · 19 stars
writing-agir SKILL.md skill
sigilagent/sigil · src/contracts/writing-agir/SKILL.md · Use when authoring an AG-IR — the typed intermediate representation Sigil lowers into a runnable agent — from a…
git:20261031.c9b5569 · audit A · 19 stars

Every file in sigilagent/sigil

Browse by kind, by grade A, or by owner.