# MaJerle/c-code-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.

Repository: https://github.com/MaJerle/c-code-style
Canonical: https://ross.abutalabs.com/products/c-code-style
Homepage: http://majerle.eu
Language: C
License: MIT
License Family: permissive
Topics: c, style, coding, rules, c-rules, c-code-style
Last push: 2026-08-04T21:48:30+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 2942, "days_push": 29, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1339, forks 267 (observed 2026-08-28T04:04:25.875382+00:00)

## What it is
A curated set of recommended C code style rules and coding conventions for standard C99 or later, maintained by Tilen Majerle. It also ships an AI agent skill so AI coding assistants can write, edit, and format code according to the same rules.

## Use cases
- define a consistent C coding style for my team
- format C code according to a documented standard
- make my AI coding assistant follow C style rules
- learn best practices for writing C99 code
- set up coding rules for an embedded C project
- review C code against a style checklist

## When to choose
- you want a well-known, MIT-licensed C style guide to adopt as-is
- you work on embedded or general C projects and need consistent formatting rules
- you want AI agents to automatically conform to your C coding conventions

## When to avoid
- your organization already mandates a different standard like MISRA C or a company style guide
- you need an automated formatter tool rather than a written style document
- you work primarily in languages other than C

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: programming-languages, developer-tools, embedded-systems, tutorials
- platform: cross-platform
- tags: c99, coding-style, coding-standards, code-formatting, embedded-c, ai-agent-skill, style-guide

## Member repositories
- MaJerle/c-code-style (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:25.875382+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:43:53.322784+00:00, confidence not recorded.
  - readme: https://github.com/MaJerle/c-code-style (fetched 2026-08-28T04:04:25.875382+00:00, sha 2e0115a404a3)
  - homepage: http://majerle.eu (fetched 2026-08-29T12:03:18.862366+00:00, sha 58aa12e2087f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
