Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计通过

misra-automotive-c米斯拉汽车公司

Agent Skill

misra-automotive-c 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,993

周安装

202

GitHub Stars

公开资料未说明

下载量

1,568
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:misra-automotive-c(米斯拉汽车公司)
来源仓库:https://github.com/budhadityarano/misra-automotive-c
安装命令:
openclaw skills install misra-automotive-c
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install misra-automotive-c

简介

根据 MISRA C:2012 标准审查汽车嵌入式 C 代码合规性。

  • 适用于车载系统开发、安全关键软件审计与行业标准对齐。
  • 安装命令:openclaw skills install misra-automotive-c,来源仓库:https://github.com/budhadityarano/misra-automotive-c。
  • 输出包含规则编号与 ASIL 分类,需提供完整源码与编译环境。
  • 结果仅反映静态规则匹配,不覆盖运行时行为与硬件依赖问题。

SKILL.md

name
misra-automotive-c
version
1.0.0
description
>
metadata
openclaw
emoji
🚗
requires
bins
[]
always
false
triggers
license
MIT-0

MISRA Automotive C — Review Skill

Quick Reference

FileCoverage
misra-mandatory.mdMandatory rules — never violate, no deviation allowed
misra-required.mdRequired rules — must comply or raise formal deviation
types-and-casting.mdEssential types, fixed-width integers, casts, essential type model
memory-embedded.mdNo dynamic alloc, volatile, ISR constraints, stack discipline
control-flow.mdgoto, loops, switch, if-else chains, single exit
preprocessor.mdMacros, include guards, #undef, ## operator
iso26262-mapping.mdASIL A–D relevance for key MISRA C:2012 rules

When to Activate

Activate this skill when the user:

  • Pastes C code and asks for a MISRA review, compliance check, or audit
  • Uses trigger words: "misra", "misra check", "misra review", "automotive c", "embedded c review", "iso 26262", "asil"
  • Asks "is this MISRA compliant?" or "what rules does this violate?"

Review Workflow — Follow These Steps in Order

Step 1 — Parse the Code

  • Read every line of the submitted C code carefully.
  • Identify the context: function body, header file, ISR, macro definition, type declaration.
  • Note all variable types, control flow paths, preprocessor directives.

Step 2 — Check Mandatory Rules First (load misra-mandatory.md)

Mandatory rules have zero tolerance — flag every violation immediately. Priority mandatory checks:

  • Rule 1.3 — No undefined behaviour
  • Rule 2.1 — No unreachable code
  • Rule 13.2 — No side effects in expressions where order is unsequenced
  • Rule 14.3 — Controlling expressions shall not be invariant
  • Rule 15.1 — No goto
  • Rule 17.1 — No <stdarg.h> features
  • Rule 17.3 — No implicit function declarations
  • Rule 17.4 — All exit paths of a non-void function shall have an explicit return
  • Rule 21.3 — No malloc, calloc, realloc, free

Step 3 — Check Required Rules (load misra-required.md, types-and-casting.md, control-flow.md, preprocessor.md)

Required rules must be complied with unless a formal deviation exists. Check:

  • Typedef usage for fixed-width types (Rule 4.6 → D.4.6)
  • Essential type model violations (Rules 10.1–10.8)
  • All switch statements have a default clause (Rule 16.4)
  • All if-else if chains end with else (Rule 15.7)
  • Single-entry single-exit preferred (Rule 15.5)
  • All struct/union members initialised (Rule 9.1)
  • All macros parenthesised (Rule 20.7)
  • No function-like macros unless unavoidable (Rule 20.10)

Step 4 — Check Embedded / Memory Rules (load memory-embedded.md)

  • volatile used on all hardware-mapped registers and shared ISR variables
  • No dynamic memory allocation (heap) anywhere in safety-critical paths
  • No recursion (Rule 17.2)
  • Fixed-width integer types used exclusively for hardware registers and protocol fields
  • ISR functions: no heavy computation, no blocking calls

Step 5 — Map to ISO 26262 ASIL (load iso26262-mapping.md)

  • For every rule violation found, report its ASIL classification
  • ASIL D violations are highest severity — highlight prominently
  • Report ASIL A violations but mark as lower urgency

Step 6 — Generate the Violation Report

Output the report in EXACTLY this format for every violation found:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VIOLATION #<N>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Rule        : MISRA C:2012 Rule <X.Y>
Category    : Mandatory | Required | Advisory
ASIL        : A | B | C | D | Not mapped
Severity    : CRITICAL | HIGH | MEDIUM | LOW

Location    : Line <N> — <brief description of what the line does>

Non-Compliant Code:
  <exact offending line(s)>

Why it violates Rule <X.Y>:
  <1–3 sentence plain-English explanation of the rule and why this code breaks it>

MISRA-Compliant Replacement:
  <corrected code, complete and ready to use>

Explanation of fix:
  <1–2 sentences explaining what changed and why it is now compliant>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

After all individual violations, output a summary table:

REVIEW SUMMARY
──────────────────────────────────────────────────
Total violations   : <N>
  Mandatory        : <N>  ← must fix before any safety certification
  Required         : <N>  ← must fix or raise formal deviation
  Advisory         : <N>  ← recommended to fix

ASIL breakdown:
  ASIL D           : <N>  ← safety critical, fix immediately
  ASIL C           : <N>
  ASIL B           : <N>
  ASIL A           : <N>
  Not mapped       : <N>

Overall compliance status: FAIL | CONDITIONAL | PASS
──────────────────────────────────────────────────

Code Generation Workflow

When asked to generate new automotive/embedded C code (not review existing code):

Always apply these rules unconditionally — no exceptions:

Types:

  • Use uint8_t, uint16_t, uint32_t, uint64_t, int8_t, int16_t, int32_t, int64_t — never int, unsigned int, long, char for numeric data
  • Use bool (from <stdbool.h>) for boolean values — never integer flags
  • Always cast explicitly when converting between types — no implicit narrowing

Memory:

  • Never use malloc, calloc, realloc, or free
  • All variables initialised at declaration point
  • Arrays are fixed-size, statically allocated
  • Hardware register pointers declared volatile

Control flow:

  • No goto
  • All if / else if chains end with else
  • All switch statements have a default
  • All loops have a defined maximum iteration count
  • Every non-void function has a single explicit return at the end when possible

Functions:

  • All parameters and return types use fixed-width typedefs
  • All return values checked by callers
  • No recursion
  • Maximum one level of pointer indirection unless justified

Macros:

  • Function-like macros: all parameters and the whole expression parenthesised
  • Prefer static inline functions over function-like macros
  • Include guards on every header (#ifndef FILENAME_H / #define FILENAME_H / ... / #endif)

Escalation Rules

  • If the code contains Rule 21.3 violations (dynamic allocation) in any path reachable from a safety function, output a ⚠️ SAFETY CRITICAL banner at the top of the report before any violations.
  • If Rule 15.1 (goto) is found, flag it as ASIL D regardless of context.
  • If Rule 17.2 (recursion) is found in any function, trace the full call chain if visible and report it.
  • If the code appears to be an ISR (function name contains ISR, _IRQ, _Handler, _isr, or has a __attribute__((interrupt)) annotation), apply memory-embedded.md ISR rules with heightened strictness.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.02%
按下载量换算1,114

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills