# M07 concurrency

> M07 concurrency is an open-source agent skill for developer tools. Guides Rust agents through threads, async, channels and locks for concurrency errors. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/k1-c/linear-tui/tree/main/.claude/skills/m07-concurrency
- **Repository:** https://github.com/k1-c/linear-tui
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** m07-concurrency
- **Collection:** https://github.com/k1-c/linear-tui
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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, 并发, 线程, 异步, 死锁

## 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/m07-concurrency)
- [License: MIT](https://github.com/k1-c/linear-tui/tree/HEAD/.claude/skills/m07-concurrency)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/m07-concurrency` 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/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.

### Codex

Copy the skill folder to `~/.agents/skills/m07-concurrency` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/m07-concurrency` 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/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.

### 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/m07-concurrency
```

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

### VS Code

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

```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/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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Axiom concurrency](https://ai-powered.com/skills/axiom-concurrency-charleswiltgen-2): Axiom concurrency 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.
- [M11 ecosystem](https://ai-powered.com/skills/m11-ecosystem): M11 ecosystem is an open-source agent skill for developer tools.
- [Axiom audit concurrency](https://ai-powered.com/skills/axiom-audit-concurrency): Axiom audit concurrency is an open-source agent skill for developer tools.
- [Go concurrency review](https://ai-powered.com/skills/go-concurrency-review): Go concurrency review is an open-source agent skill for developer tools.
- [M01 ownership](https://ai-powered.com/skills/m01-ownership): M01 ownership 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.
- [M06 error handling](https://ai-powered.com/skills/m06-error-handling): M06 error handling is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/m07-concurrency
