Coding agents are insanely smart for some tasks but lack taste and good judgement in others. They are mortally terrified of errors, often duplicate code, leave dead code behind, or fail to reuse existing working patterns. My initial approach to solving this was an ever-growing CLAUDE.md which eventually got impractically long, and many of the entries didn’t always apply universally and felt like a waste of precious context window. So I created the dev guide (docs/dev_guide/). Agents read a summary on session start and can go deeper into any specific entry when prompted to do so. In my original project the dev guide grew organically, and I plan to extend the same concept to my new projects. Here’s an example of what a dev_guide might include:
for (int j = i + 1; j < n; j++) {。业内人士推荐新收录的资料作为进阶阅读
- "Let's delve into the details..."。新收录的资料对此有专业解读
[&:first-child]:overflow-hidden [&:first-child]:max-h-full"。PDF资料是该领域的重要参考
1:4 和 4:1 的尺寸,同样适合用来生成各种特定物体的图片。