code-review

Review Rust code for correctness, style, performance, and security.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/LudwigAJ/swell --skill code-review-ludwigaj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-review
Source: https://github.com/LudwigAJ/swell/tree/main/.swell/skills/code-review
Command: npx skills add https://github.com/LudwigAJ/swell --skill code-review-ludwigaj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps reviewers quickly assess Rust changes for correctness, style, performance, and security without missing subtle issues in ownership, borrowing, concurrency, or error handling.

Core Features & Use Cases

  • PR and Pre-Commit Review: Evaluate proposed changes before merge and flag risks early.
  • Rust-Specific Checks: Look for idiomatic patterns, unnecessary cloning, poor error propagation, and unsafe concurrency choices.
  • Quality Gate Support: Pair the review with clippy, tests, and formatting checks to validate code quality consistently.
  • Use Case: A teammate submits a service refactor, and this Skill helps confirm the code is correct, efficient, and safe to ship.

Quick Start

Ask the AI to review the Rust changes for correctness, idiomatic style, performance, and security before you merge them.

Frequently Asked Questions about code-review

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

FAQPage Schema
How do I review Rust code for ownership and borrowing issues before merging?

Review Rust code for ownership, borrowing, and concurrency issues by evaluating proposed changes for correctness, idiomatic style, and safe resource management before merge. This catches subtle error handling risks early in the pull request stage.

What does a Rust code review check for regarding performance and security?

A Rust code review checks for unnecessary cloning, poor error propagation, and unsafe concurrency choices to verify performance and security. It ensures idiomatic Rust patterns and safe resource management are applied consistently across the codebase.

Can I use clippy warnings and tests to validate Rust code quality during review?

You can use clippy warnings and tests to validate Rust code quality by pairing them with the review as a quality gate. This combination verifies lint compliance, safe resource management, and test-driven validation consistently before shipping.

Does this Rust code review work for pre-commit checks and manual audits?

This Rust code review works for pre-commit checks and manual audits by evaluating proposed changes before merge and flagging risks early. It applies to manual audits of ownership, borrowing, concurrency, and error handling to confirm code is safe to ship.

What is the best way to catch unsafe concurrency and poor error propagation in Rust?

The best way to catch unsafe concurrency and poor error propagation in Rust is through manual audits and pull request reviews. This approach looks for idiomatic patterns, verifies safe resource management, and flags risks early before code ships.