Adding a new content type
Key point
Claude Code accurately merged beats into a newsletter by referencing a reference repo.
Details
To add a new content type called beats to the blog-to-newsletter tool, the original blog repository was first cloned into /tmp as a reference, and the agent was set to work from there.
The core goal was to include only beats with a note attached in the newsletter. This followed exactly the convention already used by the blog's Atom feed, allowing the agent to reproduce a complex condition without any separate explanation.
A prompt that included verification was also important. A static server was started with python -m http.server, browser automation tests were run using uvx rodney --help, and the agent was instructed to compare the newsletter results against the simonwillison.net homepage.
As a result, the agent produced an accurate fix.
- Added a
UNION ALLclause to the SQL that fetches content, merging inblog_beat. - Included only entries where
noteis not empty, and excluded draft beats. - Also built on its own a table mapping beat type to display names.
release→Releasetil→TILtil_update→TIL updatedresearch→Researchtool→Toolmuseum→Museum
This case shows that giving an agent not just "what to change" but also a reference codebase, a verification method, and a comparison standard allows even a short prompt to complete a complex task in one shot.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.