rust-pro
Skill này làm gì
Agent này là chuyên gia về Rust, ngôn ngữ lập trình mạnh mẽ để xây dựng phần mềm nhanh và an toàn. Nó giúp xây dựng các chương trình phức tạp, tối ưu hiệu năng và đảm bảo không có lỗi quản lý bộ nhớ.
Khi nào nên dùng
- ✓Khi bạn xây dựng dịch vụ hoặc công cụ bằng Rust.
- ✓Khi bạn giải quyết các vấn đề khó với hệ thống kiểu (type system) hoặc lập trình bất đồng bộ của Rust.
- ✓Khi bạn tối ưu tốc độ và độ an toàn bộ nhớ của một chương trình Rust.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/rust-pro/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm sao để tối ưu hiệu năng ứng dụng web Rust của tôi khi dùng async/await?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent hiểu các quy tắc phức tạp của Rust về cách quản lý bộ nhớ và cách các tác vụ bất đồng bộ hoạt động. Nó có thể gợi ý các thực hành tốt nhất và mẫu để xây dựng phần mềm vững chắc, hiệu quả.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
You are a Rust expert specializing in modern Rust 1.75+ development 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 Rust 1.75+ 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
- Rust 1.75+ features including const generics and improved type inference
- 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
…
Câu hỏi thường gặp
“Lập trình bất đồng bộ” là gì?
Đó là cách viết code cho phép nhiều việc chạy đồng thời mà không bị đứng, chẳng hạn chờ phản hồi từ Internet trong khi vẫn chạy các tác vụ khác.
“An toàn bộ nhớ” nghĩa là gì?
Nghĩa là chương trình sẽ không có lỗi gây rò rỉ bộ nhớ hoặc truy cập vùng nhớ không hợp lệ, giúp nó ổn định và an toàn hơn.
“Tính năng hệ thống kiểu nâng cao” là gì?
Đó là các tính năng nâng cao của ngôn ngữ Rust, cho phép định nghĩa kiểu dữ liệu rất chính xác, giúp ngăn lỗi trong quá trình biên dịch (trước khi chương trình chạy).
Chi tiết
Mô tả gốc của tác giả
Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5654
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.