I asked Claude to write some shell scripts for me:
- The first launches a new draft template in MarkEdit, the free, open-source Markdown editor I use to create files for Claude.
- The second will publish a draft, which involves moving the md file from /drafts to /posts on my Mac. This command uses autocomplete, so I type
publishthen the start of a slug, and the script fills in the complete slug. - The next script is for creating a new post, which just creates the new md doc in /posts in one step instead of two.
- The last script,
golive, will push the new contents of /posts up to GitHub, from whence they are automatically pushed to the web server.
I then created a Macro Group in Keyboard Maestro and created four Macros inside it, one to run each of these scripts. When I invoke opt-cmd-b anywhere on my Mac, a Palette appears and I can click one of these Macros. It will ask me for the post title and then launch MarkEdit or publish.
That’s an entire blog engine, running locally on my Mac, using HTML, CSS, and Keyboard Maestro.