Skill-Lab clean

Use when you need to convert a CSV file to JSON format.

install
source · Clone the upstream repo
git clone https://github.com/8ddieHu0314/Skill-Lab
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/8ddieHu0314/Skill-Lab "$T" && mkdir -p ~/.claude/skills && cp -r "$T/tests/fixtures/skills/security/clean" ~/.claude/skills/8ddiehu0314-skill-lab-clean && rm -rf "$T"
manifest: tests/fixtures/skills/security/clean/SKILL.md
source content

CSV to JSON Converter

Read the input CSV file and convert it to a JSON array of objects.

import csv, json, sys

with open(sys.argv[1]) as f:
    rows = list(csv.DictReader(f))

print(json.dumps(rows, indent=2))

Pass the path to your CSV as the first argument. Each row becomes a JSON object with the header row as keys. Output goes to stdout so you can pipe or redirect it.