This is similar to a pattern I tried to get GPT-4 to follow. I remember struggling to get it to do even basic things. LLMs have come a long way in 2 years!
The general idea was that you give it a generic system prompt and a list of guides, and the tools to read them.