rust-api-reviewer

Review Rust web APIs for async patterns and middleware correctness.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/physics91/claude-vibe --skill rust-api-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-api-reviewer
Source: https://github.com/physics91/claude-vibe/tree/main/skills/rust-api-reviewer
Command: npx skills add https://github.com/physics91/claude-vibe --skill rust-api-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reviews Rust web APIs (Actix-web/Axum/Rocket) focusing on async handlers, extractors, state management, and middleware for robust API design.

Core Features & Use Cases

  • Async handlers & extractors: ensures correct and safe extraction of inputs.
  • State management: promotes clean and testable shared state patterns.
  • Error handling: standardizes error responses across endpoints.
  • Middleware patterns: suggests reusable layers and error handling.
  • Use Case: Improve a microservice by centralizing error handling and state access.

Quick Start

Run the rust-api-reviewer on a Rust API project to surface async patterns and middleware improvements.

Frequently Asked Questions about rust-api-reviewer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a Rust API for async correctness and middleware patterns?

Async correctness review identifies improper handler execution, extractor safety, and middleware layering in Rust REST APIs. The rust-api-reviewer analyzes Actix-web, Axum, or Rocket projects to surface async anti-patterns, state management issues, and error handling gaps across your codebase.

Does this work with Actix-web, Axum, and Rocket frameworks?

Yes. The reviewer supports Actix-web, Axum, and Rocket, including their extractors, handlers, and middleware. It also validates compatibility with Tokio runtime, database adapters like SQLx and SeaORM, and Tower middleware stacks.

What async patterns should I check in my Rust web API?

Critical patterns include async handler correctness, safe input extraction, shared state initialization, middleware ordering, error response standardization, and Tokio task spawning. The reviewer identifies deviations from best practices in these areas.

Can I validate middleware and error handling together?

Yes. The reviewer assesses middleware layers for reusability and error propagation, then maps error handling patterns across endpoints to ensure consistent, standardized responses throughout your API.

What should I do before running this review on my project?

Ensure your Rust API codebase targets one of the supported frameworks (Actix-web, Axum, or Rocket) and compiles successfully. The reviewer inspects your project structure, dependency tree, and handler implementations.

What limitations should I know about async API reviews?

The reviewer focuses on structural async patterns and middleware design; runtime behavior validation, load testing, and security audits require separate tools. It assumes Tokio runtime and standard database adapter integration.