rust-best-practices: a Claude Code skill by Apollo GraphQL
Official
For Rust developers who want code written and reviewed against Apollo GraphQL's handbook. Skip it if you are not writing Rust or your team already follows its own style guide.
- Score
- 75of 100
- Rank
- #124of 239
- Installs
- 22.8Kon skills.sh
- Security
- Clear 5 scanners
- Updated
- 2026
- Context
- ~107tokens always
Install
npx skills add https://github.com/apollographql/skills --skill rust-best-practices
Run it in your terminal. View the source
Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app
What does rust-best-practices do?
rust-best-practices is a skill that applies Apollo GraphQL's Rust handbook when Claude writes or reviews Rust. Before a review, Claude reads the relevant chapters among nine, covering idioms, Clippy, performance, error handling, testing, generics, the type state pattern, comments and pointers. The quick rules include borrowing &T instead of cloning, never calling unwrap() outside tests, thiserror for libraries and anyhow for binaries, benchmarking with --release, and running cargo clippy --all-targets --all-features --locked -- -D warnings. It favors #[expect] over #[allow], descriptive test names, and a linked issue on every TODO.
When should you use rust-best-practices?
Use it when
- You are writing a new Rust module or function
- You are deciding between borrowing and cloning
- You want a Rust review grounded in a named handbook
Skip it when
- Your project is not in Rust
- Your team has a conflicting Rust style guide
What it needs and what it can touch
You need
- Rust 1.70+ with Cargo
What it can do
- Runs shell commands (cargo, rustc, rustfmt, clippy)
- Reads and edits project files
From reading its instructions, not from running it.
Why it scores 75
Strongest on upkeep (100 of 100), weakest on adoption (36).
Is rust-best-practices safe to install?
Every scanner that checked it passed it. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Sep 28, 2026 |
| Socket | Passed | Sep 28, 2026 |
| Snyk | Low risk | Sep 28, 2026 |
| Runlayer | Low risk | Mar 10, 2026 |
| ZeroLeaks | Passed | Apr 16, 2026 |
Details
- Installs
- 22,779
- Repository stars
- 129
- Last repository change
- Tokens always loaded
- about 107
- Tokens when used
- about 932
- License
- MIT
- Data confidence
- High
Did it do the job for you?
Alternatives to rust-best-practices
All skills for this job-
Get ast-grepast-grep
For developers who need to find code by its structure, like async functions without try-catch.
-
Get swiftui-proswiftui-pro
For iOS and Mac developers who want SwiftUI code reviewed for outdated APIs, accessibility and performance.
-
Get code-review-and-qualitycode-review-and-quality
For developers who want a structured review of a diff or pull request before merging.
-
Get golang-error-handlinggolang-error-handling
For Go developers who want consistent error wrapping, checks and slog logging in new code or reviews.