13eholder/modern-cpp-skills/m15-anti-pattern

Claude Code and agent skill by 13eholder/modern-cpp-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Common C++ Anti-Patterns. Triggers: global variables, new/delete, C-style cast, macros, void*.

Install

npx vskill@latest install 13eholder/modern-cpp-skills/m15-anti-pattern

SKILL.md

The same SKILL.md was published earlier as 13eholder/modern-cpp-skills/m15-anti-pattern.

C++ Anti-Patterns

Core Question

Is this C or C++?

  • C-Style: malloc, free, (int)x, void*.
  • C++ Style: std::vector, std::unique_ptr, static_cast, templates.

Error → Design Question

IssueDesign Question
Hard to refactorAre you using Macros?
LeakAre you using new?
UBAre you using reinterpret_cast?

Thinking Prompt

  1. Can I delete this `new`?
  • Use make_unique.
  1. Can I remove this macro?
  • Use constexpr or templates.

Quick Reference

Anti-PatternModern Fix
`new T``make_unique<T>`
`T*` ownership`unique_ptr<T>`
`(T)ptr``static_cast<T>(ptr)`
`#define``constexpr`

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/13eholder/modern-cpp-skills/m15-anti-pattern/badge)](https://verified-skill.com/skills/13eholder/modern-cpp-skills/m15-anti-pattern)

Something wrong with this skill or its page? Tell us.