← /with/

Use Python with Scratch

Have an AI write a Python script that transforms your Scratch folder. Run it. Review every diff in Scratch. Refine the script. Run it again. Start with Scratch → or talk to Curtis

The Python + Scratch flow

  1. Pull your records into Scratch. The folder is one JSON file per record, with prose fields and structured fields sitting alongside each other.
  2. Ask your AI of choice (Claude, Codex, Cursor) to write a Python script that walks the folder and applies the change you want. A regex sweep across product titles. A tag normalizer. A length-capper on meta descriptions. A bulk SEO field rewrite.
  3. Run the script against your Scratch project folder.
  4. Open Scratch. Every file the script touched shows up as a diff, per record.
  5. If the script overreached, refine the prompt, regenerate, re-run. The originals are still there.
  6. Approve the diffs you want. Publish.

Why Python pairs well with Scratch

A Scratch folder is a clean, normalized substrate that Python is unreasonably good at chewing through. pathlib, json.load, a regex, json.dump, done. The AI writes the script in seconds; Python runs it deterministically across ten thousand records; Scratch gives you a per-record review surface so you can catch whatever the script got wrong before it ships.

This is the right pattern when:

It's also how Scratch's optional validators work under the hood: AI-authored Python rules that fail formatting regressions before a diff ever reaches your eyes.

What stays safe

The script runs on your machine, against local files. Nothing leaves your laptop until you click publish in Scratch, per record. The original version of every record sits next to the modified one until you decide.

If the script breaks something, you reject the diffs. If it nails every record, you approve in bulk. Either way, you saw it first.

Try this on a real project.

Curtis runs intro calls personally. Bring a refresh, a migration, or anything that feels sticky. We'll work through whether Scratch fits.

Talk to Curtis → or start with Scratch