claude-dev-suite/claude-dev-suite/cpp-quality
Claude Code and agent skill by claude-dev-suite/claude-dev-suite
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
C++ static analysis and formatting tooling: clang-tidy, clang-format, cppcheck, include-what-you-use (IWYU), and CI integration patterns. USE WHEN: user mentions "clang-tidy", "clang-format", "cppcheck", "iwyu", "include-what-you-use", ".clang-tidy", ".clang-format", "C++ static analysis", "C++ linter" DO NOT USE FOR: SonarQube C++ rules (tool-agnostic), Coverity (commercial), PVS-Studio (commercial)
Install
npx vskill@latest install claude-dev-suite/claude-dev-suite/cpp-qualitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/cpp-quality.
C++ Quality Tooling - Quick Reference
Deep Knowledge: Usemcp__documentation__fetch_docswith technology:cpp-quality.
clang-format
Reformats source per a style file. Runs in milliseconds; safe to wire into pre-commit and editors.
.clang-format:
Run:
Choose a base (LLVM, Google, Mozilla, Chromium, Microsoft) and tweak — don't bikeshed style from scratch.
clang-tidy
Linter + simple refactor tool driven by compile_commands.json (enable with set(CMAKE_EXPORT_COMPILE_COMMANDS ON)).
.clang-tidy:
Run:
High-value check categories
| Category | What it catches | |
|---|---|---|
bugprone-* | Real defect patterns (use-after-move, sizeof on pointer, infinite loop) | |
clang-analyzer-* | Path-sensitive: null deref, leak, UB | |
cppcoreguidelines-* | Per the C++ Core Guidelines (ownership, narrowing, slicing) | |
modernize-* | Suggests modern equivalents (nullptr, auto, make_unique) | |
performance-* | Unnecessary copies, std::move misuse, string concat in loops | |
concurrency-* | Misuse of std::thread, std::condition_variable | |
readability-* | Naming, identifier conventions, redundant code |
Suppressing
Prefer fixing or disabling at config level for whole categories you don't want.
cppcheck (complementary, not a replacement)
Catches different patterns than clang-tidy (less path-sensitive but quicker; flags some uninitialized-member and dangling-reference issues clang-tidy misses).
include-what-you-use (IWYU)
Reduces include bloat → faster builds + fewer accidental dependencies.
Annotate to override:
Compiler warnings (the cheap layer underneath)
Don't skip this in favor of clang-tidy — compiler warnings are free and faster than any external tool.
CI pipeline (GitHub Actions sketch)
Anti-Patterns
| Anti-Pattern | Why It's Bad | Correct Approach | |
|---|---|---|---|
WarningsAsErrors: '*' then // NOLINT everywhere | Hides real issues | Disable check at config level instead | |
Running clang-tidy without compile_commands.json | Wrong include paths, false positives | Always pass -p build/ | |
| Reformatting whole repo in one PR | Murders git blame | One reformat commit, mark in .git-blame-ignore-revs | |
-Wno-error=... to ship faster | Tech debt that never returns | Fix the warning or // NOLINT with reason | |
| Skipping warnings when adopting a third-party header | Future you will pay | Wrap with #pragma GCC diagnostic push/ignored/pop | |
| Tidying generated code | Fights the generator | Exclude with HeaderFilterRegex or path globs |
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
- SKILL.md in the repositoryCheckingskills/quality/cpp-quality/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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
[](https://verified-skill.com/skills/claude-dev-suite/claude-dev-suite/cpp-quality)