review-and-fix

Analyzes Rust source code and fixes logic, concurrency issues, simplifications, and naming conventions.

1.8k|249|Updated Aug 3, 2023
One-click install
npx skills add https://github.com/robustmq/robustmq --skill review-and-fix-robustmq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-and-fix
Source: https://github.com/robustmq/robustmq/tree/main/.claude/skills/review-and-fix
Command: npx skills add https://github.com/robustmq/robustmq --skill review-and-fix-robustmq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of reviewing and fixing Rust source code, identifying logic errors, concurrency issues, and simplification opportunities to improve code quality and maintainability.

Core Features & Use Cases

  • Logic Error Detection: Identifies common logic errors like asymmetric data structure operations and offset/commit semantics issues.
  • Concurrency/Lock Issue Fixing: Addresses issues like improper lock management and incorrect usage of shared data structures.
  • Simplification Opportunities: Implements code simplifications like reducing redundancy and improving readability.
  • Comment and Test Case Review: Ensures code comments are lean and relevant, and tests are thorough and efficient.
  • Naming Conventions: Refactors function and module names to align with their actual behavior.
  • Use Case: For a developer, use this Skill to analyze and fix code in a Rust project, ensuring high code quality and reducing future bugs.

Quick Start

Run the 'review-and-fix' skill on your Rust file 'src/mqtt-broker/src/subscribe/buckets.rs' to start the analysis and fixing process.

Frequently Asked Questions about review-and-fix

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

FAQPage Schema
How do I find and fix concurrency and lock issues in Rust source code?

To fix concurrency and lock issues in Rust source code, automate the review process to identify improper lock management and incorrect usage of shared data structures, which improves overall code maintainability.

What are common logic errors in Rust data structures and how can I detect them?

Common logic errors in Rust data structures include asymmetric operations and offset or commit semantics issues. You can detect them by performing deep source code analysis to identify these exact structural mismatches automatically.

How do I simplify Rust code and improve naming conventions automatically?

To simplify Rust code automatically, run an analysis script to reduce redundancy and refactor function or module names, ensuring your naming conventions align with actual behavior and improving readability.

Can I use this automated review tool to check Rust comments and test cases?

Yes, you can use this automated review tool to check Rust comments and test cases. It ensures code comments remain lean and relevant while verifying that tests are thorough and efficient.

Does this Rust code review process require any external dependencies?

No, this Rust code review process requires no external dependencies. It operates independently using internal scripts to analyze your source files and identify potential logic or concurrency errors.