Claude Code Python Skill for Typed CSV Parsing and Pytest Cases
Add types and reproducible tests to a Python data parser. Use parameterized pytest cases for valid and invalid inputs.
中文Install in Claude Code
Use Claude Code with the pinned skill and the project's Python, pytest, and type-checking environment.
- Get the complete `skills/python` directory from the pinned revision.
- Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/python/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.
Example task
A fictional reading-list CSV accepts 2 as a row count. Blank input and two should produce clear failures. Write the tests before the parser.What to check
Cover numeric, blank, and text inputs. Give the caller a typed result and report the outcome of actual checks.
Original SKILL.md on GitHub · Updated
Frequently asked question
When should multiple scenarios share a parameterized test?
Share the test body when cases differ by input and expected output. Name each case so a failure is easy to locate.