This document outlines the rules AI agents must follow when checking out branches, writing code, documenting features, and running the development environment. Follow these rules carefully:
- Commit Subject: Must follow the format
feature: descriptive title. - Commit Body: Should describe the changes in detail in the commit message body.
- Sign-off: All commits must be signed off by the developer (
Signed-off-by: Name <email>) using the identity from the local git config.
- Doxygen Comments: Any new C code or features must include Doxygen comments.
- Documentation Builds: Integration of new code must not introduce any new Doxygen errors or warnings. Code additions should be verified against a clean documentation build.
- Architectural Consistency: When adding or updating a file, any
architecture.mdorREADME.mdin the same directory must be reviewed. The agent is responsible for ensuring documentation stays in sync with code logic changes.
- Standard: Use
clangdinstead ofcheckpatchfor codestyle verification. - Rationale:
checkpatchis prone to confusion with assembly and non-standard C;clangdprovides better integration with IDEs and AI tools and is easier to maintain.