/everything-claude-code:cpp-reviewfrom everything-claude-code
Reviews C++ code changes for memory safety, modern C++ idioms, concurrency, and security. Runs static analysis (clang-tidy, cppcheck) and generates a severity-categorized report.
Ships in everything-claude-code. Installing the plugin adds it to Claude Code.
This command invokes the cpp-reviewer agent for comprehensive C++-specific code review.
.cpp, .hpp, .cc, .h files via git diffclang-tidy and cppcheckUse /cpp-review when:
new/delete without RAIIsystem()std::lock_guard / std::scoped_lockstatic_cast/dynamic_castconst correctnessconst&)reserve() on known-size containersusing namespace std; in headers[[nodiscard]] on important return values# Static analysis
clang-tidy --checks='*,-llvmlibc-*' src/*.cpp -- -std=c++17
# Additional analysis
cppcheck --enable=all --suppress=missingIncludeSystem src/
# Build with warnings
cmake --build build -- -Wall -Wextra -Wpedantic
User: /cpp-review
Agent:
# C++ Code Review Report
## Files Reviewed
- src/handler/user.cpp (modified)
- src/service/auth.cpp (modified)
## Static Analysis Results
✓ clang-tidy: 2 warnings
✓ cppcheck: No issues
## Issues Found
[CRITICAL] Memory Leak
File: src/service/auth.cpp:45
Issue: Raw `new` without matching `delete`
```cpp
auto* session = new Session(userId); // Memory leak!
cache[userId] = session;
Fix: Use std::unique_ptr
auto session = std::make_unique<Session>(userId);
cache[userId] = std::move(session);
[HIGH] Missing const Reference File: src/handler/user.cpp:28 Issue: Large object passed by value
void processUser(User user) { // Unnecessary copy
Fix: Pass by const reference
void processUser(const User& user) {
Recommendation: ❌ Block merge until CRITICAL issue is fixed
## Approval Criteria
| Status | Condition |
|--------|-----------|
| ✅ Approve | No CRITICAL or HIGH issues |
| ⚠️ Warning | Only MEDIUM issues (merge with caution) |
| ❌ Block | CRITICAL or HIGH issues found |
## Integration with Other Commands
- Use `/cpp-test` first to ensure tests pass
- Use `/cpp-build` if build errors occur
- Use `/cpp-review` before committing
- Use `/code-review` for non-C++ specific concerns
## Related
- Agent: `agents/cpp-reviewer.md`
- Skills: `skills/cpp-coding-standards/`, `skills/cpp-testing/`
What the command file sets; muted values are Claude Code's defaults
code-review, memory-safety, static-analysis, modern-cpp, concurrency, security
7-day visitors to each command page
npx claudepluginhub ibytechaos/claude --plugin everything-claude-code60 commands in this plugin
/asideAside CommandAnswer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering./build-fixBuild and FixIncrementally fix build and type errors with minimal, safe changes./checkpointCheckpoint CommandCreate or verify a checkpoint in your workflow./clawClaw CommandStart NanoClaw v2 — ECC's persistent, zero-dependency REPL with model routing, skill hot-load, branching, compaction, export, and metrics./code-reviewCode ReviewComprehensive security and quality review of uncommitted changes:/context-budgetContext Budget OptimizerAnalyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities. Helps reduce token overhead and avoid performance warnings.11 plugins ship this exact command · first indexed Mar 16, 2026
Showing 6 of 11 plugins, one per repository first
Other plugins' commands for the same job