rust-pro
Qué hace
Esta habilidad guía a tu IA cuando escribe o arregla código en Rust. Cubre la programación asíncrona, el sistema de tipos y el rendimiento. Es para desarrolladores que crean sistemas o servicios rápidos y seguros en Rust.
Cuándo usarla
- ✓Cuando construyes un servicio, una biblioteca o una herramienta de línea de comandos en Rust.
- ✓Cuando tienes un error de propiedad, de tiempo de vida o asíncrono en código Rust que hay que resolver.
- ✓Cuando un programa en Rust necesita perfilado y mejoras de velocidad.
Link de la skill
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a crear un servicio web en Rust con manejadores asíncronos y pruebas.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La habilidad pregunta por las necesidades de velocidad y seguridad, elige un enfoque asíncrono y crates adecuados, escribe el código con pruebas y comprobaciones de estilo, y después perfila para encontrar los puntos lentos.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué edición de Rust usa?
Usa Rust moderno, con la edición 2024 y el ecosistema actual.
¿Sirve para scripts rápidos?
No. La habilidad indica que no es para scripts rápidos ni para trabajo dinámico en tiempo de ejecución.
¿Qué frameworks cubre?
Menciona Tokio y axum entre los crates modernos que usa.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 8,2 mil
- Posición en el ranking
- #12538
- Licencia
- MIT
- Actualizada
- 18/10/2026
Comentarios
- …
Más skills de este repositorio
batch-operations
8,2 milAyuda a tu agente a hacer el mismo cambio en muchos archivos a la vez, como renombrar una función o reemplazar una importación antigua en todas partes.
brainstorming
8,2 milEnseña a tu agente a hacer preguntas aclaratorias antes de construir algo nuevo o complejo, para que entienda primero tu objetivo.
code-review-checklist
8,2 milDa a tu agente una lista de verificación para revisar código en cuanto a corrección, seguridad, rendimiento, pruebas y documentación, incluidos riesgos propios de la IA.
code-review-graph
8,2 milAyuda a tu agente a revisar código en proyectos grandes con un mapa estructural, para que lea solo los archivos afectados por un cambio.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.