Skip to content
Skill

M07 concurrency

Guides Rust agents through threads, async, channels and locks for concurrency errors

M07 concurrency 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 M07 concurrency

This skill gives the agent a structured way to approach concurrency work in Rust. It starts from the workload, asking whether the job is CPU-bound or I/O-bound and what data must be shared, then points toward a matching primitive such as std::thread or rayon for parallel computation, async/await with tokio for I/O, channels for message passing, or Arc with Mutex or RwLock for shared state.

Beyond choosing primitives, the skill covers compiler errors like missing Send or Sync bounds, futures that are not Send, and deadlocks. It lists common causes and fixes, such as dropping a MutexGuard before an await point, and warns against patterns like thread::sleep inside async code. It also tells the agent to check the surrounding domain, for example web handlers or CLI tools, before settling on a design.

The skill is written for Rust codebases and expects the agent to work with the crate's existing code and compiler output. It has no bundled scripts and does not declare any tool restrictions.

When your agent uses it

CRITICAL: Use for concurrency/async. Triggers: E0277 Send Sync, cannot be sent between threads, thread, spawn, channel, mpsc, Mutex, RwLock, Atomic, async, await, Future, tokio, deadlock, race condition, 并发, 线程, 异步, 死锁

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 (36 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/m07-concurrency 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/m07-concurrency &&
cp -R "$tmp/.claude/skills/m07-concurrency" ~/.claude/skills/m07-concurrency &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/m07-concurrency inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/m07-concurrency 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/m07-concurrency &&
cp -R "$tmp/.claude/skills/m07-concurrency" ~/.agents/skills/m07-concurrency &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/m07-concurrency inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/m07-concurrency 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/m07-concurrency &&
cp -R "$tmp/.claude/skills/m07-concurrency" ~/.cursor/skills/m07-concurrency &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/m07-concurrency 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/m07-concurrency

Or copy the folder to ~/.gemini/skills/m07-concurrency yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/m07-concurrency:

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

For one project only, put the folder in .github/skills/m07-concurrency 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/m07-concurrency into your agent's skills folder as m07-concurrency. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Workload and sharing analysis
Helps decide between threads, async tasks and message passing based on CPU versus I/O work and shared data.
Send and Sync diagnostics
Explains common E0277 Send and Sync errors and asks whether the type should cross threads at all.
Lock and deadlock guidance
Covers Mutex and RwLock use, lock ordering, and avoiding guards held across await points.
Primitive selection guide
Quick reference mapping std::thread, tokio, channels, atomics and Arc wrappers to their use cases.
Domain context checks
Directs the agent to related domain guidance for web, fintech, cloud-native and CLI contexts.

Good for

  • Fix a 'future is not Send' error in a tokio task
  • Decide whether a shared counter should use a Mutex or an atomic
  • Review async code for locks held across await points
  • Choose between channels and shared state for a worker pipeline
  • Parallelize a CPU-heavy Rust function with threads

M07 concurrency FAQ

When does M07 concurrency trigger?

It is meant to load for concurrency and async topics, including errors such as E0277 Send or Sync, and keywords like thread, spawn, channel, Mutex, tokio, deadlock and race condition.

What does M07 concurrency need to run?

It has no scripts. It is a SKILL.md guide for Rust concurrency work and does not declare allowed tools.

Does M07 concurrency refer to other skills?

Yes. It points to related skills for smart pointers, interior mutability, performance tuning and domain-specific concerns.

How do I install M07 concurrency in Claude Code?

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

Does M07 concurrency 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 M07 concurrency?

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 M07 concurrency?

The closest alternatives to M07 concurrency are Axiom concurrency, M03 mutability, M11 ecosystem, Axiom audit concurrency and Go concurrency review.

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