m15-anti-pattern
CommunityEliminate common C++ anti-patterns
Software Engineering#anti-patterns#refactoring#code-quality#c++#best-practices#memory-management#modern-cpp
Author13eholder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill identifies unsafe and outdated C++ patterns that cause memory leaks, undefined behavior, and brittle code, and it guides developers to safer, modern alternatives to improve maintainability and correctness.
Core Features & Use Cases
- Detection and Explanation: Points out instances of raw new/delete, owning raw pointers, C-style casts, void pointer usage, and macros and explains the risks they introduce.
- Concrete Modern Fixes: Suggests practical replacements such as smart pointers, standard containers, static_cast, constexpr, and template-based solutions to make code safer and easier to refactor.
- Use Case: Apply during code reviews or refactoring sprints to convert legacy modules to modern C++ idioms and remove global state to improve testability and lifetime management.
Quick Start
Identify and suggest safe, compile-preserving replacements for occurrences of new, delete, C-style casts, macros, and global variables in the provided C++ files.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: m15-anti-pattern Download link: https://github.com/13eholder/Modern-Cpp-Skills/archive/main.zip#m15-anti-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.