m02-resource
Helps Rust programmers pick the right tool for sharing and managing memory, like Box or Arc.
Installation
Paste this into Claude Code, Cursor, or any agent that can run commands.
What this skill does
What it does:
This skill helps choose the right way to manage memory and shared data in Rust code, specifically tools called smart pointers. These are special containers that control who owns a piece of data, whether multiple parts of the program can share it, and whether it's safe to use across different tasks running at the same time. It walks through questions like whether the data has one owner or many, and whether it needs to work safely across multiple threads, then recommends the matching tool.
When to use it:
- Deciding how a piece of data should be owned or shared in Rust code
- Fixing memory leaks caused by data referring back to itself in a loop
- Choosing between different sharing tools depending on whether the program uses multiple threads
- Reviewing code that overuses one tool everywhere instead of picking the right one for each case
This is background guidance automatically used while writing or reviewing Rust code involving shared data.
The full skill text could not be loaded right now. It installs fine with the command above, or read it at the source.
Mirrored from the author's public source. Install counts from the open skills registry.