cpp-development

cpp-development is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 24 tokens per session (564 once invoked), scanned A, original, Apache-2.0.

A set of standards for modern C++ development, including automatic resource cleanup, safer types, and GoogleTest-based verification. C++ is a programming language often used for performance-sensitive software.

In plain words
What is it for?
Use it when writing or reviewing C++17 or newer code, configuring CMake tests, and checking programs with address and undefined-behavior sanitizers.
Why use it?
It reduces memory leaks, invalid resource ownership, unsafe conversions, and bugs that may only appear during execution.

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/jxoesneon/ciel/cpp-development
Any agent
npx skills add jxoesneon/Ciel --skill cpp-development
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/cpp-development.svg)](https://agentmods.dev/skills/jxoesneon/ciel/cpp-development)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/cpp-development"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/cpp-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 564 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.00024 $0.00564
Opus 5 $0.00012 $0.00282
Sonnet 5 $0.00005 $0.00113
Haiku 4.5 $0.00002 $0.00056

Measured today against content hash 5e20a2ad2d97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cpp-development 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 today.

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/cpp-development/SKILL.md · 50 lines

What it actually says

CIEL ADAPTATION: C++ Development (Core Guidelines)

This skill formalizes the use of modern C++ (C++17/20+). it prioritizes resource safety (RAII) and the C++ Core Guidelines.

The Integrity Layer (RAII)

  1. No Raw Ownership: Never transfer ownership via raw pointers (T*). Use std::unique_ptr or std::shared_ptr.
  2. Resource Binding: Bind all resource lifetimes (Files, Locks, Sockets) to object lifetimes via RAII classes.
  3. Smart Allocation: Avoid new and delete. Use std::make_unique and std::make_shared.

Architectural Standards

  • Immutability: Declaring objects const or constexpr by default. Member functions must be const unless they mutate state.
  • Type Safety: Use enum class over plain enum. Prohibit C-style casts; use static_cast or dynamic_cast.
  • Interfaces: Pass "in" parameters by value for cheap types and const& for expensive types.

TDD & Verification

  • Framework: GoogleTest (gtest) + GoogleMock (gmock).
  • CMake/CTest: Use gtest_discover_tests() for stable discovery. Run with --output-on-failure.
  • Sanitizers: ALWAYS run tests with AddressSanitizer (ASan) and UndefinedBehaviorSanitizer (UBSan) in CI.

Anti-Patterns

  • Naked New: Calling new without immediately wrapping it in a smart pointer or RAII class.
  • Global Variables: Using non-const globals (violates I.2).
  • Implicit Conversions: Allowing narrowing/lossy arithmetic conversions without explicit casting.
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. today First seen · 50 lines · 24 tokens per session scan A 5e20a2ad2d97

Subscribe to this mod's changes

cpp-development is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 24 tokens to every session and 564 once invoked, about $0.0001 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-09-03.