rust-pro
Fungsinya
Skill ini memandu AI Anda saat menulis atau memperbaiki kode Rust. Skill ini mencakup pemrograman async, sistem tipe, dan performa. Skill ini untuk pengembang yang membangun sistem atau layanan Rust yang cepat dan aman.
Kapan dipakai
- ✓Saat Anda membangun layanan, pustaka, atau alat baris perintah Rust.
- ✓Saat Anda memiliki galat kepemilikan, lifetime, atau async dalam kode Rust yang perlu diselesaikan.
- ✓Saat sebuah program Rust memerlukan profiling dan peningkatan kecepatan.
Link skill
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Bantu saya membangun layanan web Rust dengan handler async dan pengujian.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menanyakan kebutuhan kecepatan dan keamanan, memilih pendekatan async dan crate yang sesuai, menulis kode beserta tes dan pemeriksaan lint, lalu melakukan profiling untuk menemukan bagian yang lambat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Edisi Rust apa yang dituju?
Skill menargetkan Rust modern, memakai edisi 2024 dan ekosistem terkini.
Apakah cocok untuk skrip cepat?
Tidak. Skill menyatakan bahwa ia bukan untuk skrip cepat atau pekerjaan runtime dinamis.
Framework apa saja yang dicakup?
Ia menyebut Tokio dan axum di antara crate modern yang dipakainya.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 8.2k
- Peringkat
- #12538
- Lisensi
- MIT
- Diperbarui
- 18/10/2026
Komentar
- …
Skill lain dari repositori ini
batch-operations
8.2kMembantu agent Anda membuat perubahan yang sama di banyak berkas sekaligus, misalnya mengganti nama fungsi atau mengganti impor lama di semua tempat.
brainstorming
8.2kMengajari agent Anda untuk mengajukan pertanyaan klarifikasi sebelum membangun sesuatu yang baru atau rumit, agar ia memahami tujuan Anda terlebih dahulu.
code-review-checklist
8.2kMemberi agent Anda daftar periksa untuk meninjau kode dari sisi kebenaran, keamanan, performa, pengujian, dan dokumentasi, termasuk risiko khusus AI.
code-review-graph
8.2kMembantu agent Anda meninjau kode dalam proyek besar dengan peta struktural, sehingga ia hanya membaca berkas yang terdampak oleh perubahan.
Skill serupa
api-connector-builder
280kMembuat agent Anda membangun koneksi API baru mengikuti pola yang sudah ada. Gunakan saat ingin menambah integrasi lagi tanpa membuat cara baru.
api-design
280kMembantu agent Anda merancang REST API sesuai praktik terbaik. Berguna untuk mengatur cara API berkomunikasi, menampilkan error, dan mengorganisasi data.
backend-patterns
280kMembantu agent Anda dengan pola arsitektur sisi server dan optimasi database. Berguna untuk membangun atau meninjau kode yang berjalan di server.