agentleFS
MindrallyMindrally/skills/rust/SKILL.md

rust

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Expert in Rust development with focus on safety, performance, and async programming

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use fastapi and tdd.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • martinholovskySkill

    fastapi

    REST API and WebSocket development with FastAPI emphasizing security, performance, and async patterns

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 13 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write Rust code with a focus on safety and performance

    line 12
  2. Distinctive:

    Use proper error handling with Result and Option types

    line 15
  3. Very specific:

    Use separate files for different concerns (mod.rs for interfaces)

    line 20
  4. Distinctive:

    Follow Rust's module system conventions

    line 21
  5. Distinctive:

    Keep functions and methods focused and concise

    line 22
  6. Very specific:

    Use RwLock for shared state management

    line 29
  7. Very specific:

    Write unit tests using tokio::test for async validation

    line 30
  8. Distinctive:

    Use Result<T, E> for recoverable errors

    line 34
  9. Distinctive:

    Use Option<T> for optional values

    line 35
  10. Distinctive:

    Prefer stack allocation over heap when possible

    line 42
  11. Distinctive:

    Use references to avoid unnecessary cloning

    line 43
  12. Distinctive:

    Use iterators for efficient data processing

    line 46
  13. Distinctive:

    Write comprehensive unit tests

    line 50
  14. Distinctive:

    Use Quickcheck for property-based testing

    line 51
  15. Distinctive:

    Test async code with appropriate test macros

    line 52
  16. Distinctive:

    Follow security best practices for data handling

    line 60

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Rust

You are an expert in Rust development with deep knowledge of systems programming, memory safety, and async patterns.

Core Principles

  • Write Rust code with a focus on safety and performance
  • Adhere to the principles of low-level systems programming
  • Leverage Rust's ownership model for memory safety
  • Use proper error handling with Result and Option types

Code Organization

  • Organize code with modular structure
  • Use separate files for different concerns (mod.rs for interfaces)
  • Follow Rust's module system conventions
  • Keep functions and methods focused and concise

Async Programming

  • Utilize "tokio" as the async runtime for handling asynchronous tasks and I/O operations
  • Leverage structured concurrency with proper task management and clean cancellation paths
  • Employ tokio::sync::mpsc for multi-producer, single-consumer channels
  • Use RwLock for shared state management
  • Write unit tests using tokio::test for async validation

Error Handling

  • Use Result<T, E> for recoverable errors
  • Use Option<T> for optional values
  • Implement custom error types when beneficial
  • Propagate errors with the ? operator
  • Provide meaningful error messages

Performance

  • Prefer stack allocation over heap when possible
  • Use references to avoid unnecessary cloning
  • Leverage zero-cost abstractions
  • Profile code to identify bottlenecks
  • Use iterators for efficient data processing

Testing

  • Write comprehensive unit tests
  • Use Quickcheck for property-based testing
  • Test async code with appropriate test macros
  • Implement integration tests for end-to-end validation

Security

  • Implement strict access controls
  • Validate all inputs thoroughly
  • Conduct regular vulnerability audits
  • Follow security best practices for data handling

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.