c-cpp-knowledge-patch

c-cpp-knowledge-patch is a skill for Claude Code from Nevaberry/nevaberry-plugins. It costs 12 tokens per session (2,379 once invoked), scanned A, original, MIT.

A reference guide for C and C++, two programming languages commonly used for system software. It covers compiler versions, language standards, libraries, modules, sanitizers, diagnostics, and binary compatibility.

In plain words
What is it for?
Use it when upgrading Clang or GCC, changing language modes, diagnosing compiler regressions, configuring sanitizers or analysis tools, or reviewing ABI boundaries.
Why use it?
It helps prevent build and compatibility problems caused by mismatched compilers, language settings, libraries, or binary interfaces.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the knowledge-patch plugin — 57 skills, 1 hook shipped together

Good fit Use it when upgrading Clang or GCC, changing language modes, diagnosing compiler regressions, configuring sanitizers or analysis tools, or reviewing ABI boundaries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nevaberry/nevaberry-plugins/c-cpp-knowledge-patch
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 Nevaberry/nevaberry-plugins --skill c-cpp-knowledge-patch
Clone the repo
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins

Made for: Claude Code.

Or install knowledge-patch, the plugin that ships this one along with the rest of its 57 skills, 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-knowledge-patch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nevaberry/nevaberry-plugins/c-cpp-knowledge-patch"><img src="https://agentmods.dev/badge/skills/nevaberry/nevaberry-plugins/c-cpp-knowledge-patch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,379 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 61
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
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.00012 $0.02379
Opus 5.5 $0.00005 $0.00952
Sonnet 5.5 $0.00002 $0.00476
Haiku 4.5 $0.00001 $0.00238

Measured 1mo ago against content hash 3c58039ee72a, 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-knowledge-patch 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 1mo 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.

plugins/knowledge-patch/patches-claude/c-cpp-knowledge-patch/SKILL.md · 218 lines

How it starts

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

C and C++ compatibility guidance

Use this skill when upgrading Clang, GCC, libclang, libstdc++, or C/C++ language modes; diagnosing a compiler-version regression; changing modules, sanitizers, static analysis, formatting, offloading, or target options; or reviewing an ABI boundary built with different toolchain versions.

Treat the project as the source of truth. Inspect its compiler constraints, dialect flags, target triples, standard-library selection, warning policy, sanitizer configuration, module pipeline, and ABI consumers before applying a compatibility switch. Prefer a source migration or a consistent rebuild over leaving a legacy switch in place indefinitely.

Topic index

Reference Read when working on
C language and standards C23/C2y modes, C compatibility, declarations, initialization, and conformance gaps
C++ language and modules C++20/23/26/29 features, constexpr, templates, modules, coroutines, and dialect defaults
Diagnostics and tooling warnings, machine-readable diagnostics, clang-format, libclang, AST matchers, plugins, and the Static Analyzer
Libraries, builtins, and attributes libstdc++, builtins, annotations, format checking, and allocation contracts
Migration and ABI mixed compiler objects, mangling, record layout, removed compatibility paths, and library ABI transitions
Optimization, debugging, and sanitizers aliasing, overflow, floating point, LTO, debug information, profiles, and sanitizer controls
Targets, offloading, and OpenMP CPU/OS targets, CUDA/HIP, OpenACC, WebAssembly, OpenMP, and architecture flags

Upgrade triage: breaking changes first

Pin the intended language dialect

Read the full file on GitHub · 218 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. 1mo ago First seen · 218 lines · 12 tokens per session scan A 3c58039ee72a

Subscribe to this mod's changes

c-cpp-knowledge-patch is a skill published in the GitHub repository Nevaberry/nevaberry-plugins (23 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 2,379 once invoked, about $0.0000 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-30.

Related

Other skills, from other repositories

bun-ffi

This skill should be used when the user asks about "bun:ffi", "foreign function interface", "calling C from Bun", "native libraries", "dlopen", "shared libraries", "calling native code", or integrating C/C++ libraries with Bun.

secondsky/claude-skills · 56 tokens

agent-cpp-expert

Specialist subagent: C and C++ development, modern C++ (C++17/20/23), CMake, systems programming, and memory management specialist. Use when writing C/C++ code, debugging memory issues, or building systems-level software. Trigger phrases: C++, C language, CMake, modern C++, systems programming, memory management…

travisjneuman/.claude · 88 tokens

cpp-systems

Modern C++ patterns: RAII and ownership, rule of zero/five, exceptions and error handling, API and ABI boundaries, templates, and CMake tooling. Use when writing, reviewing, refactoring, or debugging C++, working with smart pointers, move semantics, memory leaks, template errors, or gtest. For plain C, see…

iliaal/ai-skills · 78 tokens

ia-c-systems

C patterns for systems code, libraries, and native extensions: module layout, function decomposition, status-enum errors, memory safety, undefined behavior, and performance measurement. Use when writing, reviewing, refactoring, or debugging C, working with malloc lifetimes, buffer overflows, sanitizers, or Valgrind…

iliaal/whetstone · 84 tokens

dart-flutter-ffi-systems-engineering

Design, implement, review, debug, optimize, test, package, and migrate production Dart/Flutter native integrations using dart:ffi, package:ffi, ffigen, @Native, DynamicLibrary, build hooks/code assets, native callbacks, and C/C++ libraries. Use whenever a task involves raw pointers, structs/unions, native memory…

ariaramin/flutter-skills · 136 tokens

analyzing-cpp-codebase

Analyzes C++ desktop codebase architecture, dependency graphs, framework detection, and migration assessment. Use when exploring an unfamiliar C++ project or assessing upgrade paths.

qte77/claude-code-plugins · 40 tokens