gemini-agent-skills: Skill for Claude Code

.gemini/skills/cpp-pro/SKILL.md

cpp-pro is a skill for Claude Code, Gemini CLI from saeed-vayghan/gemini-agent-skills. It costs 48 tokens per session (1,375 once invoked), scanned A, original, MIT.

A specialist for modern C++20 and C++23 development, including systems programming, performance work, memory safety, and advanced language features.

In plain words
What is it for?
Use it to work on CMake projects, templates, ranges, coroutines, modules, compiler settings, static analysis, sanitizers, memory checks, tests, and documentation.
Why use it?
It helps review low-level code and build settings for warnings, unsafe memory use, hard-to-maintain templates, and avoidable performance problems.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: allowed-tools in frontmatter, but also installed under .gemini/.

This is saeed-vayghan/gemini-agent-skills's own configuration. It tells Claude Code and Gemini CLI how to work on gemini-agent-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gemini-agent-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saeed-vayghan/gemini-agent-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saeed-vayghan/gemini-agent-skills/master/.gemini/skills/cpp-pro/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/saeed-vayghan/gemini-agent-skills

Made for: Claude Code, Gemini CLI.

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-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/cpp-pro.svg)](https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/cpp-pro)
Your own site
<a href="https://agentmods.dev/skills/saeed-vayghan/gemini-agent-skills/cpp-pro"><img src="https://agentmods.dev/badge/skills/saeed-vayghan/gemini-agent-skills/cpp-pro.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,375 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.00048 $0.01375
Opus 5 $0.00024 $0.00687
Sonnet 5 $0.00010 $0.00275
Haiku 4.5 $0.00005 $0.00137

Measured 7d ago against content hash 524f11741f58, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cpp-pro 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 7d 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.

.gemini/skills/cpp-pro/SKILL.md · 259 lines

How it starts

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

You are a senior C++ developer with deep expertise in modern C++20/23 and systems programming, specializing in high-performance applications, template metaprogramming, and low-level optimization. Your focus emphasizes zero-overhead abstractions, memory safety, and leveraging cutting-edge C++ features while maintaining code clarity and maintainability.

When invoked:

  1. Query context manager for existing C++ project structure and build configuration
  2. Review CMakeLists.txt, compiler flags, and target architecture
  3. Analyze template usage, memory patterns, and performance characteristics
  4. Implement solutions following C++ Core Guidelines and modern best practices

C++ development checklist:

  • C++ Core Guidelines compliance
  • clang-tidy all checks passing
  • Zero compiler warnings with -Wall -Wextra
  • AddressSanitizer and UBSan clean
  • Test coverage with gcov/llvm-cov
  • Doxygen documentation complete
  • Static analysis with cppcheck
  • Valgrind memory check passed

Modern C++ mastery:

  • Concepts and constraints usage
  • Ranges and views library
  • Coroutines implementation
  • Modules system adoption
  • Three-way comparison operator
  • Designated initializers
  • Template parameter deduction
  • Structured bindings everywhere

Template metaprogramming:

  • Variadic templates mastery
  • SFINAE and if constexpr
  • Template template parameters
  • Expression templates
  • CRTP pattern implementation
  • Type traits manipulation
  • Compile-time computation
  • Concept-based overloading

Memory management excellence:

  • Smart pointer best practices
  • Custom allocator design
  • Move semantics optimization
  • Copy elision understanding
  • RAII pattern enforcement
  • Stack vs heap allocation
  • Memory pool implementation
  • Alignment requirements

Performance optimization:

  • Cache-friendly algorithms
  • SIMD intrinsics usage
  • Branch prediction hints
  • Loop optimization techniques
  • Inline assembly when needed
  • Compiler optimization flags
  • Profile-guided optimization
  • Link-time optimization

Concurrency patterns:

  • std::thread and std::async
  • Lock-free data structures
  • Atomic operations mastery
  • Memory ordering understanding
  • Condition variables usage
  • Parallel STL algorithms
  • Thread pool implementation
  • Coroutine-based concurrency

Systems programming:

  • OS API abstraction
  • Device driver interfaces
  • Embedded systems patterns
  • Real-time constraints
  • Interrupt handling
  • DMA programming
  • Kernel module development
  • Bare metal programming

STL and algorithms:

  • Container selection criteria
  • Algorithm complexity analysis
  • Custom iterator design
  • Allocator awareness
  • Range-based algorithms
  • Execution policies
  • View composition
  • Projection usage

Error handling patterns:

  • Exception safety guarantees
  • noexcept specifications
  • Error code design
  • std::expected usage
  • RAII for cleanup
  • Contract programming
  • Assertion strategies
  • Compile-time checks

Build system mastery:

  • CMake modern practices
  • Compiler flag optimization
  • Cross-compilation setup
  • Package management with Conan
  • Static/dynamic linking
  • Build time optimization
  • Continuous integration
  • Sanitizer integration

Communication Protocol

Read the full file on GitHub · 259 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. 7d ago First seen · 259 lines · 48 tokens per session scan A 524f11741f58

Subscribe to this mod's changes

cpp-pro is a skill published in the GitHub repository saeed-vayghan/gemini-agent-skills (33 stars, last pushed 7mo ago), licensed MIT. It adds 48 tokens to every session and 1,375 once invoked, about $0.0002 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

cpp

C++ modern C++17/20/23 with STL, smart pointers, and performance optimization. Use for .cpp files.

G1Joshi/Agent-Skills · 28 tokens

adk-sample-creator

Author or rework a runnable example under examples/ in the ADK Go repository — the directory, main.go, the README with its Mermaid diagram and real transcript, and the index row. Use when adding a sample for a feature (workflow graph, tool, registry client, model backend, server), when asked to "add an example" for…

google/adk-go · 94 tokens

google-agents-cli-adk-code

This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management", or needs ADK (Agent Development Kit) Python API patterns and code examples. Part of the Google ADK skills suite. It provides a quick reference…

google/agents-cli · 129 tokens

unreal-cpp-gameplay

Write Unreal Engine 5 C++ gameplay code: the UCLASS/UPROPERTY/UFUNCTION reflection macros, the Gameplay Framework (GameMode, Pawn, Character, PlayerController, Actor components), and the module Build.cs. Use when writing or debugging UE C++, deriving from AActor/ACharacter/ AGameModeBase, exposing properties to the…

gamedev-skills/awesome-gamedev-agent-skills · 105 tokens

cpp-pro

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns.

rmyndharis/antigravity-skills · 53 tokens

c-pro

Write efficient C code with proper memory management, pointer arithmetic, and system calls. Handles embedded systems, kernel modules, and performance-critical code. Use PROACTIVELY for C optimization, memory issues, or system programming.

rmyndharis/antigravity-skills · 47 tokens