SeekDB Code Review
oceanbase/seekdb
Reviews seekdb pull requests and diffs for real defects in correctness, resources, concurrency, security and tests, reporting only Blocker or Major findings.
A skill your agent uses when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based…
$ npx skills add ericrisco/rsc-harness --skill cpp -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ericrisco/rsc-harness cpp --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cpp .claude/skills/cpp && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .claude/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ericrisco/rsc-harness/tree/main/skills/cppType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ericrisco/rsc-harness --skill cpp -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ericrisco/rsc-harness cpp --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/cpp .agents/skills/cpp && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .agents/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill cpp -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ericrisco/rsc-harness cpp --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/cpp .cursor/skills/cpp && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .cursor/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ericrisco/rsc-harness.git --path skills/cpp--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ericrisco/rsc-harness --skill cpp -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ericrisco/rsc-harness cpp --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/cpp .gemini/skills/cpp && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .gemini/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ericrisco/rsc-harness cppInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ericrisco/rsc-harness --skill cpp -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/cpp .github/skills/cpp && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .github/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill cpp -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ericrisco/rsc-harness cpp --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/cpp .opencode/skills/cpp && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cpp" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/cpp into .opencode/skills/cpp/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cpp", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cppA skill your agent uses when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based…
Cpp is an agent skill from ericrisco/rsc-harness. Use when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based CMake with FetchContent, and killing undefined behavior with ASan/UBSan/TSan plus clang-tidy. NOT borrow-checker / Result-Option / cargo memory safety (that is rust).
Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `evals/README.md`, `evals/cases.yaml` and `references/cmake.md`).
It sits in Development. It works with C++ and Rust. The repository describes itself as: Your agent invents things because it has no memory, and can't touch your database because it has no arms. rsc is the meta-harness that gives it both, plus the trade to know the… The licence is MIT.
10 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 92fde8f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
cmakeFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cpp loads about 4k tokens when it runs, and up to ~8k if it reads all its reference files. Until then it costs about 87 tokens; SKILL.md has 1,440 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from ericrisco/rsc-harness at commit 92fde8f, republished under its MIT licence (© ericrisco). 1,440 words, ~3,956 tokens.
.claude/skills/cpp/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.Write, review, modernize, build, and debug C++ the way the C++ Core Guidelines intend: RAII for every resource, ownership made explicit through smart pointers and values, no undefined behavior by construction, and a target-based CMake build proven clean under sanitizers.
Targets C++20/23 for production today. C++23 is ISO/IEC 14882:2024; WG21 froze C++26's technical content on 2026-03-28 (ISO publication follows) — adopt C++26 features only behind confirmed compiler support. Compiler matrix:
| Compiler | C++23 | C++26 | Flag |
|---|---|---|---|
| GCC | since 11 | since 14 (GCC 16.1 covers most of C++26) | -std=c++23 / -std=c++26 |
| Clang | 13–18 progressively | in progress (Clang 23 dev) | -std=c++23 / -std=c++2c |
| MSVC | latest | partial | /std:c++23 / /std:c++latest |
Delegate: borrow-checker, Result/Option, cargo, ownership-via-compiler ->
rust — C++ buys safety with discipline (RAII + smart pointers +
sanitizers); do not conflate the mechanisms. Language-agnostic threat modeling, authz,
OWASP-class review -> secure-coding; the C++-specific
memory/UB controls (bounds, lifetime, integer overflow, format-string, sanitizers) stay
here. Containerizing and shipping the binary -> deployment;
this skill stops at the CMake build + a sanitizer-CI note.
Apply these on every C++ edit:
vector, string,
unique_ptr); write no destructor/copy/move at all. Why: hand-written special members are the
#1 source of leaks and double-frees.make_unique/make_shared, never new. So no naked owning pointer ever exists.span / string_view / const T&. Pass a view, not a copy or an owner, for
read access. Why: zero-copy, and the callee provably can't free what it doesn't own.const and constexpr by default. Why: the compiler enforces what you don't mutate and
moves work off the hot path.-fsanitize=address,undefined
with -Werror.target_link_libraries / target_compile_features, never
directory-level include_directories/link_libraries. Why: directory commands leak flags
globally and break composition.Pick the type from the need, not from habit:
| Need | Use |
|---|---|
| Exclusive owner, one place frees it | std::unique_ptr<T> |
| Genuinely shared lifetime (multiple owners, last one frees) | std::shared_ptr<T> |
Observe / break a shared_ptr cycle, no ownership | std::weak_ptr<T> (.lock() to use) |
| Read-only borrow of contiguous range / string | std::span<const T> / std::string_view |
| Borrow a single object, non-owning | const T& / T& / T* (never owning) |
| Small, copyable, value-like | the value itself — no heap |
Default to unique_ptr; only escalate to shared_ptr when ownership is actually shared, and
prove the shared case isn't a disguised single owner first — shared_ptr is not "the safe default."
// Bad: naked owning pointer; leaks on the throw, double-frees if you copy the handle.
Widget* w = new Widget(cfg);
configure(w); // if this throws, w leaks
delete w;
// Good: ownership is the type; freed exactly once, exception-safe, no delete to forget.
auto w = std::make_unique<Widget>(cfg);
configure(*w);// Bad: parent <-> child shared_ptr cycle -> neither refcount hits zero -> leak forever.
struct Node { std::shared_ptr<Node> parent, child; };
// Good: child owns down, parent observes up. Cycle broken; lock() before use.
struct Node {
std::shared_ptr<Node> child; // owns
std::weak_ptr<Node> parent; // observes
};
if (auto p = node.parent.lock()) { /* p is a valid shared_ptr here */ }When an object must hand out a shared_ptr to itself, derive from
std::enable_shared_from_this<T> and call shared_from_this() — never wrap this in a fresh
shared_ptr (that creates a second, independent refcount and a guaranteed double-free).
Deeper ownership/move reasoning -> references/move-and-templates.md.
Tie every resource — heap memory, file, socket, mutex, OS handle — to an object's lifetime; the
destructor releases it. Why: cleanup then happens on every exit path (return, exception, break)
for free, with no GC and no finally.
Use the standard guards before writing your own:
std::lock_guard lock(mtx_); // locks now, unlocks at scope end (C++17 CTAD)
std::scoped_lock locks(a_mtx, b_mtx); // multiple mutexes, deadlock-free acquisition
std::unique_lock lk(mtx_); // movable / deferrable, for condition_variable
std::ifstream in("data.txt"); // closes in its destructorWhen you wrap a C resource yourself, make the destructor release and disable copies (Rule of Five
or unique_ptr with a custom deleter):
// RAII wrapper for a FILE*: closes once, can't leak, can't double-close.
class File {
public:
explicit File(const char* path, const char* mode) : f_(std::fopen(path, mode)) {
if (!f_) throw std::runtime_error("open failed");
}
~File() { if (f_) std::fclose(f_); }
File(const File&) = delete; // not copyable
File& operator=(const File&) = delete;
File(File&& o) noexcept : f_(std::exchange(o.f_, nullptr)) {} // move = steal
File& operator=(File&& o) noexcept { std::swap(f_, o.f_); return *this; }
FILE* get() const noexcept { return f_; }
private:
FILE* f_{};
};
// Even simpler when a deleter suffices — let unique_ptr own it (Rule of Zero):
auto fp = std::unique_ptr<FILE, decltype(&std::fclose)>(std::fopen("d", "r"), &std::fclose);Every expression is an lvalue (has a name, persists) or an rvalue (a temporary, about to die).
std::move does not move anything — it casts an lvalue to an rvalue so a move constructor/assignment
can steal its guts instead of copying. After you move from an object, it is valid but unspecified:
only assign to it or destroy it; reading it is use-after-move (a real bug ASan/UBSan won't catch — clang-tidy will).
unique_ptr/vector member and gone back to Rule of Zero.noexcept. Why: std::vector reallocation only moves elements instead of
copying them when the move is noexcept — otherwise it silently falls back to copies for the
strong exception guarantee.std::vector<std::string> v;
v.push_back(std::move(name)); // transfers the buffer; `name` is now empty-but-valid
// Bad: use-after-move — `name` holds an unspecified state here.
log(name); // don't. Reassign name first, or just don't read it.Return local objects by value and let RVO / copy elision remove the copy — do not return std::move(local), which pessimizes by blocking elision. Take a forwarding reference T&& plus
std::forward<T>(x) only in generic code that must preserve value category.
Worked Rule-of-Five, perfect forwarding, CTAD, and C++20 concepts -> references/move-and-templates.md.
Undefined behavior is the compiler's permission to assume the bug can't happen and optimize on that assumption — so the symptom is often a distant crash or a "works in Debug, breaks in Release." Pair static analysis (clang-tidy, cppcheck) with dynamic sanitizers; they catch disjoint bug classes.
| Sanitizer | Flag | Catches |
|---|---|---|
| AddressSanitizer | -fsanitize=address | use-after-free, heap/stack buffer overflow, double-free |
| UndefinedBehaviorSanitizer | -fsanitize=undefined | signed overflow, null/misaligned deref, bad shifts, invalid enum |
| ThreadSanitizer | -fsanitize=thread | data races |
Combine ASan + UBSan in one build (-fsanitize=address,undefined); run TSan alone (it's
incompatible with ASan). Always add -fno-omit-frame-pointer -g for readable reports.
// Bad: returns a dangling reference into a destroyed temporary -> use-after-free, ASan fires.
const std::string& name() { std::string s = build(); return s; } // s dies at return
// Good: return by value; RVO makes it free.
std::string name() { return build(); }The full catalog (lifetime, OOB, signed overflow, strict-aliasing, uninitialized, data races,
use-after-move), which sanitizer surfaces each, the canonical fix, and a "reading an ASan report"
walkthrough -> references/undefined-behavior.md.
Target-based only. State requirements on the target, never globally:
cmake_minimum_required(VERSION 3.21)
project(app LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # feeds clang-tidy / clangd
include(FetchContent) # FetchContent ships with CMake since 3.11
FetchContent_Declare(Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.7.1)
FetchContent_MakeAvailable(Catch2) # its targets work just like find_package targets
add_executable(app src/main.cpp)
target_compile_features(app PRIVATE cxx_std_23) # request the standard on the target
target_compile_options(app PRIVATE -Wall -Wextra -Wpedantic -Werror)
target_link_libraries(app PRIVATE Catch2::Catch2WithMain)Full template (src/include/tests layout, CMakePresets.json with debug/asan/release presets,
fmt + GoogleTest via FetchContent, per-compiler warning + sanitizer flags, install/export) ->
references/cmake.md.
Reach for the library before hand-rolling:
#include <algorithm>
#include <ranges>
#include <expected> // C++23
#include <format> // C++20
// Ranges over raw index loops — no off-by-one, no manual bounds.
auto evens = nums | std::views::filter([](int n){ return n % 2 == 0; });
std::ranges::sort(v);
// std::expected (C++23) over out-params / sentinel returns / exceptions for expected failure.
std::expected<Config, std::string> load(std::string_view path);
if (auto cfg = load(p)) use(*cfg); else log(cfg.error());
std::optional<User> find(int id); // "maybe absent", not a magic -1 / nullptr
std::span<const int> view(v); // borrow a contiguous range, no copy, no owner
auto [it, inserted] = m.try_emplace(k, val); // structured bindings
enum class Color { Red, Green }; // scoped, no implicit int conversions
std::string msg = std::format("{} of {}", i, n); // type-safe, no printf format-string UBPrefer at() or a range-checked view when the index isn't provably in bounds; operator[] on a
bad index is UB, not an exception.
FetchContent (above); run them with ctest.clang-tidy -p build (reads compile_commands.json) and cppcheck —
they catch use-after-move, missing noexcept, and lifetime bugs the compiler won't.clang-format -i with a checked-in .clang-format../scripts/verify.sh from the project root runs format + an ASan/UBSan,
warnings-as-errors build + ctest + optional tidy/cppcheck. Missing tools are skipped, not failed.| Rationalization | Reality / Do instead |
|---|---|
"I'll just new/delete carefully" | One early return or throw and you leak/double-free. make_unique, always. |
| "A raw owning pointer is faster" | unique_ptr is zero-overhead; the cost is imaginary, the leak is real. |
"shared_ptr everywhere is the safe default" | Shared ownership invites cycles + atomic refcount cost. Default unique_ptr; share only when truly shared. |
| "The C-style cast is fine, I know the type" | Use static_cast/dynamic_cast; C casts silently reinterpret and hide bugs. |
"Skip noexcept on the move ctor" | vector then copies instead of moving on realloc. Mark moves noexcept. |
| "UB won't happen on my compiler" | UB lets the optimizer delete your checks; "works in Debug" proves nothing. |
| "No sanitizers, it ran fine" | It ran; it wasn't correct. Build+test under ASan+UBSan. |
| "A hand-rolled Makefile is simpler" | It rots and leaks flags. Target-based CMake is the contract. |
"v[i] is in range, I checked" | If it's not provable, use .at() or a checked view; OOB is UB. |
"return std::move(local) to be fast" | It blocks RVO and is slower. Return the local by value. |
"using namespace std; in a header" | Pollutes every includer; ODR/ambiguity bugs. Never in a header. |
| "An out-param instead of returning the value" | Return by value (RVO) or optional/expected; out-params hide aliasing and UB. |
| "A global / singleton is simpler" | It's hidden shared mutable state -> data races + untestable. Inject it. |
| Task | Command / idiom |
|---|---|
| Configure + build | cmake -S . -B build && cmake --build build |
| Configure with sanitizers | cmake -S . -B build -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -g" |
| Test | ctest --test-dir build --output-on-failure |
| ASan + UBSan | -fsanitize=address,undefined -fno-omit-frame-pointer -g |
| ThreadSanitizer (alone) | -fsanitize=thread -g |
| Format | clang-format -i src/*.cpp |
| Static analysis | clang-tidy -p build src/*.cpp · cppcheck --enable=warning src/ |
| Std flag | GCC/Clang -std=c++23 (C++26: GCC -std=c++26, Clang -std=c++2c), MSVC /std:c++23 |
| Local gate | ./scripts/verify.sh (run in your project root) |
In a project with a 02-DOCS/ layer (the harness Karpathy wiki), read
02-DOCS/wiki/stack/cpp.md first and stay consistent with it. If it is missing or stale, write
this project's real choices there — std version and compiler matrix, CMake layout and presets, the
sanitizer/warning policy, the ownership/error conventions — index it in 02-DOCS/wiki/index.md
(the Knowledge map; root CLAUDE.md keeps only a pointer to it), and bump its Updated date in
the same change as any convention change. No 02-DOCS/ layer? Skip silently (optionally suggest
harness). Conventions are recorded, not gated — never block the task on this.
© ericrisco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files (scripts, references) in skills/cpp of ericrisco/rsc-harness.
Open the folder on GitHubat commit 92fde8f
Cpp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cpp this skillericrisco/rsc-harness | 156 | — | ~4k | Automated safety check: Pass | MIT | |
| SeekDB Code Reviewoceanbase/seekdb | 3.1k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Add Grammarafnanenayet/diffsitter | 2.4k | — | ~1.9k | Automated safety check: Notes | MIT | |
| Cppcrazyguitar/cppcheatsheet | 290 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Dbgtheodo-group/debug-that | 158 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Style Checkernoumena-labs/Sipp | 121 | — | ~1.4k | Automated safety check: Pass | Apache-2.0 |
oceanbase/seekdb
Reviews seekdb pull requests and diffs for real defects in correctness, resources, concurrency, security and tests, reporting only Blocker or Major findings.
afnanenayet/diffsitter
Step-by-step guide for adding a new tree-sitter language grammar to diffsitter.
crazyguitar/cppcheatsheet
Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.
theodo-group/debug-that
Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.
noumena-labs/Sipp
Enforces this monorepo's coding style rules by inspecting git diffs, reading .agents/skills/style-checker/references/styleguidance.md, fixing style violations, and reporting the result.
crazyguitar/cppcheatsheet
Readable C/C++/Rust/CUDA code rules inspired by The Art of Readable Code.
ericrisco/rsc-harness
A skill your agent uses when designing or analyzing a controlled experiment — falsifiable hypothesis, sample size from an MDE, reading significance/CI/power, CUPED, or rescuing tests that won't go…
ericrisco/rsc-harness
A skill your agent uses when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast…
ericrisco/rsc-harness
A skill your agent uses when running or fixing paid acquisition on Google or Meta — campaign structure (Performance Max, Demand Gen, Search, Advantage+), platform-fit creative, budget/scaling rules…
ericrisco/rsc-harness
A skill your agent uses when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual…
ericrisco/rsc-harness
A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…
ericrisco/rsc-harness
A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.
Categories
A skill your agent uses when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based…. Cpp is an agent skill from ericrisco/rsc-harness. Use when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based CMake with FetchContent, and killing undefined behavior with ASan/UBSan/TSan plus clang-tidy.
Cpp fits situations like: debugging C++ - RAII and resource lifetime; smart-pointer ownership; move semantics and the Rule of Zero/Five; target-based CMake with FetchContent.
Run `npx skills add ericrisco/rsc-harness --skill cpp -a claude-code`. Or copy the skill folder (skills/cpp in ericrisco/rsc-harness) into .claude/skills/cpp in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ericrisco/rsc-harness --skill cpp -a codex`. Or copy the skill folder (skills/cpp in ericrisco/rsc-harness) into .agents/skills/cpp in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ericrisco/rsc-harness --skill cpp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp, .gemini/skills/cpp, .github/skills/cpp and .opencode/skills/cpp in your project.
Going by SKILL.md and its folder, Cpp needs a shell for the scripts in its folder and the command-line tools its instructions call (cmake). Our summary lists: A Bash shell.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Cpp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Cpp: SeekDB Code Review (oceanbase/seekdb, 3.1k stars), Add Grammar (afnanenayet/diffsitter, 2.4k stars), Cpp (crazyguitar/cppcheatsheet, 290 stars) and Dbg (theodo-group/debug-that, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ericrisco (a GitHub user) maintains it in ericrisco/rsc-harness, which has 156 GitHub stars. The repository holds 229 skills in this directory. The repository was last updated on October 6, 2026.
Source: ericrisco/rsc-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.