rust-skills

Review Rust code against 179 rules across 14 categories.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/NealST/HarnessCode --skill rust-skills-nealst
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-skills
Source: https://github.com/NealST/HarnessCode/tree/main/.agents/skills/rust-skills
Command: npx skills add https://github.com/NealST/HarnessCode --skill rust-skills-nealst

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers write better Rust code by providing a set of 179 rules across 14 categories, covering ownership, error handling, async patterns, API design, memory optimization, performance, testing, and anti-patterns.

Core Features & Use Cases

  • Comprehensive Guidelines: Provides a comprehensive set of rules for Rust coding, ensuring code quality and adherence to best practices.
  • 179 Rules Across 14 Categories: Covers ownership, error handling, memory optimization, API design, async patterns, and more.
  • Quick Reference: Offers a quick reference for rules, prioritized by impact, to guide LLMs in code generation and refactoring.
  • Use Cases: Suitable for writing new Rust functions, reviewing code, optimizing performance, and refactoring existing code.

Quick Start

Use the rust-skills skill to review your Rust code with the command: /rust-skills review this function.

Frequently Asked Questions about rust-skills

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

FAQPage Schema
What are the best practices for Rust ownership and error handling?

Rust best practices for ownership and error handling involve applying structured coding guidelines to analyze and refactor code. This Skill provides 179 rules across 14 categories to optimize memory usage and ensure robust error management.

How do I review and refactor Rust code for performance optimization?

To review and refactor Rust code for performance optimization, you can analyze your functions against prioritized coding guidelines. This Skill evaluates your code against 179 rules to identify anti-patterns and suggest improvements for memory and performance.

Can I use these Rust coding guidelines for async API design?

Yes, you can use these Rust coding guidelines for async API design. The Skill includes specific rules covering async patterns and API design, allowing you to evaluate and refine your asynchronous Rust functions against established best practices.

What is the best way to enforce code quality in Rust?

The best way to enforce code quality in Rust is by applying a comprehensive set of coding guidelines during development and code review. This Skill offers 179 prioritized rules to guide LLMs in code generation and refactoring to prevent anti-patterns.

Does this Rust guidelines skill cover testing patterns?

Yes, this Rust guidelines Skill covers testing patterns. It provides specific rules for testing within its 14 categories, helping you analyze and refactor your test code to ensure high quality and adherence to best practices.