#356 · Primary category: AI Coding Assistants

c-code-style

c c-code-style c-rules coding rules style

Recommended C code style and coding rules for standard C99 or later. Comes with AI agent skill to write, edit and format the code.

Project last updated:08/04/26

GitHub Stars

1.3K

Forks

267

Contributors

7

License

MIT

Why we included this project

Every team writing C on embedded targets or system libraries ends up policing style in code review, and this project turns that into something you can check mechanically. It packages a written rule set for C99 and C11 in a CODING_RULES.md file you copy into your own repository, plus a matching .clang-format, so the same conventions hold in your editor, from the command line, and in CI. What makes it useful for AI-assisted work is the bundled Claude Code skill and AGENTS.md, which hand those rules to an AI agent so code it writes or refactors follows the guide instead of drifting from it. The rules themselves are opinionated and rooted in real embedded practice, covering naming, comments, macros, functions, and header layout with concrete examples. If you maintain a C library or firmware codebase and want a small, sensible default contract between humans and their AI tools, this is a practical document to adopt or adapt.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category