| name | reviewing-cpp |
| description | Reviews C++ desktop code for memory safety, framework anti-patterns, build system issues, and thread safety. Use when reviewing C++ GUI code quality or when the user asks for code review. |
| compatibility | Designed for Claude Code |
| metadata | {"allowed-tools":"Read, Grep, Glob","argument-hint":["file-or-directory"],"stability":"stable"} |
Review Context
- Changed files: !
git diff --name-only HEAD~1 2>/dev/null || echo "No recent commits"
- Staged files: !
git diff --staged --name-only
C++ Desktop Code Review
Scope: $ARGUMENTS
Delivers focused, streamlined C++ desktop code reviews matching stated task
requirements exactly. No over-analysis.
Workflow
- Read task requirements to understand expected scope
- Detect framework (wxWidgets / GTK3 / Qt) from includes and CMakeLists.txt
- Match review depth to task complexity (single file vs multi-module)
- Validate requirements — does implementation match task scope exactly?
- Issue focused feedback with specific file paths and line numbers
Review Strategy
Simple Tasks (single file/widget): Memory safety, framework correctness,
requirements match
Complex Tasks (multi-module): Above plus architecture, ownership graph,
event flow, thread safety
Always: Check CMakeLists.txt, check for raw pointer leaks
Review Checklist
Memory Safety:
Framework Anti-Patterns:
Build System (CMakeLists.txt):
Thread Safety:
Code Quality:
Output Standards
Simple Tasks: CRITICAL issues only, clear approval when requirements met
Complex Tasks: CRITICAL/WARNINGS/SUGGESTIONS with specific fixes
All reviews: Concise, actionable, no unnecessary complexity analysis