Skip to main content

AI skills for Rust

AI Coding Skills for Rust

Browse the best AI coding skills for Rust in 2026, Tokio async patterns, Axum / Actix API scaffolding, cargo workspace management, security audits with cargo-audit. Works with every major AI coding tool.

Short answer

The best AI coding skills for Rust are skills-hub's `code-review`, `unit-test` (cargo test + tokio-test patterns), `api-scaffold` (Axum / Actix), `secure`, `dependency-scan` (cargo-audit), and `docker` (multi-stage Rust builds). All portable across Claude Code, Cursor, Codex CLI, Windsurf, Copilot, and Cline.

Rust is the second-most-loved language in 2026 and AI coding skills here are mature, though smaller than for TypeScript or Python. The skills below detect your Rust stack (cargo workspaces, Tokio, Axum, Actix-web, SQLx, sqlx-cli) and emit idiomatic Rust with proper lifetimes, Result chains, and async patterns. They respect ownership semantics rather than fighting them.

Top skills for Rust

  1. 01backend-development

    8 installs

    Build robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis), APIs (REST, GraphQL, gRPC), authentication (OAuth 2.1, JWT), testing strategies, security best practices (OWASP Top 10), performance optimization, scalability patterns (microservices, caching, sharding), DevOps practices (Docker, Kubernetes, CI/CD), and monitoring. Use when designing APIs, implementing authentication, optimizing database queries, setting up CI/CD pipelines, handling security vulnerabilities, building microservices, or developing production-ready backend systems.

    Buildfrom ClaudeKit Skills
  2. 02dynamic-skill-loader

    4 installs

    Auto-detects the current project's technology stack and hot-loads context-appropriate skills at session start using Claude Code's SessionStart hook with reloadSkills: true. Detects Node.js/TypeScript, Next.js, Python, Rust, Go, Ruby, and monorepo layouts. Emits a .claude/dynamic-context.md with the detected stack and recommended skill list, then signals Claude Code to reload skills before the first agent turn.

    Productivityfrom Skills Hub
  3. 03common-security-audit

    3 installs

    Probe for hardcoded secrets, injection surfaces, unguarded routes, business logic flaws, and platform-specific weaknesses across backend (Node, Go, Java, Python, Rust), frontend (React, Angular, Vue), and mobile (iOS, Android, Flutter) codebases. Use when performing security audits, vulnerability scans, secrets detection, or penetration testing.

    Buildfrom Multi-Language Standards
  4. 04rust-best-practices

    3 installs

    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.

    Buildfrom Apollo GraphQL
  5. 05code-reviewer

    3 installs

    Code review automation for TypeScript, JavaScript, Python, Go, Swift, Kotlin, C#, .NET, Java, C, C++, Rust, Ruby, PHP, and Dart/Flutter. Analyzes PRs for complexity and risk, checks code quality for SOLID violations and code smells, generates review reports. Use when reviewing pull requests, analyzing code quality, identifying issues, generating review checklists.

    Buildfrom Multi-Domain Skills
  6. 06huggingface-tokenizers

    3 installs

    Fast tokenizers optimized for research and production. Rust-based implementation tokenizes 1GB in <20 seconds. Supports BPE, WordPiece, and Unigram algorithms. Train custom vocabularies, track alignments, handle padding/truncation. Integrates seamlessly with transformers. Use when you need high-performance tokenization or custom tokenizer training.

    Researchfrom AI Research Skills
  7. 07code-testing-agent

    2 installs

    MANDATORY ENTRY POINT for generating or writing tests. Invoke this skill before editing files whenever the user asks to generate tests, write/add unit tests, scaffold a test project or suite, improve/achieve coverage, extend an existing suite to cover an untested method, or test an app, API, service, module, library, or package. Applies to a single function, method or file as much as to a whole project — scope changes how much of the workflow runs, never whether the skill applies. Invoke it when the workspace looks sparse, gutted or partially deleted — then test only the source that remains and never restore missing source. Polyglot: C#/.NET, Python, TypeScript/JavaScript, Go, Rust, Java, Ruby. DO NOT USE FOR: running existing tests (use run-tests); analyzing coverage reports (use coverage-analysis or crap-score); MSTest-specific test authoring or modernization (use writing-mstest-tests).

    Buildfrom .NET
  8. 08linter

    2 installs

    Configure linting, formatting, and editor integration for any stack. Sets up ESLint 9 or Biome for JS/TS, Ruff for Python, golangci-lint for Go, Clippy for Rust, RuboCop for Ruby, or dart analyze for Flutter. Adds Prettier or equivalent formatter, .editorconfig, and VS Code format-on-save. Use when you need to add a linter, fix formatting inconsistencies, migrate from legacy lint tools, or set up code style enforcement.

    Productivityfrom Skills Hub
  9. 09rust

    2 installs

    Expert in Rust development with focus on safety, performance, and async programming

    Buildfrom Mindrally Skills
  10. 10rust-skills

    2 installs

    Comprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, concurrency, unsafe code, API design, memory optimization, performance, numeric safety, conversions, serde, pattern matching, macros, closures, observability, testing, and common anti-patterns. Invoke with /rust-skills.

    Buildfrom Rust Skills
  11. 11tauri-development

    2 installs

    Tauri development guidelines for building cross-platform desktop applications with TypeScript, Rust, and modern web technologies

    Buildfrom Mindrally Skills
  12. 12cli-tool

    1 installs

    Generate a production-ready command-line tool -- scaffold a complete CLI application with subcommand parsing, interactive prompts with validation, colored and structured output (tables, spinners, progress bars), JSON output mode for scripting, XDG-compliant config management, custom error types with exit codes, and distribution setup for publishing. Supports Node.js (Commander.js, Inquirer, chalk, ora), Python (Typer, Rich, httpx, Pydantic), Go (Cobra, Bubble Tea, Lip Gloss, Viper, goreleaser), and Rust (clap derive, dialoguer, console, comfy-table). Build a CLI, create command-line app, generate terminal tool, scaffold CLI utility, new CLI project.

    Buildfrom Skills Hub
  13. 13qdrant-vector-search

    1 installs

    High-performance vector similarity search engine for RAG and semantic search. Use when building production RAG systems requiring fast nearest neighbor search, hybrid search with filtering, or scalable vector storage with Rust-powered performance.

    Researchfrom AI Research Skills
  14. 14spec-to-repo

    Use when the user says 'build me an app', 'create a project from this spec', 'scaffold a new repo', 'generate a starter', 'turn this idea into code', 'bootstrap a project', 'I have requirements and need a codebase', or provides a natural-language project specification and expects a complete, runnable repository. Stack-agnostic: Next.js, FastAPI, Rails, Go, Rust, Flutter, and more.

    Buildfrom Multi-Domain Skills
  15. 15turbopack-bundler

    Best practices and guidelines for Turbopack, the Rust-powered incremental bundler for Next.js and modern web development

    Buildfrom Mindrally Skills
  16. 16constant-time-analysis

    Detects timing side-channel vulnerabilities in cryptographic code. Use when implementing or reviewing crypto code, encountering division on secrets, secret-dependent branches, or constant-time programming questions in C, C++, Go, Rust, Swift, Java, Kotlin, C#, PHP, JavaScript, TypeScript, Python, or Ruby.

    Buildfrom Trail of Bits
  17. 17grade-tests

    Grades a specified set of test methods individually and produces a concise table mapping each test (fully-qualified name) to a letter grade (A–F), a score band, and a one-line note — designed to be posted as a PR comment. Use when the caller wants per-test feedback on a curated list of methods (for example, the new or modified tests in a pull request), not a suite-wide audit. Polyglot: .NET, Python, TS/JS, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, C++. Input is a list of test methods (or method bodies / file+line spans); output is a compact markdown table plus a short summary. DO NOT USE FOR: full suite audits (use test-quality-auditor agent or test-anti-patterns), writing new tests (use code-testing-generator agent or writing-mstest-tests), fixing failures, or measuring code coverage.

    Buildfrom .NET
  18. 18test-smell-detection

    Deep-dive audit using the full testsmells.org 19-smell academic catalog for tests in any language. Every finding maps to a named, citable smell from the research literature (Assertion Roulette, Duplicate Assert, Mystery Guest, Eager Test, Sensitive Equality, Conditional Test Logic, Sleepy Test, Magic Number Test, etc.) with research-backed severity. Polyglot: .NET (MSTest/xUnit/NUnit/TUnit), Python (pytest/unittest), TS/JS (Jest/Vitest/Mocha/node:test), Java (JUnit/TestNG), Go, Ruby (RSpec/Minitest), Rust, Swift, Kotlin (JUnit/Kotest), PowerShell (Pester), C++ (GoogleTest/Catch2). INVOKE ONLY when explicitly asked for the testsmells.org 19-smell academic catalog or citable smell names from the literature. DO NOT USE FOR: general or pragmatic audits — use test-anti-patterns; writing new tests (use code-testing-agent, or writing-mstest-tests for MSTest); running tests (use run-tests); framework migration.

    Buildfrom .NET

Frequently asked questions

Do AI skills understand Rust lifetimes?

Yes, the better ones do. Modern Claude Opus and GPT-5 generate Rust code with correct lifetime annotations on first try ~80% of the time. The code-review skill catches lifetime mistakes the model might miss.

Can AI generate Tokio async tests?

Yes. The unit-test skill detects Tokio and emits #[tokio::test] tests with proper async setup, mock channels, and timeout patterns.

What's the best AI tool for Rust?

Cursor and Claude Code both handle Rust well. Cursor's inline completion is best-in-class. Claude Code excels at multi-crate workspace refactors and migration to new dependencies.

Do AI skills handle cargo workspaces?

Yes. Modern skills parse `Cargo.toml` workspace members and respect inter-crate dependencies when scaffolding new modules.

Other languages and frameworks