Skip to content
Skill

M14 mental model

Teaches the agent to explain Rust concepts through mental models and analogies

M14 mental model is an open-source agent skill for knowledge and memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
21
Last commit
License
MIT
Listing updated

Similar skills

About M14 mental model

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

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 2 files (11 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/m14-mental-model 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/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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/m14-mental-model 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/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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/m14-mental-model 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/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.

Cursor docs on skills

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/m14-mental-model

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

M14 mental model 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.

More from k1-c/linear-tui

  1. Gives the agent a quick reference of Rust-specific naming, error handling and async rules

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

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

    • Open source
    • 21 GitHub stars
    • Developer tools
  4. Guides the agent through Rust ownership, borrow and lifetime compiler errors

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

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

    • Open source
    • 21 GitHub stars
    • Developer tools