Seems like a reasonable approach.
I wonder if it took less time than it would have taken to build some rule-based codemod script that operates on the AST, but I assume it did.
The rules based made the job of the LLM easier, so it was a worthwhile part of project.
It also takes less context potentially - allowing a more junior engineer or somebody who doesn't know much about the language/library to implement the change.