m02-resource
✓关键:用于智能指针和资源管理。触发器:Box、Rc、Arc、Weak、RefCell、Cell、智能指针、堆分配、引用计数、RAII、Drop、我应该使用 Box 还是 Rc、何时使用 Arc 与 Rc、智能指针、引用计数、堆分配
SKILL.md
| Error | Don't Just Say | Ask Instead |
| "Need heap allocation" | "Use Box" | Why can't this be on stack? | | Rc memory leak | "Use Weak" | Is the cycle necessary in design? | | RefCell panic | "Use tryborrow" | Is runtime check the right approach? | | Arc overhead complaint | "Accept it" | Is multi-thread access actually needed? |
| Rc vs Arc confusion | m07-concurrency | What's the concurrency model? | | RefCell panics | m03-mutability | Is interior mutability right here? | | Memory leaks | m12-lifecycle | Where should cleanup happen? |
关键:用于智能指针和资源管理。触发器:Box、Rc、Arc、Weak、RefCell、Cell、智能指针、堆分配、引用计数、RAII、Drop、我应该使用 Box 还是 Rc、何时使用 Arc 与 Rc、智能指针、引用计数、堆分配 来源:zhanghandong/rust-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 m02-resource?
关键:用于智能指针和资源管理。触发器:Box、Rc、Arc、Weak、RefCell、Cell、智能指针、堆分配、引用计数、RAII、Drop、我应该使用 Box 还是 Rc、何时使用 Arc 与 Rc、智能指针、引用计数、堆分配 来源:zhanghandong/rust-skills。
如何安装 m02-resource?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zhanghandong/rust-skills --skill m02-resource 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/zhanghandong/rust-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01