using LLMs to write documentation and tests

kobogarden 20th September 2024 at 2:01pm

I didn't fully trust these to be accurate, so I gave it this follow-up prompt

:llm -c "Rewrite that document to use the Python cog library to generate the examples"

I'm a big fan of Cog for maintaining examples in READMEs that are generated by code. Cog has been around for a couple of decades now so it was a safe bet that Claude would know about it.