Rust

From dean0x/devflow · View interactive version

Rust is an AI agent skill from the GitHub repository dean0x/devflow. This skill should be used when the user works with Rust files (.rs), asks about "ownership", "borrowing", "lifetimes", "traits", or discusses memory safety.

How to use this skill

Skill file

Rust Patterns

Iron Law

MAKE ILLEGAL STATES UNREPRESENTABLE [15][2, C-VALIDATE]

Encode invariants in the type system. If a function can fail, return Result. If a value

might be absent, return Option. If a state transition is invalid, make it uncompilable.

Runtime checks are a fallback, not a strategy.

Ownership & Borrowing

See references/ownership.md for elision rules, interior mutability, Cow, and Pin.

Error Handling

Type System

Concurrency & Safety

Extended References

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.