Execute an approved implementation plan or dependency-ordered ticket set in CI-green slices.
Review a committed diff and any staged, unstaged, or untracked work along separate Standards and Spec axes. Use for a focused review since a commit, branch, tag, or merge-base. Before a commit, pull request, merge, or handoff, also use the repository's…
Enforce modern C++20 style in this repository's C++ code: prefer std types, RAII, ranges, concepts, structured bindings; ban C-style idioms (raw new/delete, C arrays, NULL, sprintf, K&R output params, plain enum, typedef). Use when writing or editing any .h /…
Enforce clear abstraction and good OOP for C++ code in this repository: reject one-shot helpers, prefer composition over inheritance, separate interface from implementation, apply the right design pattern (Strategy, Factory, Observer, Adapter, Builder, Pimpl,…
Detect and fix performance smells in C++ code in this repository: O(n^2) loops, unnecessary copies and allocations (outside hot paths, redundant copies of small trivial types are permitted for clarity), std::map vs std::unordered_map, virtual calls and…
Run and interpret the static-analysis tool stack for this repository's C++ code: clang-format, clang-tidy, clang static analyzer (scan-build), cppcheck, include-what-you-use (IWYU), and the sanitizer-instrumented dev build. Use when the user asks about static…
Make C++ code in this repository thread-safe and leak-free by default: enforce RAII for every resource, prefer immutable cross-thread snapshots over shared mutable state, use std::unique_ptr / std::jthread / std::scoped_lock / std::stop_token / std::atomic…
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.