You can use your LLM coding failures work FOR you.
Make a rule that your coding agent MUST keep a FAILURES.md file updated with EVERY issue it runs into, no matter how small.
Every now and then, tell your coding agent to review that file and see if there are any opportunities for new skills, rules, hooks, or scripts either globally or for this project.