Guides writing modern C++ (17/20/23) with RAII, smart-pointer ownership, move semantics, ranges, concepts, and sanitizer-driven debugging for memory corruption, leaks, and data races.
Ships in languages. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write C++ where resources are owned by objects, ownership is visible in the type, and undefined behavior is actively hunted with tooling rather than hoped away.
new/delete or manual resource cleanup.unique_ptr, shared_ptr, and value semantics.delete.unique_ptr, or a documented non-owning T*/span.shared_ptr only when ownership is genuinely shared — it is not a default.const& for large read-only inputs; pass by value and std::move when you intend to store.string_view to a temporary. This is the most common lifetime bug in modern C++.-Wall -Wextra -Wpedantic -Werror. Warnings in C++ are usually latent bugs.std::span instead of pointer+length parameter pairs.explicit unless implicit conversion is genuinely desired.RAII wrapper with clear ownership:
class FileHandle {
public:
explicit FileHandle(const std::filesystem::path& path)
: file_(std::fopen(path.c_str(), "rb")) {
if (!file_) {
throw std::system_error(errno, std::generic_category(), path.string());
}
}
FileHandle(FileHandle&&) noexcept = default;
FileHandle& operator=(FileHandle&&) noexcept = default;
FileHandle(const FileHandle&) = delete;
FileHandle& operator=(const FileHandle&) = delete;
~FileHandle() { if (file_) std::fclose(file_); }
[[nodiscard]] std::FILE* get() const noexcept { return file_; }
private:
std::FILE* file_;
};
Constrained template with concepts:
template <std::ranges::input_range R>
requires std::totally_ordered<std::ranges::range_value_t<R>>
auto median(R&& range) {
std::vector values(std::ranges::begin(range), std::ranges::end(range));
if (values.empty()) throw std::invalid_argument("median of empty range");
auto mid = values.begin() + std::ssize(values) / 2;
std::ranges::nth_element(values, mid);
return *mid;
}
shared_ptr cycles leak. Break them with weak_ptr on the back-reference.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/csharp-dotnetUse when building on .NET 8+ with C# 12. Covers nullable reference types, records, async/await correctness, minimal APIs, dependency injection, and EF Core query performance. Trigger on "async deadlock in my asp.net app", "turn on nullable reference types", "ef core is doing n+1 queries", "set up a minimal api in .net 8". Do not use for tuning the database itself — see the database-performance skill./goUse when writing Go services, CLIs, or libraries. Covers idiomatic error wrapping, goroutine and context discipline, interface design, table-driven tests, and the race detector. Trigger on "goroutine leak", "how should i wrap this error in go", "race detector is flagging this", "write table-driven tests for this". Do not use for designing a CLI's flags and exit codes — see the cli-development skill.//languages:cppfrom languages
npx claudepluginhub nimadorostkar/claude-skills-collection --plugin languagesOther plugins' skills for the same job