How to Write Coding Standards AI Agents Follow
Stack Overflow published a practical guide on writing coding guidelines that actually work for AI agents, drawing on input from Vish Abrams at Heroku, Greg Foster at Graphite, and Quinn Slack at Sourcegraph. The core problem is straightforward: agents don't absorb team conventions the way junior developers do over time, so everything implicit needs to become explicit - naming patterns, exception handling, comment placement, even what not to do. The recommended approach includes agents.md files, gold-standard reference implementations, and deliberately adversarial testing of your own rules. Treat guideline failures as feedback loops, not one-off fixes. More teams are converging on this pattern of shipping rule files alongside code, whether it's CLAUDE.md, .cursorrules, or agents.md - the convention isn't standardized yet but the practice is spreading fast.