misra-c

Enforce MISRA C:2012 compliance in embedded C projects via cppcheck.

2|1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/solitasroh/mcukit --skill misra-c
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: misra-c
Source: https://github.com/solitasroh/mcukit/tree/main/skills/misra-c
Command: npx skills add https://github.com/solitasroh/mcukit --skill misra-c

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MISRA C:2012 coding standard guidance for embedded systems, helping teams identify violations, apply safe alternatives, and document deviations.

Core Features & Use Cases

  • MISRA rule categorization (Required, Advisory, Documented) and guidance on violations
  • cppcheck MISRA addon integration for static analysis
  • Embedded-specific deviation guidance and practical fix examples

Quick Start

Run MISRA checks on your MCU project using cppcheck with the misra addon.

Frequently Asked Questions about misra-c

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my embedded C code for MISRA C:2012 compliance?

To check embedded C code for MISRA C:2012 compliance, run cppcheck with the MISRA addon on your MCU project to identify violations and receive guidance on safe coding alternatives.

What is the difference between Required, Advisory, and Documented MISRA rules?

MISRA C:2012 rules are categorized as Required, Advisory, or Documented to indicate severity. This categorization helps teams prioritize violations and determine when formal deviation documentation is necessary for specific codebases.

Does cppcheck support MISRA C:2012 static analysis for MCU environments?

Yes, cppcheck supports MISRA C:2012 static analysis for MCU environments through its dedicated MISRA addon. This integration helps identify common violations and provides guidance for embedded C projects.

How do I document deviations for MISRA C violations in embedded systems?

To document deviations for MISRA C violations in embedded systems, follow standard guidance to record the rationale and apply practical fix examples, ensuring safe coding practices are maintained across the codebase.

What are common MISRA C:2012 violations in embedded C projects?

Common MISRA C:2012 violations in embedded C projects involve unsafe coding practices that compromise MCU safety. The standard provides guidance and practical fix examples to address these typical codebase issues.