Skip to content
M

memory-safety-patterns

Implement memory-safe programming

by wshobsonFree

Launch
#1770in AI Skills
0In stores

Description

memory-safety-patterns is an agent skill from the wshobson/agents collection that teaches memory-safe programming across Rust, C++ and C. It…

Highlights

  • RAII for automatic resource release
  • Ownership and smart pointers
  • Covers Rust, C++ and C
  • Use-after-free and leak prevention
  • Resource management for files, sockets and memory
  • Installs with the skills CLI

Ratings & Reviews

No ratings yet

Be the first to rate memory-safety-patterns.

People also visit

R

rust-engineer

Writes, reviews, and debugs idiomatic Rust code

AI Skills
Launch
C

cpp-pro

Writes, optimizes, and debugs C++ applications

AI Skills
Launch
R

rust-async-patterns

Production patterns for async Rust

AI Skills
Launch
C

Compiler Explorer

Compile code with thousands of compilers, inspect the assembly

AI Skills
Launch
C

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io)

AI Skills
Launch
C

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest

AI Skills
Launch

memory-safety-patterns FAQ

What languages does it cover?

Rust, C++ and C, with cross-language patterns.

What is RAII?

Resource Acquisition Is Initialization, a pattern that ties a resource's release to an object's lifetime so it is freed automatically.

Which bugs does it help prevent?

Memory bugs such as use-after-free and leaks, along with resource leaks for files and sockets.

Does it help choose a language?

Yes. Choosing between languages for safety is one of the topics.

How do I install it?

Run npx skills add https://github.com/wshobson/agents --skill memory-safety-patterns.

What security audits does it have?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best memory-safety-patterns alternatives?

Popular alternatives to memory-safety-patterns include rust-engineer, cpp-pro and rust-async-patterns. See all memory-safety-patterns alternatives

Developer Stuff

Badges