modern-cpp
Modern C++ best practices (C++20/23/26). Use when writing C++ code, creating new C++ projects, or modernizing legacy C++ patterns.
Imported description, not reviewed yet
This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.
Download
Install
Plugins are installed from a plugin marketplace in Claude Code, not by copying files. Download the package to read its content and its license.
Instructions
modern-cpp
Modern C++ best practices plugin for Claude Code, guiding AI-assisted development toward C++20/23/26 idioms with a security emphasis from Trail of Bits.
When to Use
- Writing new C++ code (functions, classes, libraries)
- Modernizing legacy C++ patterns (pre-C++20)
- Working on security-critical C++ code
- Reviewing C++ code for modern idiom adoption
- Choosing between legacy and modern approaches to a problem
What It Covers
Language Features (Tiered by Usability)
| Tier | Standard | What |
|---|---|---|
| Use Today | C++20 | Concepts, ranges, std::span, std::format, coroutines, <=> |
| Use Today | C++23 | std::expected, std::print, deducing this, std::flat_map |
| Deploy Now | Any | Compiler hardening flags, sanitizers, hardened libc++ |
| Plan For | C++26 | Reflection (eliminates serialization boilerplate and code generators) |
| Watch | C++26 | Contracts, std::execution (promising but needs compiler maturity) |
Security
- Compiler hardening flags (GCC + Clang, per OpenSSF guidelines)
- Hardened libc++ modes (bounds-checking with ~0.3% overhead)
- Sanitizer setup (ASan, UBSan, TSan, MSan)
- Safe idioms organized by vulnerability class (memory, type, integer, concurrency)
Anti-Patterns
30+ legacy-to-modern pattern replacements with rationale, covering memory management, type safety, error handling, concurrency, and metaprogramming.
Installation
/plugin marketplace add trailofbits/skills
/plugin install modern-cpp
Files
- folder.claude-plugin338 B
- plugin.json338 B
- folderskills51 KB
- foldermodern-cpp51 KB
- folderreferences42 KB
- anti-patterns.md5.5 KB
- compiler-hardening.md7.3 KB
- cpp20-features.md7 KB
- cpp23-features.md7 KB
- cpp26-features.md7.5 KB
- safe-idioms.md8.1 KB
- SKILL.md8.5 KB
- LICENSE20 KB
- README.md1.5 KB
Comments (0)
No comments yet. Be the first.
Sign in to comment. Commenting comes at level 1 (Member).