m15-anti-pattern

Identify Rust anti-patterns in code reviews, including ownership issues, unwrap usage, cloning practices, and error handling.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mberetvas/dbt-migrator --skill m15-anti-pattern-mberetvas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: m15-anti-pattern
Source: https://github.com/mberetvas/dbt-migrator/tree/main/.github/skills/m15-anti-pattern
Command: npx skills add https://github.com/mberetvas/dbt-migrator --skill m15-anti-pattern-mberetvas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reviewers often miss anti-patterns in Rust code, leading to non-idiomatic patterns and maintainability risks.

Core Features & Use Cases

  • Anti-pattern checklist for Rust code, covering common mistakes like excessive cloning, unwrap usage, and improper ownership handling.
  • Guidance prompts to steer discussions toward idiomatic patterns and safer alternatives.
  • Quick-reference notes linking anti-patterns to better design decisions and best practices.

Quick Start

Review a Rust codebase and apply the anti-pattern checklist to surface issues and potential refactors.

Frequently Asked Questions about m15-anti-pattern

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

FAQPage Schema
How do I spot common Rust anti-patterns during a code review?

To spot Rust anti-patterns during a code review, apply a structured checklist targeting ownership issues, unwrap usage, excessive cloning, and error handling to promote idiomatic design.

What are the most common non-idiomatic Rust patterns to look for?

Common non-idiomatic Rust patterns include excessive cloning, improper unwrap usage, and incorrect ownership handling. Identifying these anti-patterns helps steer code toward safer alternatives and better design decisions.

How do I fix excessive cloning and unwrap usage in my Rust codebase?

Fix excessive cloning and unwrap usage by following guidance prompts that steer discussions toward idiomatic patterns. Use quick-reference notes linking these anti-patterns to safer alternatives and best practices for refactoring.

Can I use a checklist to improve error handling and ownership in Rust reviews?

Yes, you can use an anti-pattern checklist to improve error handling and ownership in Rust reviews. It provides actionable guidance and references to best practices to drive consistent reviews and maintainability.

Why do reviewers often miss Rust anti-patterns and how to prevent it?

Reviewers often miss Rust anti-patterns due to lack of a structured approach, leading to non-idiomatic patterns and maintainability risks. Prevent this by applying a consistent anti-pattern checklist during code reviews.