SKILL.md
File: skill-with-scripts/SKILL.md. Copy it with the button on the code block, or download it as part of the skill-with-scripts template: skill-with-scripts.zip.
---name: skill-with-scriptsdescription: >- TODO Third-person summary, e.g. "Validates and normalises CSV exports before import into the billing system." Use when the user works with TODO files, asks to TODO, or mentions TODO.compatibility: Requires Python 3.10+ (standard library only).metadata: version: "0.1.0" owner: TODO---
# TODO Skill Title
## Quick start
Run the checker on the input. If it reports problems, write a corrected copy to a new file and run the checker on that copy, repeating until it prints `OK`:
```bashpython scripts/check.py path/to/input.csv```
The `scripts/` path is relative to this skill's folder. In Claude Code, use `${CLAUDE_SKILL_DIR}/scripts/check.py` so it works from any working directory.
## Workflow
Copy this checklist and update it as you go:
```- [ ] 1. Run scripts/check.py on the input- [ ] 2. Write a corrected copy to a new file (e.g. input.fixed.csv), fixing every reported problem- [ ] 3. Run scripts/check.py on the new file; repeat step 2 until it prints OK- [ ] 4. Produce the output using assets/output-template.md```
## Scripts
**`scripts/check.py`**: **run** this; don't read it. It checks the input file and prints `OK (<n> rows)`, or prints one `ERROR:` line per problem followed by a count, and exits with code 1. It exits with code 2 for a usage or file problem (wrong arguments, file not found, or not UTF-8 text); fix the command or the file encoding rather than the data.
```bashpython scripts/check.py <file>```
## When to read the references
- For field definitions and allowed values, read [references/reference.md](references/reference.md).- For the output layout, use [assets/output-template.md](assets/output-template.md).
## Rules
- Never edit the source file in place; write fixes to a new file.- If `check.py` reports more than 20 errors, stop and summarise them for the user instead of fixing them one by one.