Index of every page on this site: llms.txt
All skills
chronoaiproject avatar

/csv-processor

@88f2d78
Run it yourself

Read a CSV file from disk, compute per-column min/mean/max for every numeric column, emit the result as JSON. Stdlib-only Python; no pandas, no numpy. Demonstrates the simplest possible "give me a file path, get back structured analysis" skill — a deliberate baseline for any skill that processes tabular data locally without an LLM in the loop.

  • 4 files
  • 4.9 KB
  • MIT
  • Updated 6 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/chronoaiproject/ornn/csv-processor

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈91 tokens for metadata: the name and description. ≈336 when used: this file. ≈142 more on demand in 2 files.

Description uses 4.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈361 characters, or 4.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

csv-processor

A deterministic, network-free skill — the easiest case. Useful as a control when debugging the agent ↔ skill plumbing: if this fails, the failure is in the runner, not the skill.

Contract

Input (single CLI argument):

python src/main.py /path/to/data.csv

The script reads argv[1] as a filesystem path. CSV must have a header row.

Output (stdout, JSON):

{
  "rowCount": 1234,
  "columns": {
    "price": { "min": 1.23, "mean": 42.0, "max": 999.99, "count": 1234 },
    "quantity": { "min": 0, "mean": 7.5, "max": 100, "count": 1230 }
  }
}

Only numeric columns appear under columns. count is the number of cells that parsed successfully (numeric); non-numeric / blank cells are skipped.

Errors — written to stderr as {"error": "..."} and exit code 1.

Run locally

cd examples/csv-processor
python src/main.py sample.csv

A sample.csv is bundled so the example runs out of the box.

Adapt this

  • Different aggregations — add median, p95, stddev; same shape, more keys per column.
  • Streaming — for huge files, replace the in-memory accumulation with a running-mean update; one extra variable per column, same output shape.
  • Source other than disk — accept a URL or stdin instead of argv[1]. The aggregation core doesn't care.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 88f2d78. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated 6 months ago
version
1.0
Other metadata
metadata
{
  "category": "data",
  "tag": [
    "example",
    "csv",
    "statistics",
    "python"
  ]
}

README badge

README badge for chronoaiproject/ornn/csv-processor