
M01 ownership
Guides the agent through Rust ownership, borrow and lifetime compiler errors
M01 ownership is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 21
- Last commit
- License
- MIT
- Listing updated
Similar skills
About M01 ownership
This skill helps an AI coding agent diagnose and resolve Rust ownership, borrowing and lifetime problems. It maps common compiler error codes such as E0382, E0597, E0506, E0507, E0515, E0716 and E0106 to the underlying design question, so the agent weighs whether data should be owned, shared or borrowed before reaching for a clone or an extra annotation.
The workflow starts by asking what role the data plays and whether its ownership is intentional. If a fix fails repeatedly, the skill points the agent toward related design areas such as smart pointers, interior mutability or domain modelling. It also includes a quick reference of ownership patterns with their costs, plus anti-patterns such as cloning everywhere or overusing 'static.
The skill is written as reference guidance rather than executable tooling; it includes no scripts. It is intended for Rust projects, and it is not user-invocable directly, so the agent loads it when a matching error or term appears.
When your agent uses it
CRITICAL: Use for ownership/borrow/lifetime issues. Triggers: E0382, E0597, E0506, E0507, E0515, E0716, E0106, value moved, borrowed value does not live long enough, cannot move out of, use of moved value, ownership, borrow, lifetime, 'a, 'static, move, clone, Copy, 所有权, 借用, 生命周期
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 5 files (26 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/m01-ownership to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/m01-ownership &&
cp -R "$tmp/.claude/skills/m01-ownership" ~/.claude/skills/m01-ownership &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/m01-ownership inside it instead.
Copy the skill folder to ~/.agents/skills/m01-ownership to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/m01-ownership &&
cp -R "$tmp/.claude/skills/m01-ownership" ~/.agents/skills/m01-ownership &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/m01-ownership inside it instead.
Copy the skill folder to ~/.cursor/skills/m01-ownership to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/m01-ownership &&
cp -R "$tmp/.claude/skills/m01-ownership" ~/.cursor/skills/m01-ownership &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/m01-ownership inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/m01-ownershipOr copy the folder to ~/.gemini/skills/m01-ownership yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/m01-ownership:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/m01-ownership &&
cp -R "$tmp/.claude/skills/m01-ownership" ~/.copilot/skills/m01-ownership &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/m01-ownership inside it instead.
Get the folder:
git clone --depth 1 https://github.com/k1-c/linear-tui.gitThen copy linear-tui/.claude/skills/m01-ownership into your agent's skills folder as m01-ownership. Agents that support SKILL.md read one folder per skill.
What it does
- Error code mapping
- Links Rust borrow checker error codes to the design question behind each one.
- Ownership design prompts
- Asks whether data is an entity, value object or temporary before choosing a fix.
- Pattern cost reference
- Compares move, borrow, clone, Rc, Arc and Cow by ownership model and cost.
- Escalation paths
- Suggests related skills to consult when the same error keeps recurring.
- Anti-pattern warnings
- Flags habits such as blanket cloning, Box::leak and overusing 'static.
Good for
- Fix a 'value moved' error in a Rust function
- Resolve 'borrowed value does not live long enough' in a struct
- Add correct lifetime annotations to a function returning a reference
- Decide whether to share data with Rc or Arc
- Work out why a value cannot be moved out of a borrow
M01 ownership FAQ
When does M01 ownership trigger?
It is meant for ownership, borrow and lifetime issues, and triggers on the listed error codes and phrases such as value moved, use of moved value, lifetime and clone.
Does M01 ownership run any scripts or need extra tools?
No scripts are included and no allowed tools are set in the skill.
Which languages does M01 ownership cover?
It targets Rust ownership and borrow checker errors.
Can I invoke M01 ownership directly?
No, the skill is marked as not user-invocable, so the agent loads it automatically when a task matches.
How do I install M01 ownership in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/m01-ownership to use it in all your projects, or to .claude/skills/m01-ownership in one project.
Does M01 ownership run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use M01 ownership?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to M01 ownership?
The closest alternatives to M01 ownership are M14 mental model, M03 mutability, M09 domain, M02 resource and M15 anti pattern.
Where this comes from
- Description: from the skill's own SKILL.md.
More from k1-c/linear-tui

Gives the agent a quick reference of Rust-specific naming, error handling and async rules
- Open source
- 21 GitHub stars
- Developer tools

Guides the agent to write Conventional Commits, splitting mixed changes into several
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent through building Rust command-line tools with clap, config layers
- Open source
- 21 GitHub stars
- Developer tools

Guides an agent in choosing Rust smart pointers like Box, Rc, Arc, Weak and RefCell
- Open source
- 21 GitHub stars
- Developer tools

Guides a Rust agent through E0596/E0499/E0502 borrow errors and interior mutability
- Open source
- 21 GitHub stars
- Developer tools

Guides Claude through generics, traits, static vs dynamic dispatch and related Rust
- Open source
- 21 GitHub stars
- Developer tools

