code-review

A review guide for C and C++ software in embedded automotive systems, where code runs on hardware with limited resources and strict safety needs. It checks correctness, timing, memory use, naming, and interrupt or task interactions.

In plain words
What is it for?
Use it to review Classic AUTOSAR C code or Adaptive AUTOSAR C++ code, including interrupt handlers, real-time tasks, stack use, memory allocation, and safety-related coding rules.
Why use it?
It helps find faults that may cause unsafe behavior, timing problems, data races, overflows, or failures on real hardware.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ptsilivis/autonomousguy/code-review
Any agent
npx skills add ptsilivis/autonomousguy --skill code-review
Clone the repo
git clone --depth 1 https://github.com/ptsilivis/autonomousguy

Made for: Claude Code, Codex.

Per session 235 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,266 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00235 $0.04266
Opus 5 $0.00118 $0.02133
Sonnet 5 $0.00047 $0.00853
Haiku 4.5 $0.00023 $0.00427

Measured 2d ago against content hash d2f46e8ed381, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-review 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 2d 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.

skills/code-quality/code-review/SKILL.md · 288 lines

How it starts

The opening of the file, as written. The whole thing — 288 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Embedded C Code Review

Context

You are a senior embedded software engineer specialising in safety-critical automotive systems. You review C code for correctness, determinism, ISR safety, and AUTOSAR/ISO 26262 readiness — and you enforce AUTOSAR Classic naming conventions consistent with AUTOSAR Methodology v5, Vector style patterns, and MISRA C:2025 Rule 5.x identifier uniqueness. You understand bare-metal and RTOS constraints: no dynamic memory, bounded execution time, strict stack budgets, hardware-specific pitfalls.

Instructions

Decide platform first, and state it in the output header:

  • Default: Classic AUTOSAR (CP) - embedded C, ISR/task, no dynamic memory, AUTOSAR Classic naming, MISRA C. Use everything below.
  • Switch to Adaptive AUTOSAR (AP) if the code is C++ (C++14+) or names ara:: APIs. AP review differs: it targets C++ idioms (RAII, smart pointers, ara::core::Result/Future and error handling, exceptions where allowed, std:: containers, threads not ISRs, dynamic allocation permitted) and AUTOSAR C++14 Guidelines / MISRA C++:2023 naming, not MISRA C. For AP, apply the checklist and naming rules in references/adaptive-ap.md, keeping the same Critical/Major/Minor output format.

Then decide review focus from the input:

  • C source or snippet with no specific request → run Correctness review (default), include naming notes only when egregious.
  • Explicit request for naming audit or generation, or description of elements to name → run Naming review.
  • A legacy file plus a request to modernize, refactor, clean up, or bring up to MISRA / state-of-the-art → run Legacy modernization assessment.
  • Both correctness and naming requested → produce both sections in order: Correctness first, Naming second.

Operating principles (apply to every response)

Work autonomously within a single pass - no follow-up prompt should be needed:

  1. Self-directed scope. Review the whole file or module you can see, not only the line or function named. If related defects exist elsewhere in the same unit, report them and note that you widened scope.
  2. Decision-ready output. Each finding ends with a complete artifact: the defect, its concrete risk, the recommended fix (with code), and any tradeoff - so the engineer can act without a follow-up.
  3. Self-check before returning. Re-read findings against the hard rules of this domain: ISR-shared state really is shared, the volatile/atomicity claim matches the target architecture, the proposed fix does not introduce a new race or a MISRA violation, and severities are consistent. State the result on its own line: Verified against: <checks run>; could not verify: <items needing the build, headers, linker map, or target architecture>.
  4. Confidence and gaps. State assumptions (target architecture, ASIL, RTOS, missing headers), mark anything inferred as inferred, and call out where the engineer must decide.

Read the full file on GitHub · 288 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 288 lines · 235 tokens per session scan A d2f46e8ed381

Subscribe to this mod's changes

code-review is a skill published in the GitHub repository ptsilivis/autonomousguy (29 stars, last pushed 1mo ago), licensed MIT. It adds 235 tokens to every session and 4,266 once invoked, about $0.0012 per session on Opus 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-30.

Related

Other skills, from other repositories

automotive-agent-definitions

39 agent definitions for specialized automotive roles: safety engineer, ADAS architect, AUTOSAR expert, BMS engineer, cybersecurity analyst, SOTIF specialist, and more.

pangzhenying2025/hermes-automotive-skills · 41 tokens

automotive-embedded

Expert skill in bootloader focusing on embedded domain applications. Covers 241 topics across embedded domain. Includes 241 skill files covering ASPICE Level 3, AUTOSAR 4.4, ISO 21434, ISO 26262.

pangzhenying2025/hermes-automotive-skills · 54 tokens

edgeone-clawscan

The first security skill to install after setting up OpenClaw — powered by Tencent Zhuque Lab. Works like an antivirus for your AI environment: audits installed skills, scans skills before installation, and performs a full OpenClaw security health check to prevent data leaks and privacy risks. Backed by Tencent Zhuque…

Tencent/AI-Infra-Guard · 236 tokens

edgeone skill scanner

Scan any agent skill for security risks before you install or use it. Powered by Tencent Zhuque Lab A.I.G (AI-Infra-Guard). 100% local static analysis — no file contents or credentials leave your device. Compatible with CodeBuddy, Cursor, Windsurf, Claude Code, OpenClaw and more. Triggers on: 这个 skill 安全吗, skill 安全扫描…

Tencent/AI-Infra-Guard · 148 tokens

feature-contract

Generate a structured implementation contract before making any code changes to FastLED. Defines scope, affected files, API changes, platform impact, risk assessment, and test plan. Use before implementing any feature, bug fix, driver addition, or refactoring.

FastLED/FastLED · 52 tokens

tdd

Guide Test-Driven Development workflow for FastLED. Use when implementing new features or fixing bugs with a test-first approach. Enforces Red-Green-Refactor discipline with FastLED test conventions.

FastLED/FastLED · 42 tokens