rust-pro
ما الذي تفعله
ترشد هذه المهارة ذكاءك عندما يكتب كود Rust أو يصلحه. تغطي البرمجة غير المتزامنة ونظام الأنواع والأداء. وهي للمطورين الذين يبنون أنظمة أو خدمات سريعة وآمنة بـRust.
متى تستخدمها
- ✓عندما تبني خدمة أو مكتبة أو أداة سطر أوامر بـRust.
- ✓عندما يكون لديك خطأ في الملكية أو عمر المرجع أو الكود غير المتزامن في Rust يحتاج إلى حل.
- ✓عندما يحتاج برنامج Rust إلى تحليل الأداء وتحسين السرعة.
رابط المهارة
https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ساعدني في بناء خدمة ويب بـRust فيها معالجات غير متزامنة واختبارات.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تسأل المهارة عن احتياجات السرعة والأمان، ثم تختار النهج غير المتزامن المناسب والمكتبات المناسبة. يكتب الذكاء الكود مع الاختبارات وفحوص التدقيق، ثم يقيس الأداء لإيجاد النقاط البطيئة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من 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
الأسئلة الشائعة
أي إصدار من Rust تستهدف؟
تستهدف Rust الحديثة، وتعتمد إصدار 2024 والنظام البيئي الحالي.
هل تناسب السكربتات السريعة؟
لا. تقول المهارة إنها ليست للسكربتات السريعة أو أعمال وقت التشغيل الديناميكية.
أي أطر تغطي؟
تذكر Tokio وaxum من بين المكتبات الحديثة التي تستخدمها.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 8.2k
- الترتيب
- #12538
- الترخيص
- MIT
- آخر تحديث
- 18/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
batch-operations
8.2kيساعد وكيلك على إجراء التغيير نفسه على ملفات كثيرة دفعة واحدة، مثل إعادة تسمية دالة أو استبدال استيراد قديم في كل مكان.
brainstorming
8.2kيعلّم وكيلك أن يطرح أسئلة توضيحية قبل بناء أي شيء جديد أو معقد، حتى يفهم هدفك أولًا.
code-review-checklist
8.2kيعطي وكيلك قائمة تحقق لمراجعة الكود من ناحية الصحة والأمان والأداء والاختبارات والتوثيق، بما في ذلك مخاطر الذكاء الاصطناعي.
code-review-graph
8.2kيساعد وكيلك على مراجعة الكود في المشاريع الكبيرة باستخدام خريطة بنيوية، فيقرأ الملفات المتأثرة بالتغيير فقط.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.