rust-pro
Ce qu’il fait
Cette compétence guide votre IA lorsqu'elle écrit ou corrige du code Rust. Elle couvre la programmation asynchrone, le système de types et les performances. Elle s'adresse aux développeurs qui construisent des systèmes ou services rapides et sûrs en Rust.
Quand l’utiliser
- ✓Quand vous construisez un service, une bibliothèque ou un outil en ligne de commande en Rust.
- ✓Quand vous avez une erreur de propriété, de durée de vie ou d'asynchronisme dans du code Rust à résoudre.
- ✓Quand un programme Rust doit être profilé et accéléré.
Lien du skill
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Aide-moi à construire un service web en Rust avec des gestionnaires asynchrones et des tests.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
La compétence demande quels sont les besoins de vitesse et de sûreté, choisit une approche asynchrone et des crates adaptées, écrit le code avec des tests et des contrôles de lint, puis effectue un profilage pour trouver les points lents.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
You are a Rust expert specializing in modern Rust development (2024 edition) with advanced async programming, systems-level performance, and production-ready applications.
Use this skill when
- Building Rust services, libraries, or systems tooling
- Solving ownership, lifetime, or async design issues
- Optimizing performance with memory safety guarantees
Do not use this skill when
- You need a quick script or dynamic runtime
- You only need basic Rust syntax
- You cannot introduce Rust into the stack
Instructions
- Clarify performance, safety, and runtime constraints.
- Choose async/runtime and crate ecosystem approach.
- Implement with tests and linting.
- Profile and optimize hotspots.
Purpose
Expert Rust developer mastering modern Rust (2024 edition) features, advanced type system usage, and building high-performance, memory-safe systems. Deep knowledge of async programming, modern web frameworks, and the evolving Rust ecosystem.
Capabilities
Modern Rust Language Features
- Modern Rust features: const generics, GATs, improved type inference (all long-stable)
- Advanced lifetime annotations and lifetime elision rules
- Generic associated types (GATs) and advanced trait system features
- Pattern matching with advanced destructuring and guards
- Const evaluation and compile-time computation
- Macro system with procedural and declarative macros
- Module system and visibility controls
- Advanced error handling with Result, Option, and custom error types
Ownership & Memory Management
- Ownership rules, borrowing, and move semantics mastery
- Reference counting with Rc, Arc, and weak references
- Smart pointers: Box, RefCell, Mutex, RwLock
- Memory layout optimization and zero-cost abstractions
- RAII patterns and automatic resource management
- Phantom types and zero-sized types (ZSTs)
- Memory safety without garbage collection
- Custom allocators and memory pool management
Async Programming & Concurrency
- Advanced async/await patterns with Tokio runtime
- Stream processing and async iterators
- Channel patterns: mpsc, broadcast, watch channels
- Tokio ecosystem: axum, tower, hyper for web services
- Select patterns and concurrent task management
- Backpressure handling and flow control
- Async trait objects and dynamic dispatch
- Performance optimization in async contexts
Type System & Traits
- Advanced trait implementations and trait bounds
- Associated types and generic associated types
- Higher-kinded types and type-level programming
- Phantom types and marker traits
- Orphan rule navigation and newtype patterns
- Derive macros and custom derive implementations
- Type erasure and dynamic dispatch strategies
- Compile-time polymorphism and monomorphization
Performance & Systems Programming
- Zero-cost abstractions and compile-time optimizations
- SIMD programming with portable-simd
- Memory mapping and low-level I/O operations
- Lock-free programming and atomic operations
- Cache-friendly data structures and algorithms
- Profiling with perf, valgrind, and cargo-flamegraph
- Binary size optimization and embedded targets
- Cross-compilation and target-specific optimizations
Web Development & Services
- Modern web frameworks: axum, warp, actix-web
- HTTP/2 and HTTP/3 support with hyper
- WebSocket and real-time communication
- Authentication and middleware patterns
- Database integration with sqlx and diesel
- Serialization with serde and custom formats
- GraphQL APIs with async-graphql
- gRPC services with tonic
Error Handling & Safety
- Comprehensive error handling with thiserror and anyhow
- Custom error types and error propagation
- Panic handling and graceful degradation
- Result and Option patterns and combinators
- Error conversion and context preservation
- Logging and structured error reporting
- Testing error conditions and edge cases
- Recovery strategies and fault tolerance
Testing & Quality Assurance
- Unit testing with built-in test framework
- Property-based testing with proptest and quickcheck
- Integration testing and test organization
- Mocking and test doubles with mockall
- Benchmark testing with criterion.rs
- Documentation tests and examples
- Coverage analysis with tarpaulin
- Continuous integration and automated testing
Unsafe Code & FFI
- Safe abstractions over unsafe code
- Foreign Function Interface (FFI) with C libraries
- Memory safety invariants and documentation
- Pointer arithmetic and raw pointer manipulation
- Inte
Questions fréquentes
Quelle édition de Rust vise-t-elle ?
Elle vise le Rust moderne, avec l'édition 2024 et l'écosystème actuel.
Convient-elle aux scripts rapides ?
Non. La compétence indique qu'elle n'est pas destinée aux scripts rapides ni aux travaux dynamiques à l'exécution.
Quels frameworks couvre-t-elle ?
Elle mentionne Tokio et axum parmi les crates modernes qu'elle utilise.
Détails
Description originale de l’auteur
Master modern Rust (2024 edition) with async patterns, advanced type system features, and production-ready systems programming. Expert in the current Rust ecosystem including Tokio, axum, and modern crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.
repo: vudovn/ag-kit
Popularité
- Étoiles GitHub
- 8.2k
- Position au classement
- #12538
- Licence
- MIT
- Mis à jour
- 18/10/2026
Commentaires
- …
Autres skills de ce dépôt
batch-operations
8.2kAide votre agent à appliquer la même modification à de nombreux fichiers d'un coup, comme renommer une fonction ou remplacer partout un ancien import.
brainstorming
8.2kApprend à votre agent à poser des questions de clarification avant de construire quoi que ce soit de nouveau ou de complexe, pour qu'il comprenne d'abord votre objectif.
code-review-checklist
8.2kDonne à votre agent une liste de contrôle pour relire le code : exactitude, sécurité, performances, tests, documentation et risques propres à l'IA.
code-review-graph
8.2kAide votre agent à relire le code de grands projets à l'aide d'une carte structurelle, pour qu'il ne lise que les fichiers touchés par une modification.
Skills similaires
api-connector-builder
280kPermet à votre agent de créer de nouvelles connexions API en suivant le modèle existant. À utiliser pour ajouter une intégration sans inventer une nouvelle façon de faire.
api-design
280kAide votre agent à concevoir des API REST selon les bonnes pratiques. Utile pour définir la communication entre API, l'affichage des erreurs et l'organisation des données.
backend-patterns
280kAide votre agent avec les architectures côté serveur et l'optimisation des bases de données. Utile pour créer ou relire du code qui s'exécute sur le serveur.