Iván

C++

Developmentv1.0.1
By IvánUpdated 2026-05-112 versions · latest released 2026-02-14cpp@clawhub_ivangdavila/cpp
Code ReviewBug Fixing

According to AlphaMoat, as of 2026-09, C++ has 2,989 downloads and 3 stars — ranked #3,736 of 5,078 AI skills overall, and #473 of 577 in Development.

Installs
197
Downloads
3.0K
Stars
3
Overall Rank
#3,736
Top 74% overall · Top 82% in Development
PlatformInstallsDownloadsStarsComments
ClawHub ↗782.8K2-
SkillHub ↗1973.0K3—

Platforms count differently and update at different times.

What this skill does

The primary covers RAII, smart pointers, raw pointers, containers, concurrency, modern C++ features, and undefined behavior to help explain or review lifetime and ownership concerns.

Profile published 2026-10-27

What you can do with it

  • Writing or reviewing C++ code

When to use it

  • You want to reduce common memory-management and ownership errors

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Review this C++ code for pointer ownership and lifetime issues

Monthly Trend

Downloads3.0K
1.2K2.1K3.1K2026-03 · Downloads 1.3K2026-05 · Downloads 1.8K2026-06 · Downloads 2.0K2026-07 · Downloads 2.3K2026-08 · Downloads 2.6K2026-09 · Downloads 3.0K26-0326-09
Stars3
2332026-03 · Stars 22026-05 · Stars 32026-06 · Stars 32026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-093.0K—3
2026-082.6K+11.1%3
2026-072.3K+16.0%3
2026-062.0K+9.6%3
2026-051.8K—3
2026-031.3K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

1.7 KB · ClawHub v1.0.1
---
name: C++
slug: cpp
version: 1.0.1
description: Write safe C++ avoiding memory leaks, dangling pointers, undefined behavior, and ownership confusion.
metadata: {"clawdbot":{"emoji":"⚡","requires":{"bins":["g++"]},"os":["linux","darwin","win32"]}}
---

## Quick Reference
Show all (37 lines)
| Topic | File |
|-------|------|
| RAII, smart pointers, new/delete | `memory.md` |
| Raw pointers, references, nullptr | `pointers.md` |
| Rule of 3/5/0, inheritance, virtual | `classes.md` |
| Containers, iterators, algorithms | `stl.md` |
| Templates, SFINAE, concepts | `templates.md` |
| Threads, mutex, atomics | `concurrency.md` |
| C++11/14/17/20, move semantics | `modern.md` |
| Undefined behavior traps | `ub.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

Popular in Development

More from Iván

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.