exec-cpp

exec-cpp is a skill for Claude Code from anhnguyen0905/codex-mcp. It costs 42 tokens per session (405 once invoked), scanned A, original, MIT.

A reference for writing C++ code with safer resource handling, memory use, error handling, and consistent modern language practices. RAII means resources such as memory, files, and locks are released automatically when they are no longer needed.

In plain words
What is it for?
Use it when developing or reviewing C++ projects to guide ownership, smart-pointer use, const-correctness, standard-library algorithms, error conventions, formatting, and the C++ version supported by the build.
Why use it?
It reduces common C++ problems such as memory leaks, dangling references, buffer overflows, ignored errors, and inconsistent use of language features.

Skill for Claude Code

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

Part of the codex-flow plugin — 76 skills, 5 commands, 1 MCP server shipped together

Good fit Use it when developing or reviewing C++ projects to guide ownership, smart-pointer use, const-correctness, standard-library algorithms, error conventions, formatting, and the C++ version supported by the build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anhnguyen0905/codex-mcp/exec-cpp
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 anhnguyen0905/codex-mcp --skill exec-cpp
Clone the repo
git clone --depth 1 https://github.com/anhnguyen0905/codex-mcp

Made for: Claude Code.

Or install codex-flow, the plugin that ships this one along with the rest of its 76 skills, 5 commands, 1 MCP server.

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 exec-cpp

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/anhnguyen0905/codex-mcp/exec-cpp"><img src="https://agentmods.dev/badge/skills/anhnguyen0905/codex-mcp/exec-cpp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 405 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.00042 $0.00405
Opus 5.5 $0.00017 $0.00162
Sonnet 5.5 $0.00008 $0.00081
Haiku 4.5 $0.00004 $0.00040

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

Security

Grade A, and why

exec-cpp 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 3mo 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/exec-cpp/SKILL.md · 28 lines

What it actually says

C++ Idioms (embed when project is C/C++)

C++ standards:
- RAII for every resource: memory, files, locks, sockets — no raw new/delete or manual free in
  application code; use smart pointers (unique_ptr by default, shared_ptr only for shared ownership,
  weak_ptr to break cycles) and standard containers. No owning raw pointers.
- Memory safety: no dangling references/iterators, no buffer overruns; prefer std::span/std::string_view
  for non-owning views (mind their lifetime); bounds-checked access where input-driven.
- const-correctness: mark methods/params/locals const wherever possible; pass by const& for non-trivial
  types, by value for cheap ones; use constexpr where evaluable at compile time.
- Errors: exceptions with specific types OR the project's error convention (std::expected / error
  codes) — follow whichever the codebase uses consistently; never ignore a returned error code.
- Prefer standard algorithms (<algorithm>, ranges) over hand-written loops; use auto to avoid
  redundant type spelling; enum class over plain enum; nullptr not NULL; braces for init.
- Follow the C++ standard version the build targets; match the repo's .clang-format and layout;
  respect the build system (CMake/Bazel) — declare deps and targets the project's way.
- Rule of zero: let RAII members manage lifetime; only declare special members when you must, then
  declare all five. Mark overrides override, single-arg ctors explicit.
- Tests: the repo's framework (GoogleTest/Catch2/doctest); arrange-act-assert; test behavior; match
  existing test target structure.
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. 3mo ago First seen · 28 lines · 42 tokens per session scan A 76dc5b85d58b

Subscribe to this mod's changes

exec-cpp is a skill published in the GitHub repository anhnguyen0905/codex-mcp (4 stars, last pushed 8d ago), licensed MIT. It adds 42 tokens to every session and 405 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

exec-cpp compared with skills from other repositories

exec-cpp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
exec-cppanhnguyen0905/codex-mcpSkill48d agoMITA42Claude Code
ia-c-systemsiliaal/whetstoneSkill37todayMITA84Claude Code
project-setupphotostructure/coding-skillsSkill518d agoMITA170Claude Code, Codex
clean-code-cppCassetteTapeCrackle/claude-startersSkill1yesterdayMITA42Claude Code
clean-code-cCassetteTapeCrackle/claude-startersSkill1yesterdayMITA34Claude Code
esp32-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA193Claude Code
ia-cpp-systemsiliaal/whetstoneSkill37todayMITA80Claude Code