csv-workbench

Analyze CSV files in /mnt/data and return concise numeric summaries.

Install
npx skills add 'https://github.com/openai/openai-agents-python/tree/main/examples/tools/skills/csv-workbench'
Download bundle ↓
main · 1d17ca4Scanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

playbook.md

playbook.mdBrowse 2 files
View on GitHub
← Back to SKILL.md

CSV Playbook

Quick checks

  • Preview rows: head -n 10 /mnt/data/your-file.csv.
  • Count rows:
python - <<'PY'
import csv

with open('/mnt/data/your-file.csv', newline='') as f:
    print(sum(1 for _ in csv.DictReader(f)))
PY

Grouped totals template

python - <<'PY'
import csv
from collections import defaultdict

totals = defaultdict(float)
with open('/mnt/data/your-file.csv', newline='') as f:
    for row in csv.DictReader(f):
        totals[row['region']] += float(row['amount'])

for region in sorted(totals):
    print(region, round(totals[region], 2))
PY