There's a tradeoff every agent builder runs into. Load everything the agent might need and you burn tens of thousands of tokens before it does any work. Load nothing and it misses patterns it actually needed. Most people pick one side and live with the cost.
cc-polymath, an open source skill library for Claude Code, picks neither. It splits knowledge into small pieces and loads them only on demand.
The instinct when an agent gets something wrong is to feed it more. More docs, more examples, more rules in the system prompt. That works until the context fills up with things it doesn't need for the task in front of it, and the one fact it actually needed gets buried.
The fix here isn't about knowing more. It's about reaching for the right piece at the right moment, the same way a person doesn't memorize a whole manual, they flip to the page they need.
This project is built for developers using Claude Code, but the pattern isn't specific to code. Any prompt library, skill set or agent instructions can hit the same wall: too much loaded, too little used. Structuring knowledge in small, triggered pieces instead of one giant file is the lesson, whatever you're building agents for.
An agent with less loaded and more targeted beats one carrying everything at once. cc-polymath is a working example built for coding, worth studying even if you never touch code.
More on building with AI agents at Masterphub: https://masterphub.io