@KevinH: You will likely already have free access to claude (and other models) via GitHub copilot. And yes this kind of thing will be fairly trivial for copilot to get almost entirely correct in agentic mode. And you dont need to install anything on your computer to use it. Simply go to
https://github.com/copilot and use the chat interface to ask copilot to send a PR or generate code whatever suits the use case. A few sentences (3-4) of instructions will likely generate largely working code. I'll leave you a couple of examples of doing this via PRs in calibre. Note that though the PRs are marked closed they were actually merged (I squash the commits and merge as a single commit).
https://github.com/kovidgoyal/calibre/pull/3023
https://github.com/kovidgoyal/calibre/pull/3024
https://github.com/kovidgoyal/calibre/pull/3026