How majerle/c-code-style works
This repository provides recommended C coding rules, clang-format configuration, and lightweight editor/AI-agent integration. A contributor consults the rules and applies the formatter using the repository configuration; the shipped C files are a small template example, not a larger application workflow. README.md documents the integration, but the agent skill and AGENTS.md contents were not sampled, so their internal behavior is not expanded here.
Main entry points: .clang-format Format configuration · SKILL.md Agent style skill · AGENTS.md Agent guidance · template.c Template functions
Components 8
Style guidance
- C coding rules
CODING_RULES.md - Project overview
README.md - Agent style skill
.claude/skills/c-code-style/SKILL.md - Agent guidance
AGENTS.md
Formatting
- Format configuration
.clang-format
C template
- Template declarations
template.h - Template functions
template.c
Other components
- Contributor
Connections 5
- Contributor → C coding rules: consults
README.md - Contributor → Format configuration: formats with
README.md - Agent style skill → Format configuration: uses rules
README.md - Agent guidance → Format configuration: uses rules
README.md - Template functions → Template declarations: includes
template.c