Skip to content
Back to skills

Cpp Patterns

ASecurity

Modern C++ (17/20) patterns: RAII, smart pointers, value semantics, ranges, error handling and build hygiene with CMake.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsc++

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill cpp-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cpp Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cpp Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-cpp-patterns/badge)](https://www.skillsdirectory.com/skills/karthikrshet-cpp-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cpp-patterns
description: "Modern C++ (17/20) patterns: RAII, smart pointers, value semantics, ranges, error handling and build hygiene with CMake."
tags: [cpp]
---

# Cpp Patterns

## When to use

- C++ code

## Procedure

1. Own resources with RAII and unique_ptr
2. Prefer value types and move semantics
3. Use std::span/string_view for non-owning views
4. Handle errors with expected/exceptions consistently
5. Enable warnings, sanitizers and clang-tidy in CMake presets

## Checklist

- [ ] No raw new/delete
- [ ] Warnings as errors in CI

## Anti-patterns

- Manual memory management
- Macros where constexpr works

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.