Перейти к содержанию
Skillpedia
API и серверы (бэкенд)8.2k · #12538

rust-pro

Что он делает

Этот скилл направляет вашего ИИ, когда он пишет или исправляет код на Rust. Он охватывает асинхронное программирование, систему типов и производительность. Он нужен разработчикам, которые создают быстрые и безопасные системы или сервисы на Rust.

Когда использовать

  • ✓Когда вы создаете сервис, библиотеку или инструмент командной строки на Rust.
  • ✓Когда в коде Rust возникла ошибка владения, времени жизни или асинхронности, которую нужно решить.
  • ✓Когда программе на Rust нужен профилинг и улучшение скорости.

Ссылка на скилл

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.md

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/rust-pro/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Помоги создать веб-сервис на Rust с асинхронными обработчиками и тестами.”

5 новых скиллов в неделю. 1 минута чтения.

Как это работает

Скилл уточняет требования к скорости и безопасности, выбирает подходящий асинхронный подход и крейты, пишет код с тестами и проверками линтера, а затем делает профилирование, чтобы найти медленные места.

Технический текст (оригинальный 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

  1. Clarify performance, safety, and runtime constraints.
  2. Choose async/runtime and crate ecosystem approach.
  3. Implement with tests and linting.
  4. 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

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы