Skip to skills
AI Craft Pad
Home/Skills/Development/rust-best-practices
First-party source

Rust Best Practices

Review Rust implementation choices around ownership, fallible behavior, testing and measured performance.

Editorial review checked 2026-10-29 against this instruction snapshot. Supporting scripts and runtime behavior remain outside this editorial review.

What it does

The source packages Apollo’s Rust conventions into a practical development reference. It discusses borrowing, cloning, result types, iterators, dispatch and documentation. This is useful for code review when several implementations compile but differ in allocation, error behavior and clarity of the public interface.

Best for

Rust developers writing or reviewing services and libraries with conventions similar to Apollo projects.

Tradeoffs and requirements

These are publisher conventions rather than a complete Rust correctness proof. An optimization suggestion should be checked against the project’s workloads, supported compiler versions and API requirements. Avoiding a particular syntax does not by itself establish better performance or reliability.

Rust 1.70+, Cargo

Install from the source

Inspect the pinned source snapshot and its supporting files first. The command selects this skill through the open-source skills CLI. Node.js and agent-specific setup may be required. Installation can download code. Catalog ingestion never executes skill instructions or install scripts.

npx skills add https://github.com/apollographql/skills/tree/9dda1397730370aeb8df4ff8f2015c34c86b5003/skills/rust-best-practices --skill rust-best-practices

Review pinned skill folder ↗ · CLI documentation ↗

After source review, use npx skills check and npx skills update to inspect and apply upstream updates. Re-check changed instructions before running them.

Safety & review signals

Static review only. This is not a security audit or a guarantee of safety.

SKILL.md text only; scripts, dependencies and runtime behavior not audited.

  • Network Access — review the source context.

Allowed tools declaration: Bash(cargo:*) Bash(rustc:*) Bash(rustfmt:*) Bash(clippy:*) Read Write Edit Glob Grep. Runtime permissions and network behavior: Unknown.

AI Craft Pad Skill Score

85/100 · Metadata coverage 100% · Model 1.0

Scores summarize observable discovery signals. Popularity and repository activity apply to the whole repository. Unknown runtime safety earns no certification.

Documentation
100/100
100
Maintenance
100/100
100
License Clarity
100/100
100
Repository Health
100/100
100
Compatibility Evidence
80/100
80
Popularity
38/100
38
Originality
80/100
80
Static Safety
60/100
60
Read the formula and limits →

Suggested workflow

Inspect the repository lint and toolchain configuration, identify a concrete ownership or error-handling problem and make the smallest readable change. Preserve public behavior, prefer explicit fallible boundaries and use profiling evidence before trading clarity for a speculative optimization.

How to judge the result

Run formatting, configured lints and relevant tests with the intended toolchain. Include error and boundary cases, check documentation examples where present and benchmark an actual workload before claiming reduced allocation or faster execution from a refactor.

Similar skills to compare

Related by category; compare scope and dependencies before choosing an alternative.

Development88/100

brainstorming

obra/superpowers

Explore brainstorming as a development workflow from obra/superpowers. Compare its source, maintenance and review signals before choosing it for your agent.

Community sourceMIT

Repository star change: +1264 over 41.38 hours. 2026-10-31

309,983 repo stars0 text flagsReview ↗
Development88/100

receiving code review

obra/superpowers

Explore receiving code review as a development workflow from obra/superpowers. Compare its source, maintenance and review signals before choosing it for your agent.

Community sourceMIT

Repository star change: +1264 over 41.38 hours. 2026-10-31

309,983 repo stars0 text flagsReview ↗
Development88/100

requesting code review

obra/superpowers

Explore requesting code review as a development workflow from obra/superpowers. Compare its source, maintenance and review signals before choosing it for your agent.

Community sourceMIT

Repository star change: +1264 over 41.38 hours. 2026-10-31

309,983 repo stars1 text flagReview ↗

More from this source

Development85/100

apollo client

apollographql/skills

Integrate Apollo Client with React using framework-specific data loading and cache behavior.

First-party sourceMITEditorial review

Repository star change: +1 over 40.37 hours. 2026-10-31

123 repo stars0 text flagsReview ↗
Development85/100

apollo connectors

apollographql/skills

Explore apollo connectors as a development workflow from apollographql/skills. Compare its source, maintenance and review signals before choosing it for your agent.

Deprecated sourceMIT

Repository star change: +1 over 40.37 hours. 2026-10-31

123 repo stars3 text flagsReview ↗
Design & UX85/100

apollo federation

apollographql/skills

Model federated GraphQL entities and shared fields with explicit subgraph ownership and composition checks.

First-party sourceMITEditorial review

Repository star change: +1 over 40.37 hours. 2026-10-31

123 repo stars1 text flagReview ↗