Rust rules

From softspark/ai-toolkit · View interactive version

Rust rules is an AI agent skill from the GitHub repository softspark/ai-toolkit. Rust coding rules: style, patterns, security, testing. Triggers: .rs, Cargo.toml, Cargo.lock, Tokio, Axum, Serde, clippy, cargo test.

How to use this skill

Skill file

Rust Rules

These rules come from app/rules/rust/ in ai-toolkit. They cover

the project's standards for coding style, frameworks, patterns,

security, and testing in Rust. Apply them when writing or

reviewing Rust code.

Rust Coding Style

Naming

Ownership

Types

Functions

Modules

Formatting

Cargo

Rust Frameworks

Axum

Actix-web

Tokio

SQLx

Serde

Clap

Tracing

Testing Crates

Rust Patterns

Error Handling

Builder Pattern

Newtype Pattern

Trait Design

Async Patterns

Iterator Patterns

State Machine

Anti-Patterns

Rust Security

Memory Safety

Input Validation

SQL Injection

Cryptography

Dependencies

Secrets

Panic Safety

Network Security

Supply Chain

Rust Testing

Unit Tests

Integration Tests

Assertions

Result Testing

Mocking

Property Testing

Benchmarks

CI Pipeline

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.