# Rust

> Rust is an open-source agent skill for developer tools. Rust coding conventions for imports, methods, TLS trust stores and clippy checks. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/sorah/config/tree/master/claude/marketplace/plugins/sorah-guides/skills/rust
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** rust
- **Collection:** https://github.com/sorah/config
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives an agent a set of Rust coding conventions to follow when writing or reviewing code. It covers how to structure imports and references, when to prefer methods and associated functions over free functions, and how to extend types you do not own through traits or wrapper structs.

A notable section covers TLS root certificates. It directs the agent to trust the operating system certificate store rather than bundling a root set into the binary, and it lists the reqwest feature flags to use for each version, along with checks for dependencies that pull in webpki roots by default. It suggests verifying the dependency tree with cargo tree.

The skill is a single SKILL.md file with no scripts. It states that project-specific conventions such as CLAUDE.md or style guides take precedence over its guidance. It is distributed as part of a Claude Code plugin marketplace.

## When your agent uses it

> This skill should be used when writing or reviewing Rust code, or when the project uses "Rust", "Cargo", "cargo clippy", "crate", or Rust module patterns. Provides Rust coding conventions, patterns, and best practices. Project-specific conventions always take priority.

## What it can access

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

- [Instructions only, no scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/rust)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/rust)

## Features

- **Import and path rules:** Guidance on when to avoid use statements and when to use crate:: references.
- **Methods over free functions:** Advice on placing behavior on types through methods, associated functions and trait impls.
- **Extending foreign types:** A ranked approach for adding functionality to types from other crates.
- **TLS trust store configuration:** Feature flags and dependency checks for using the system CA store with reqwest and rustls.
- **Clippy before commit:** A development rule requiring cargo clippy to pass before committing.

## Good for

- Review my Rust module for conventions and import style
- Add an HTTP client that trusts the system certificate store
- Refactor free functions into methods on my Rust types
- Check whether my dependencies pull in bundled webpki roots

## Install

### Claude Code

This skill ships in the `sorah-guides` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplace
```

Or copy only this skill to `~/.claude/skills/rust`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/rust &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rust" ~/.claude/skills/rust &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/rust` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/rust` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/rust &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rust" ~/.agents/skills/rust &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/rust` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/rust` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/rust &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rust" ~/.cursor/skills/rust &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/rust` 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/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/rust
```

Or copy the folder to `~/.gemini/skills/rust` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/rust &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rust" ~/.copilot/skills/rust &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/rust` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/sorah/config.git
```

Then copy `config/claude/marketplace/plugins/sorah-guides/skills/rust` into your agent's skills folder as `rust`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Rust trigger?

It is meant to be used when writing or reviewing Rust code, or when a project mentions Rust, Cargo, cargo clippy, crates or Rust module patterns.

### Do project conventions override Rust?

Yes. The skill states that project-specific conventions such as CLAUDE.md or style guides always take priority over its guidance.

### What TLS guidance does Rust give?

It recommends trusting the system CA store, gives reqwest feature flags for versions 0.12 and 0.13, and suggests checking dependency features with cargo tree.

### How do I install Rust in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/rust to use it in all your projects, or to .claude/skills/rust in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.

### Does Rust 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 Rust?

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 Rust?

The closest alternatives to Rust are Coding guidelines, Rust router, Rust skill creator, Domain CLI and Rust learner.

## Where this comes from

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

## Alternatives

- [Coding guidelines](https://ai-powered.com/skills/coding-guidelines): Coding guidelines is an open-source agent skill for developer tools.
- [Rust router](https://ai-powered.com/skills/rust-router): Rust router is an open-source agent skill for developer tools.
- [Rust skill creator](https://ai-powered.com/skills/rust-skill-creator): Rust skill creator is an open-source agent skill for developer tools.
- [Domain CLI](https://ai-powered.com/skills/domain-cli): Domain CLI is an open-source agent skill for developer tools.
- [Rust learner](https://ai-powered.com/skills/rust-learner): Rust learner 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.
- [Coding](https://ai-powered.com/skills/coding): Coding is an open-source agent skill for developer tools.
- [Code](https://ai-powered.com/skills/code): Code is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/rust-sorah
