# M14 mental model

> M14 mental model is an open-source agent skill for knowledge and memory. Teaches the agent to explain Rust concepts through mental models and analogies. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/k1-c/linear-tui/tree/main/.claude/skills/m14-mental-model
- **Repository:** https://github.com/k1-c/linear-tui
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** m14-mental-model
- **Collection:** https://github.com/k1-c/linear-tui
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives the agent a set of mental models for Rust's core ideas, such as ownership as a unique key, borrowing as lending, and Rc and Arc as shared remotes. It pairs each concept with an analogy and lists common compiler error codes alongside the wrong assumption behind them and a more accurate way to think about the rule.

The skill also provides a short thinking routine for confusing moments: ask who owns the data, how long it lives, and who may access it, then check which safety guarantee the compiler is protecting. It includes comparison tables for developers arriving from Java, C#, C, C++, Python, Go, functional languages and JavaScript, plus ASCII diagrams of stack and heap ownership and of shared versus exclusive references.

It is written as a conceptual guide with no scripts. It points to related skills in the same collection for concrete ownership patterns, smart pointer choice, concurrency and anti-patterns, so it works best as an entry point before moving to implementation.

## When your agent uses it

> Use when learning Rust concepts. Keywords: mental model, how to think about ownership, understanding borrow checker, visualizing memory layout, analogy, misconception, explaining ownership, why does Rust, help me understand, confused about, learning Rust, explain like I'm, ELI5, intuition for, coming from Java, coming from Python, 心智模型, 如何理解所有权, 学习 Rust, Rust 入门, 为什么 Rust

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/m14-mental-model)
- [License: MIT](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/m14-mental-model)

## Features

- **Ownership mental models:** Analogies that map ownership, moves, borrows and mutable borrows to everyday ideas like house keys and lending books.
- **Compiler error explanations:** Common Rust borrow and lifetime error codes paired with the wrong assumption behind them and the correct model.
- **Coming from other languages:** Key shifts for developers arriving from Java, C#, C/C++, Python, Go, JavaScript and functional languages.
- **Smart pointer analogies:** Explanations of Box, Rc and Arc using remote control comparisons for heap and shared ownership.
- **Ownership diagrams:** ASCII diagrams of stack and heap layout showing moves, immutable borrows and mutable borrows.
- **Thinking routine for confusion:** A short checklist for working out ownership, lifetime and the safety guarantee behind a compiler error.

## Good for

- Explain why a value is no longer usable after being moved into a function
- Help me understand the borrow checker error about two mutable borrows
- Compare Rust ownership with how Java handles object references
- Give me an analogy for when to use Rc versus Arc
- Walk through how lifetimes differ from garbage collection

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/m14-mental-model` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/m14-mental-model &&
cp -R "$tmp/.claude/skills/m14-mental-model" ~/.claude/skills/m14-mental-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/m14-mental-model` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/m14-mental-model` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/m14-mental-model &&
cp -R "$tmp/.claude/skills/m14-mental-model" ~/.agents/skills/m14-mental-model &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/m14-mental-model` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/m14-mental-model` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/m14-mental-model &&
cp -R "$tmp/.claude/skills/m14-mental-model" ~/.cursor/skills/m14-mental-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/m14-mental-model` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/k1-c/linear-tui.git --path .claude/skills/m14-mental-model
```

Or copy the folder to `~/.gemini/skills/m14-mental-model` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/m14-mental-model`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/k1-c/linear-tui.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/m14-mental-model &&
cp -R "$tmp/.claude/skills/m14-mental-model" ~/.copilot/skills/m14-mental-model &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/m14-mental-model` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/k1-c/linear-tui.git
```

Then copy `linear-tui/.claude/skills/m14-mental-model` into your agent's skills folder as `m14-mental-model`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does M14 mental model change in the agent's behavior?

It shapes how the agent explains Rust concepts, steering it toward mental models, analogies and common misconceptions when a user is learning or confused.

### Does M14 mental model run any scripts or need extra tools?

No. The skill has no scripts and does not set allowed tools; it consists of guidance in SKILL.md and a README.

### When does M14 mental model trigger?

It is meant for learning Rust concepts and triggers on phrases such as mental model, ownership, borrow checker, coming from Java or Python, and explain like I'm five, including Chinese keywords.

### Is M14 mental model a replacement for implementation guidance?

No. It points to other skills for ownership patterns, smart pointer selection, concurrency and anti-patterns once the concept is understood.

### How do I install M14 mental model in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/m14-mental-model to use it in all your projects, or to .claude/skills/m14-mental-model in one project.

### Does M14 mental model 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 M14 mental model?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to M14 mental model?

The closest alternatives to M14 mental model are M01 ownership, M02 resource, M09 domain, M15 anti pattern and Meta cognition parallel.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [M01 ownership](https://ai-powered.com/skills/m01-ownership): M01 ownership is an open-source agent skill for developer tools.
- [M02 resource](https://ai-powered.com/skills/m02-resource): M02 resource is an open-source agent skill for developer tools.
- [M09 domain](https://ai-powered.com/skills/m09-domain): M09 domain is an open-source agent skill for developer tools.
- [M15 anti pattern](https://ai-powered.com/skills/m15-anti-pattern): M15 anti pattern is an open-source agent skill for developer tools.
- [Meta cognition parallel](https://ai-powered.com/skills/meta-cognition-parallel): Meta cognition parallel is an open-source agent skill for developer tools.
- [M03 mutability](https://ai-powered.com/skills/m03-mutability): M03 mutability is an open-source agent skill for developer tools.
- [Coding guidelines](https://ai-powered.com/skills/coding-guidelines): Coding guidelines is an open-source agent skill for developer tools.
- [M11 ecosystem](https://ai-powered.com/skills/m11-ecosystem): M11 ecosystem is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/m14-mental-model
