{
  "markdown": "# AI Agent Rules for C Programming\n\nThis repository packages a focused set of AI agent rules for recommended C code style and coding practices for standard C99 or later.\n\nIt is meant to keep assistants aligned with the surrounding codebase, reinforce consistent formatting and naming, and reduce style drift across C projects. The core guidance lives in [`rules/C-style-and-coding-rules.mdc`](./rules/C-style-and-coding-rules.mdc), which is loaded automatically for matching files.\n\nUse this plugin when you want AI help that respects existing C conventions instead of rewriting code in a generic or inconsistent style. It is especially useful for projects that rely on `clang-format`, conventional header/source organization, and stable long-term maintainability.\n\n> [!IMPORTANT]\n> Credit: the original Recommended C style and coding rules were created by [MaJerle](https://github.com/MaJerle/c-code-style).\n\n<img width=\"1419\" height=\"608\" alt=\"c-style-and-coding_banner\" src=\"https://github.com/user-attachments/assets/9090e85d-5afc-4fe8-93a5-ec791227bfcc\" />\n\n## What it covers\n\n- Core C style conventions for C99 and later\n- Formatting rules that work with `clang-format`\n- Indentation, spacing, braces, and control-flow layout\n- Naming, scope, and variable usage patterns\n- Functions, macros, structures, and typedef guidance\n- Header/source organization and include handling\n- Comments, documentation, and maintainable code structure\n- Project-level consistency across existing codebases\n\n## Installation\n\n> [!NOTE]\n> Claude Code installation guide is coming very soon.\n\n<details>\n<summary>Cursor</summary>\n\nCopy the plugin into Cursor’s plugin directory:\n\n```bash\ngit clone https://github.com/AhmedAbouelkher/ai_c_style_and_coding.git ~/.cursor/plugins/ai_c_style_and_coding\n```\n\nCursor auto-discovers rules from `.agents/rules/` and `.cursor/rules/`.\n\n</details>\n\n<!-- <details>\n<summary>Claude Code</summary>\n\nCopy the plugin into Claude’s plugin directory:\n\n```bash\ncp -R .claude-plugin ~/.claude/plugins/ai_c_style_and_coding\n```\n\n</details> -->\n\n<details>\n<summary>Antigravity</summary>\n\nCopy the plugin into Antigravity’s discovery directory:\n\n```bash\ngit clone https://github.com/AhmedAbouelkher/ai_c_style_and_coding.git ~/.antigravity/skills/ai_c_style_and_coding\n```\n\n</details>\n\n<details>\n<summary>OpenCode</summary>\n\nCopy the plugin into OpenCode’s discovery directory:\n\n```bash\ngit clone https://github.com/AhmedAbouelkher/ai_c_style_and_coding.git ~/.agents/skills/ai_c_style_and_coding\n```\n\nOpenCode auto-discovers skills from `~/.agents/skills/`, `~/.opencode/skills/`, and `~/.claude/skills/`.\n\n</details>\n\n<details>\n<summary>Codex (OpenAI)</summary>\n\nCopy the plugin into Codex’s discovery directory:\n\n```bash\ngit clone https://github.com/AhmedAbouelkher/ai_c_style_and_coding.git ~/.agents/skills/ai_c_style_and_coding\n```\n\nCodex auto-discovers skills from `~/.agents/skills/` and `.agents/skills/`.\n\n</details>\n\n<details>\n<summary>Copilot</summary>\n\nCopy the plugin into Copilot’s discovery directory:\n\n```bash\ngit clone https://github.com/AhmedAbouelkher/ai_c_style_and_coding.git ~/.copilot/skills/ai_c_style_and_coding\n```\n\nCopilot auto-discovers rules from `.copilot/rules/`.\n\n</details>\n\n<details>\n<summary>Gemini CLI</summary>\n\nInstall the extension from the repository URL:\n\n```bash\ngemini extensions install https://github.com/AhmedAbouelkher/ai_c_style_and_coding\n```\n\nUpdate with `gemini extensions update ai_c_style_and_coding`.\n\n</details>\n\n## License\n\nMIT. See `LICENSE` for details.\n",
  "bytes": 3524,
  "sha": "b45f8624bcbac1665093d7f7aaa331025ac85dfccbac9a1b266bd5c27ebd1f59",
  "repo_slug": "ahmedabouelkher/ai_c_style_and_coding",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_ahmedabouelkher_ai_c_style_and_coding_13308087/readme"
}