An agent skill to bring LLM generated critiques/reviews into emacsProblem: I use LLMs to critique my code/manuscripts/writing, but it is annoying to switch back-and-forth between the LLM interface and the source file if I want to engage with line edits.Emacs workflow: I already use annotate.el to leave persistent notes for myself in files. It would be awesome if an LLM could do the same!The solution: I prompted an LLM to create an agent skill that would automatically create an annotate db with the "line edits" when prompted for feedback on a file.I don't believe in uploading LLM generated code to github, but here is the prompt I used that worked out of the box: Skill name: annotate-in-emacs When asked for feedback or critique on any file that lives on disk, format the line by line critique to be compatible with the emacs annotate.el package. The default annotation file will be <filename>.notes in the same directory. If a notes file already exists, back it up before creating a new notes file.Final notes:1. I use annotate.el with (annotate-file-buffer-local t) so my annotations are stored locally in each directory.2. I think this provides a nicer experience, both from the LLM providing only meaningful line edits, and also a lower cognitive load for the user by allowing her to engage with one critique at a time.3. This should be easily extensible to <your favorite annotation tool>Hope this is useful to someone else!redd.it/1vtx8r6@r_emacs