c-cpp-dev

c-cpp-dev is a skill for Claude Code from AmethystLuna/embedded-workbench. It costs 61 tokens per session (1,740 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing C and C++ code, especially for 32-bit ARM embedded systems. It covers language settings, headers, memory layout, and implementation structure.

In plain words
What is it for?
Creating or reviewing embedded C/C++ source and headers, designing memory-conscious data structures, and checking code against the project’s compiler and language standard.
Why use it?
It helps avoid common embedded-code problems involving shared declarations, stack use, alignment, compiler settings, and maintainability.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the embedded-workbench plugin — 8 skills, 4 agents, 1 hook shipped together

Good fit Creating or reviewing embedded C/C++ source and headers, designing memory-conscious data structures, and checking code against the project’s compiler and language standard.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amethystluna/embedded-workbench/c-cpp-dev
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.

Any agent
npx skills add AmethystLuna/embedded-workbench --skill c-cpp-dev
Clone the repo
git clone --depth 1 https://github.com/AmethystLuna/embedded-workbench

Made for: Claude Code.

Or install embedded-workbench, the plugin that ships this one along with the rest of its 8 skills, 4 agents, 1 hook.

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 c-cpp-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/c-cpp-dev/github.svg)](https://agentmods.dev/skills/amethystluna/embedded-workbench/c-cpp-dev)
Your own site
<a href="https://agentmods.dev/skills/amethystluna/embedded-workbench/c-cpp-dev"><img src="https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/c-cpp-dev/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 c-cpp-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/amethystluna/embedded-workbench/c-cpp-dev"><img src="https://agentmods.dev/badge/skills/amethystluna/embedded-workbench/c-cpp-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,740 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.01740
Opus 5.5 $0.00024 $0.00696
Sonnet 5.5 $0.00012 $0.00348
Haiku 4.5 $0.00006 $0.00174

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

Security

Grade A, and why

c-cpp-dev 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 11d 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/c-cpp-dev/SKILL.md · 140 lines

How it starts

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

C/C++ Development

Language baseline is project-specific: respect the project's configured language standard, and don't assume a default. Check CLAUDE.md, build-system -std= flags, or compiler configuration. All rules assume 32-bit ARM target unless otherwise noted.

Sections run top-down: structure, then the contract, then implementation, then the target's specifics, then change. Settle the higher level before writing the lower one.

Structure

Structure decides where code lives and what a module may see. Everything below is detail inside those boundaries.

  • The directory tree is the architecture — one directory is one module or one layer, and its files carry that responsibility. A reader should read the layers, and the allowed dependency direction, from the tree alone. If the layout needs a diagram to explain where a file belongs, move the files until it does not.
  • A module holds only its own direct members — it does not hold another layer's members, and it does not reach through them. a.b is a direct member and fine. a.b.c across a module boundary means the boundary leaked: ask the owner to act, or to return the value.
  • Design to the interface, encapsulate behind an object — callers depend on a declared contract, not the representation behind it. In C, that is an opaque struct plus the functions that take it. In C++, an abstract class with no public data. A caller that breaks when a field is renamed was never behind an interface.

Declarations and Interfaces

A header is a module's contract. Keep it small, complete, and free of representation.

  • When a header is shared between C and C++ translation units, never define variables in the header — not even with static. Use extern in the header and exactly one definition in a single .c file.
  • Place Doxygen comments in header files. Keep implementation files focused on behavior.
  • Avoid inline functions in header files. Keep function definitions in source files so the interface stays small.
  • In C, lightweight macros or helper wrappers are acceptable if simple, local, and clearly named.

Read the full file on GitHub · 140 lines

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. 11d ago Changed · +18 lines f98795b8abea
  2. 3mo ago First seen · 122 lines · 61 tokens per session scan A 9f29e36d8c3d

Subscribe to this mod's changes

c-cpp-dev is a skill published in the GitHub repository AmethystLuna/embedded-workbench (36 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 1,740 once invoked, about $0.0002 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

c-cpp-dev compared with skills from other repositories

c-cpp-dev next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
c-cpp-devAmethystLuna/embedded-workbenchSkill363d agoMITA61Claude Code
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.2ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.2ktodayApache-2.0A206Claude Code, Codex
doca-argpNVIDIA/skillsSkill4.2ktodayApache-2.0A277Claude Code
cpu-kernelshuggingface/kernelsSkill796todayApache-2.0A89Claude Code
cpp-prormyndharis/antigravity-skillsSkill2.2k23d agoMITA49Claude Code, Codex