senior-rust-code-reviewer

Review Rust code for correctness, memory safety, concurrency, and API design.

1|Updated Jul 2, 2025
One-click install
npx skills add https://github.com/jeickmeier/rfin --skill senior-rust-code-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: senior-rust-code-reviewer
Source: https://github.com/jeickmeier/rfin/tree/main/.cursor/skills/senior-rust-code-reviewer
Command: npx skills add https://github.com/jeickmeier/rfin --skill senior-rust-code-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a thorough, senior-level review of Rust code changes, focusing on correctness, safety, concurrency, performance, and API stability to prevent bugs and ensure code quality.

Core Features & Use Cases

  • Comprehensive Code Analysis: Analyzes Rust code for potential issues across multiple critical dimensions.
  • Safety Focus: Pays special attention to unsafe blocks, FFI boundaries, and concurrency primitives to prevent memory unsafety and data races.
  • Performance & API Review: Identifies performance regressions and ensures public API stability and clarity.
  • Use Case: When reviewing a pull request that introduces new Rust features, modifies existing logic, or touches performance-critical sections, this Skill will provide a detailed breakdown of risks and actionable feedback.

Quick Start

Review the attached Rust code diff for potential issues.

Frequently Asked Questions about senior-rust-code-reviewer

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

FAQPage Schema
How do I review Rust code for memory safety and concurrency issues?

Rust code review for memory safety and concurrency issues requires analyzing unsafe blocks, FFI boundaries, and concurrency primitives to validate safety justifications and prevent data races or undefined behavior.

What is the best way to check a Rust pull request for performance regressions?

The best way to check a Rust pull request for performance regressions is to analyze code changes for potential performance bottlenecks and ensure that new logic does not introduce inefficiencies in performance-critical sections.

How do I validate safety justifications for unsafe blocks in Rust?

To validate safety justifications for unsafe blocks in Rust, review the code to ensure the invariants preventing undefined behavior are thoroughly documented and that FFI calls maintain memory safety boundaries.

Can I use an automated review to check Rust API design and stability?

Yes, you can use an automated review to check Rust API design and stability by analyzing public APIs to ensure they are stable, well-documented, and clearly structured for consumers.

What are common race conditions and deadlocks to look for in Rust concurrency?

Common race conditions and deadlocks to look for in Rust concurrency involve improper synchronization of concurrency primitives, which can lead to data races and undefined behavior if safety justifications are invalid.