← All skills
Tencent SkillHub · Other

C++

Avoid common C++ mistakes — memory leaks, dangling references, undefined behavior, and ownership confusion.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Avoid common C++ mistakes — memory leaks, dangling references, undefined behavior, and ownership confusion.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, classes.md, concurrency.md, memory.md, modern.md, pointers.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 2 sections Open source page

Quick Reference

TopicFileRAII, smart pointers, new/deletememory.mdRaw pointers, references, nullptrpointers.mdRule of 3/5/0, inheritance, virtualclasses.mdContainers, iterators, algorithmsstl.mdTemplates, SFINAE, conceptstemplates.mdThreads, mutex, atomicsconcurrency.mdC++11/14/17/20, move semanticsmodern.mdUndefined behavior trapsub.md

Critical Rules

Raw new without delete leaks — use std::unique_ptr or std::make_unique Returning reference to local — undefined behavior, object destroyed on return == for C-strings compares pointers — use std::string or strcmp() Signed integer overflow is UB — not wrap-around like unsigned Virtual destructor required in base class — otherwise derived destructor skipped std::move doesn't move — it casts to rvalue, enabling move semantics Moved-from object valid but unspecified — don't use without reassigning Data race on non-atomic is UB — use std::mutex or std::atomic vector<bool> is not a real container — returns proxy, use deque<bool> map[key] inserts default if missing — use find() or contains() to check Braced init {} prevents narrowing — int x{3.5} errors, int x(3.5) truncates Iterator invalidation on push_back — vector may relocate, invalidating iterators string_view doesn't own data — underlying string must outlive the view

Category context

Long-tail utilities that do not fit the current primary taxonomy cleanly.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
6 Docs
  • SKILL.md Primary doc
  • classes.md Docs
  • concurrency.md Docs
  • memory.md Docs
  • modern.md Docs
  • pointers.md Docs