m01-ownership
✓关键:用于所有权/借用/生命周期问题。触发器:E0382、E0597、E0506、E0507、E0515、E0716、E0106、值已移动、借用值寿命不够长、无法移出、使用已移动值、所有权、借用、生命周期、'a、'静态、移动、克隆、复制、循环生命、借用、周期
SKILL.md
| Error | Don't Just Say | Ask Instead |
| E0382 | "Clone it" | Who should own this data? | | E0597 | "Extend lifetime" | Is the scope boundary correct? | | E0506 | "End borrow first" | Should mutation happen elsewhere? | | E0507 | "Clone before move" | Why are we moving from a reference? | | E0515 | "Return owned" | Should caller own the data? |
| E0716 | "Bind to variable" | Why is this temporary? | | E0106 | "Add 'a" | What is the actual lifetime relationship? |
关键:用于所有权/借用/生命周期问题。触发器:E0382、E0597、E0506、E0507、E0515、E0716、E0106、值已移动、借用值寿命不够长、无法移出、使用已移动值、所有权、借用、生命周期、'a、'静态、移动、克隆、复制、循环生命、借用、周期 来源:zhanghandong/rust-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/zhanghandong/rust-skills --skill m01-ownership- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 m01-ownership?
关键:用于所有权/借用/生命周期问题。触发器:E0382、E0597、E0506、E0507、E0515、E0716、E0106、值已移动、借用值寿命不够长、无法移出、使用已移动值、所有权、借用、生命周期、'a、'静态、移动、克隆、复制、循环生命、借用、周期 来源:zhanghandong/rust-skills。
如何安装 m01-ownership?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/zhanghandong/rust-skills --skill m01-ownership 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/zhanghandong/rust-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01