rust-best-practices
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
Skill by apollographql
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kalarislabs-rust-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
rust-best-practices- Description
- Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.
- License
- MIT
- Compatibility
- Rust 1.70+, Cargo
- Allowed tools
- Bash(cargo:*), Bash(rustc:*), Bash(rustfmt:*), Bash(clippy:*), Read, Write, Edit, Glob, Grep
- Metadata
- author: apollographql · version: 1.1.1
- Instructions
- 21 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Agent Skills spec issues
- files: referenced but missing: references/chapter_01.md, references/chapter_02.md, references/chapter_03.md, references/chapter_04.md, references/chapter_05.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# Rust Best Practices Apply these guidelines when writing or reviewing Rust code. Based on Apollo GraphQL's [Rust Best Practices Handbook](https://github.com/apollographql/rust-best-practices). ## Best Practices Reference Before reviewing, familiarize yourself with Apollo's Rust best practices. Read ALL relevant chapters in the same turn in parallel. Reference these files when providing feedback: - [Chapter 1 - Coding Styles and Idioms](references/chapter_01.md): Borrowing vs cloning, Copy trait, Option/Result handling, iterators, comments, when to extract a function (duplication vs. wrong abstraction) - [Chapter 2 - Clippy and Linting](references/chapter_02.md): Clippy configuration, important lints, workspace lint setup - [Chapter 3 - Performance Mindset](references/chapter_03.md): Profiling, avoiding redundant clones, stack vs heap, zero-cost abstractions - [Chapter 4 - Error Handling](references/chapter_04.md): Result vs panic, thiserror vs anyhow, error hierarchies - [Chapter 5 - Automated Testing](references/chapter_05.md): Test naming, one assertion per test, snapshot testing - [Chapter 6 - Generics and Dispatch](references/chapter_06.md): Static vs dynamic dispatch, trait objects - [Chapter 7 - Type State Pattern](references/chapter_07.md): Compile-time state safety, when to use it - [Chapter 8 - Comments vs Documentation](references/chapter_08.md): When to comment, doc comments, rustdoc - [Chapter 9 - Understanding
From KalarisLabs/Skill-Doctor, MIT.
More from KalarisLabs/Skill-Doctor
- 0.596score
rust-idioms
KalarisLabs
Everyday Rust engineering for Skill Doctor — errors, ownership, clippy, APIs, iterators.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
ci-cd
KalarisLabs
GitHub Actions, required checks, TestMu, OS matrix, and merge gates for Skill Doctor.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-skills
leonardomso
Comprehensive Rust coding guidelines with 265 rules across 26 categories.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-invariants
KalarisLabs
Nine non-negotiable Skill Doctor product invariants.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-workspace
KalarisLabs
Cargo workspace layout, crate boundaries, and dependency policy for Skill Doctor.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-testing
KalarisLabs
How to write Skill Doctor tests — unit, integration, CLI, fixtures, determinism, additive-only.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
rust-perf
KalarisLabs
Rust performance and memory optimization for Skill Doctor L1.
SkillBFreshness: B★ 13Claude Code +9 - 0.596score
project-context
KalarisLabs
Skill Doctor product and architecture context.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
neutralize-sd11
KalarisLabs
SD-11 scanner-mediated injection — neutralize untrusted skill bytes before any model; additive-only scoring.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
release-publish
KalarisLabs
Pre-publish and publish path for crates.io, npm installer, GitHub Releases, SBOM.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
unsafe-sandbox
KalarisLabs
Rules for unsafe Rust and the L3 behavioral process harness.
SkillBFreshness: B★ 13Claude Code +9 - 0.591score
yara-rules
KalarisLabs
Author and compile YARA-X rules for SDTM-v1.
SkillBFreshness: B★ 13Claude Code +9
Signals
- Stars
- 13
- Forks
- 1
- Open issues
- 30
- Last commit (this folder)
- Sep 10, 2026 (1 month ago)
- Last release
- Sep 12, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.1.1
- License
- MIT
- Repository
- github.com/KalarisLabs/Skill-Doctor
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.522score
rust-best-practices
apollographql
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
SkillDFreshness: D★ 85Claude Code +9 - 0.314score
rust-best-practices
apollographql
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
SkillCFreshness: C★ 4Claude Code +9 - 0.262score
rust-best-practices
apollographql
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
SkillDFreshness: D★ 1Claude Code +9
More from apollographql
- 0.740score
rust-best-practices
apollographql
Idiomatic Rust guide based on Apollo GraphQL's best practices handbook.
SkillBFreshness: B★ 125Claude Code +9 - 0.725score
Apollo MCP Server
apollographql
MCP server that exposes GraphQL operations as tools for AI models.
ConnectorAFreshness: ALocal★ 317Claude Code +5 - 0.689score
CLAUDE.md · apollographql/apollo-client
apollographql
CLAUDE.md from apollographql/apollo-client: 140 lines covering Apollo Client Overview, Common Development Commands, High-Level Architecture, Additional…
TemplateAFreshness: A★ 19.8KClaude Code - 0.522score
rust-best-practices
apollographql
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
SkillDFreshness: D★ 85Claude Code +9 - 0.520score
GraphOS MCP Server
apollographql
Search Apollo docs, specs, and best practices
ConnectorBFreshness: BRemoteClaude Code +3 - 0.479score
apollo-server
apollographql
Guide for building GraphQL servers with Apollo Server 5.x.
SkillCFreshness: CClaude Code +9
Cite this page
rust-best-practices skill. Agent Mart. https://agentmart.dev/skills/kalarislabs-rust-best-practices (last updated 2026-10-24)