Rust Best Practices
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.
- Type
- Skill
- Author
- apollographql
- Category
- Backend
- GitHub stars
- 119
- Installs
- 21.2K
- Last updated
- November 1, 2026
Install
npx skills add https://github.com/apollographql/skills --skill rust-best-practicesUse cases
- Write new Rust functions following idiomatic ownership patterns.
- Refactor existing Rust code to use Result-based error handling.
- Review a Rust module for borrowing, cloning, and performance issues.
Frequently Asked Questions
What is this skill based on?
Apollo GraphQL's best practices handbook for writing idiomatic Rust.
Does it help with borrowing versus cloning decisions?
Yes, that is one of the ownership patterns it covers.
Can it help review existing code?
Yes, it supports reviewing and refactoring existing Rust code, plus writing tests and documentation.
About this skill
Guides idiomatic Rust code based on Apollo GraphQL's best practices handbook. It covers writing new code, reviewing and refactoring existing code, borrowing-versus-cloning decisions, Result-based error handling, performance tuning, and writing tests and documentation. Useful whether you are starting a Rust module or cleaning one up.
Summary written with AI assistance from the project's public description.
Categories
More from apollographql
Apollo Client
Guide for building React applications with Apollo Client 4.x. Use this skill when: (1) setting up Apollo Client in a React project, (2) writing Gra...
by apollographql
Apollo MCP Server
MCP server that exposes GraphQL operations as tools for AI models.
by apollographql
GraphOS MCP Tools
Search Apollo docs, specs, and best practices
by apollographql
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh