Give your agent skill its own scripts (Claude Code and Pi)

Build an agent skill that ships its own script: a release-notes skill whose Python collector turns git log into JSON, so the model only writes the prose. The same folder runs in Claude Code and Pi.

Written guide: https://a2coder.dev/blog/agent-skill-with-scripts
Full code (MIT): https://github.com/a2coder-tutorials/agent-skill-with-scripts

Tested with Claude Code 2.1.316, Pi 1.4.0 and Claude Haiku 5.5. The screen is recreated from a real run.

Chapters
0: 00 Intro
0: 30 Split the job
1: 04 Write the script
2: 00 Test with known answers
2: 51 Write SKILL.md
4: 17 Keep the format separate
4: 42 Install it
5: 20 Run it in Claude Code
6: 25 Run the same folder in Pi
7: 03 Fix the script, not prompt
7: 43 Things to watch for