A coding standard designed to reduce sloppiness in AI coding agents and improve code quality across projects.
This repository provides agent.md - a comprehensive set of coding standards and guidelines specifically crafted to help AI coding agents generate cleaner, more maintainable, and professional code. The rules emphasize simplicity, clarity, and best practices while avoiding common pitfalls that lead to "sloppy" code.
agent.md- English version of the coding standardsagent.zh-cn.md- Chinese (Simplified) translation of the coding standardsREADME.md- This fileREADME.zh-cn.md- Chinese (Simplified) translation of this file
The guidelines are built around these core principles:
- YAGNI (You Ain't Gonna Need It) - Avoid implementing features that aren't immediately needed
- KISS (Keep It Simple, Stupid) - Prioritize simple, straightforward solutions
- Clear Ownership - Always define who owns logic, resources, and information
- Clean Data Flow - Explicitly map data suppliers, consumers, and potential leaks
- Create folder named
.cursor/rulesin your project root. - Copy the
agent.mdto the folder. - Alternatively, Create
AGENTS.mdand copyagent.mdcontent to the file.
- In your project, create a
.github/copilot-instructions.mdfile. - Copy the
agent.mdcontent to the file.
- Create
CLAUDE.mdin your project root. - Copy the
agent.mdcontent to the file.
- Follow the manual from your provider.
- Or just ask the agent to follow
agent.md.
This project is dedicated to reducing code sloppiness everywhere. Feel free to use these standards in your projects and share them with your AI coding assistants.
For questions or improvements:
- Open an issue for discussion
- Submit pull requests for standard updates
- Share your experiences applying these standards with different AI tools