misra

misra is a command for Claude Code from atillab1/embedded-ai-workspace. It costs 27 tokens per session (479 once invoked), scanned A, original, MIT.

A command for reviewing C code against MISRA-C:2012 Amendment 4, a safety-focused coding standard, including extra checks for interrupt handlers.

In plain words
What is it for?
Use it with a C file or pasted code for a standard review, a strict review, or checks limited to interrupt-service routines.
Why use it?
It helps reveal rule violations and interrupt-related safety problems that may be missed in a normal code review.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it with a C file or pasted code for a standard review, a strict review, or checks limited to interrupt-service routines.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/atillab1/embedded-ai-workspace/misra
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/atillab1/embedded-ai-workspace

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for misra

README.md
[![agentmods](https://agentmods.dev/badge/commands/atillab1/embedded-ai-workspace/misra/github.svg)](https://agentmods.dev/commands/atillab1/embedded-ai-workspace/misra)
Your own site
<a href="https://agentmods.dev/commands/atillab1/embedded-ai-workspace/misra"><img src="https://agentmods.dev/badge/commands/atillab1/embedded-ai-workspace/misra/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for misra

Your own site · 80×15
<a href="https://agentmods.dev/commands/atillab1/embedded-ai-workspace/misra"><img src="https://agentmods.dev/badge/commands/atillab1/embedded-ai-workspace/misra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00479
Opus 5.5 $0.00011 $0.00192
Sonnet 5.5 $0.00005 $0.00096
Haiku 4.5 $0.00003 $0.00048

Measured 2mo ago against content hash c0909f6a8182, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

misra scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

misra-c-reviewer/commands/misra.md · 50 lines

What it actually says

Use the misra-c-reviewer skill to perform a MISRA-C:2012 (Amendment 4, 2023) review.

Input

$ARGUMENTS

How to interpret the input

Parse $ARGUMENTS as follows:

  • If it contains a file path (e.g. main.c, src/foo.c, absolute path): Read the file and review its full contents.

  • If --strict is present: Load references/rules-required.md and references/rules-advisory.md in addition to rules-essential.md. Report every violation, including style-level issues.

  • If --isr-only is present: Skip the general MISRA review. Only run the ISR safety cross-check (volatile, race conditions, printf/malloc in ISR, reentrancy, DMA cache).

  • If $ARGUMENTS is empty or only contains flags: Ask the user to either provide a file path or paste the code they want reviewed. Don't proceed without code to review.

  • If $ARGUMENTS looks like raw C code (contains {, ;, #include, function signatures, etc.): Treat the whole argument as the code to review.

Workflow

Follow the workflow defined in the skill's SKILL.md:

  1. Identify scope (file vs snippet, ISR involvement, runtime context).
  2. Load references/rules-essential.md (or more, if --strict).
  3. Walk the code and report findings using the standard format: [Rule X.Y — Mandatory/Required/Advisory] <summary> with Location, Why, and Fix sections.
  4. Cross-check ISR safety patterns from examples/isr-safety.c.
  5. Summarize: counts by severity, top 3 things to fix first.

Group findings by severity (Mandatory → Required → Advisory → ISR Safety). Don't manufacture findings. If the code is clean, say so plainly.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 50 lines · 27 tokens per session scan A c0909f6a8182

Subscribe to this mod's changes

misra is a command published in the GitHub repository atillab1/embedded-ai-workspace (5 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 479 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

misra compared with commands from other repositories

misra next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
misraatillab1/embedded-ai-workspaceCommand56mo agoMITA27Claude Code
assemble-teamtravisjneuman/.claudeCommand1072d agoMITA25Claude Code
ia-test-browseriliaal/whetstoneCommand352d agoMITA15Claude Code
ia-verifyiliaal/whetstoneCommand352d agoMITA24Claude Code
announceiliaal/whetstoneCommand352d agoMITA17Claude Code
ia-agent-native-auditiliaal/whetstoneCommand352d agoMITA31Claude Code
check-architectureTheBeardedBearSAS/claude-craftCommand1073d agoMITA20Claude Code