# rust

Guides agents through systems-level Rust conventions for storage engines, tokio, and binary data. Keeps changes aligned with workspace rules.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 133 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/rust/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/ulpi-io-rust

## What it does

This skill routes Rust tasks through workspace conventions instead of default boilerplate. The agent first identifies the target subsystem, such as storage engines or concurrency. Then it reads only the matching guide from `references/`. Context stays lean.

Strict systems-level guardrails control code changes. Library crates must rely on `thiserror`, reserving `anyhow` strictly for binaries and tests. Every single `unsafe` block demands an explanatory `// SAFETY:` note. Blocking CPU workloads must run via `spawn_blocking` to preserve the `tokio` runtime. Verification finishes with `cargo fmt` and `cargo clippy -- -D warnings`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill rust -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/rust/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/rust/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill rust -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/rust/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill rust -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/rust/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills rust
```

2. **Manually: put the files in place**
- File: `.github/skills/rust/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill rust -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path rust
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/rust/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill rust -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/rust/SKILL.md

## When to use it
- structure workspace crates without circular dependencies
- enforce `thiserror` hierarchies across library crates
- isolate blocking work inside `tokio` using `spawn_blocking`
- run property tests for binary formats using `proptest`

## Example prompts
- Implement zero-copy parsing for our binary format
- Move heavy CPU calculations to `spawn_blocking` in this crate
- Refactor crate error handling to use `thiserror` instead of `anyhow`

## Similar
- [rust-testing](https://affpapa.org/en/nevibecode/skills/rust-testing.md) — skill · 8400 installs
- [rust-engineer](https://affpapa.org/en/nevibecode/skills/rust-engineer.md) — skill · 6900 installs
- [rust_development](https://affpapa.org/en/nevibecode/skills/vuralserhat86-rust-development.md) — skill · 1 install
- [rust-stinger](https://affpapa.org/en/nevibecode/skills/rust-stinger.md) — skill · ★ 96 repo stars
- [rust-wasp-drone](https://affpapa.org/en/nevibecode/agents/rust-wasp-drone.md) — subagent · ★ 96 repo stars
- [rust-best-practices](https://affpapa.org/en/nevibecode/skills/pedro-nauck-rust-best-practices.md) — skill · 298 installs

## Other versions with the same name
- [rust · mindrally](https://affpapa.org/en/nevibecode/skills/mindrally-rust.md) — 832 installs
- [rust · fandhe-ai](https://affpapa.org/en/nevibecode/skills/rust.md) — 1300 installs
- [rust · martinholovsky](https://affpapa.org/en/nevibecode/skills/martinholovsky-rust.md) — 268 installs
- [rust · oakoss](https://affpapa.org/en/nevibecode/skills/oakoss-rust.md) — 128 installs
- [rust · finom](https://affpapa.org/en/nevibecode/skills/finom-rust.md) — ★ 57 repo stars

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
