rust-anti-pattern

Community

Write idiomatic Rust, avoid pitfalls.

Authorhuiali
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps Rust developers identify and refactor common anti-patterns and code smells, leading to more robust, idiomatic, and maintainable Rust code.

Core Features & Use Cases

  • Pattern Detection: Identifies anti-patterns like .clone() abuse, .unwrap() in production, and excessive String usage.
  • Refactoring Guidance: Provides concrete examples and strategies for rewriting problematic code into idiomatic Rust.
  • Use Case: During a code review, you encounter a function with many .clone() calls. Use this Skill to understand why it's an anti-pattern and how to refactor it using references or better ownership management.

Quick Start

Analyze the provided Rust code snippet for common anti-patterns and suggest idiomatic improvements.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rust-anti-pattern
Download link: https://github.com/huiali/rust-skills/archive/main.zip#rust-anti-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.