mcpField
R
rust-engineer

rust-engineer

github.com/404kidwizDevelopment126 installs
Repository

About rust-engineer

A Rust development skill for backend, systems, and WebAssembly work, aimed at developers building memory-safe concurrent software. It covers async programming, FFI, testing, and practical framework choices such as Axum and Tokio.

Key features

  1. 01Axum REST API development
  2. 02Tokio async and concurrent systems
  3. 03C library FFI bindings
  4. 04Rust to WebAssembly workflows
  5. 05Testing and documentation practices

Use cases

  1. 01Building high-performance backend services
  2. 02Writing memory-safe systems software
  3. 03Integrating Rust with C or C++ libraries
  4. 04Deploying Rust modules in browsers

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill rust-engineer

After installing, type/rust-engineerin Claude Code to confirm it loaded.

Bundled filesEXAMPLES.mdREFERENCE.md

Details

From the project README

Rust Engineer

Purpose

Provides expert Rust development expertise specializing in memory-safe systems programming, async programming with Tokio, and high-performance backend services. Builds safe, concurrent applications with zero-cost abstractions and comprehensive error handling.

When to Use

  • Building high-performance backend services with Axum or Actix
  • Implementing memory-safe systems programming without garbage collector
  • Developing async/concurrent applications with Tokio runtime
  • Integrating Rust with C libraries via FFI
  • Compiling to WebAssembly for web or Node.js deployment
  • Migrating performance-critical components from C/C++ to Rust

Quick Start

Invoke When
  • Building Axum/Actix REST APIs or gRPC services
  • Systems programming requiring memory safety
  • Async/concurrent applications with Tokio
  • FFI bindings to C/C++ libraries
  • WebAssembly compilation for browsers
Don't Invoke When
  • Quick prototyping (use Python/Node.js)
  • Spring Boot/Java backends (use java-architect)
  • Mobile apps (use mobile-developer)
  • Simple scripts (use Python/Bash)

Core Capabilities

Backend Development
  • Building REST APIs with Axum framework
  • Implementing WebSocket servers and real-time features
  • Managing database access with SQLx or Diesel
  • Configuring application deployment and scaling
Systems Programming
  • Implementing zero-allocation patterns
  • Managing ownership, borrowing, and lifetimes
  • Building concurrent systems with Tokio
  • Creating FFI bindings to C libraries
WebAssembly Development
  • Compiling Rust to WASM for browser deployment
  • Integrating WASM modules with JavaScript
  • Optimizing WASM binary size and performance
  • Managing memory in WASM environments
Testing and Documentation
  • Writing unit tests and integration tests
  • Implementing property-based testing
  • Creating documentation with cargo doc
  • Managing code formatting and linting

Decision Framework

When to Choose Rust?
Need high performance + memory safety?
│
├─ YES → Project type?
│        │
│        ├─ BACKEND API/SERVICE → Latency requirements?
│        │                        │
│        │                        ├─ <10ms → **Rust (Axum/Actix)** ✓
│        │                        │          (zero-cost async, minimal overhead)
│        │                        │
│        │                        └─ 10-100ms → Node.js/Go acceptable?
│        │                                      │
│        │                                      ├─ YES → **Go/Node.js** ✓
│        │                                      │        (faster development)
│        │                                      │
│        │                                      └─ NO → **Rust** ✓
│        │                                               (memory safety critical)
│        │
│        ├─ SYSTEMS PROGRAMMING → C/C++ replacement?
│        │                        │
│        │                        ├─ YES → **Rust** ✓
│        │                        │        (memory safety without GC)
│        │                        │
│        │                        └─ NO → **Rust** ✓
│        │
│        ├─ CLI TOOL → Cross-platform?
│        │            │
│        │            ├─ YES → **Rust** ✓
│        │            │        (single binary, fast startup)
│        │            │
│        │            └─ NO → Simple script?
│        │                    │
│        │                    ├─ YES → **Bash/Python** ✓
│        │                    │
│        │                    └─ NO → **Rust** ✓
│        │
│        └─ WEB (HIGH-PERF) → Browser or server?
│                             │
│                             ├─ BROWSER → **Rust + WASM** ✓
│                             │            (image processing, crypto, games)
│                             │
│                             └─ SERVER → See "BACKEND API/SERVICE" above
│
└─ NO → Use language optimized for use case
Async Runtime Decision
AspectTokioAsync-stdSmol
EcosystemLargestMediumSmall
PerformanceFastestFastLightweight
Runtime overhead~300KB~200KB~50KB
HTTP frameworksAxum, Hyper, TonicTideNone official
AdoptionProduction (Discord, AWS)ExperimentalNiche
Best forProduction servicesPrototypingEmbedded

Recommendation: Use Tokio for 95% of async Rust projects.

Web Framework Decision
Building HTTP API?
│
├─ Microservice / Performance-critical?
│  │
│  ├─ YES → Need advanced routing/middleware?
│  │        │
│  │        ├─ YES → **Axum** ✓
│  │        │        (type-safe extractors, Tower middleware)
│  │        │
│  │        └─ NO → **Hyper** ✓
│  │                 (low-level HTTP, maximum control)
│  │
│  └─ NO → Rapid prototyping?
│           │
│           ├─ YES → **Actix-web** ✓
│           │        (batteries-included, macros)
│           │
│           └─ NO → **Rocket** ✓
│                    (codegen, easy to start)
FFI vs Pure Rust
SituationDecisionRationale
Legacy C libraryFFI wrapperAvoid reimplementing tested code
Performance-critical CBenchmark firstRust may match/exceed C
Simple C algorithmRewrite in RustEasier to maintain
OS-specific APIsFFI via windows-rsNo pure-Rust alternative
Calling Rust from C/PythonFFI with #[no_mangle]Enable cross-language use

Escalation Triggers

Red Flags → Escalate to oracle:

  • Designing async architecture for >10 microservices with complex inter-service communication
  • Choosing between Rust and Go for greenfield API project (team/business tradeoffs)
  • Implementing custom async executors or runtimes (advanced Tokio internals)
  • Complex lifetime issues across trait bounds and generic types
  • Unsafe code patterns for performance-critical sections
  • WASM module interop with JavaScript for large-scale applications

Integration Patterns

backend-developer:
  • Handoff: rust-engineer builds Axum API → backend-developer adds Node.js microservices
  • Tools: Protocol Buffers for gRPC contracts, shared OpenAPI specs
database-optimizer:
  • Handoff: rust-engineer implements SQLx queries → database-optimizer reviews for N+1
  • Tools: SQLx compile-time query verification, EXPLAIN ANALYZE
devops-engineer:
  • Handoff: rust-engineer builds binary → devops-engineer containerizes and deploys
  • Tools: Docker multi-stage builds, Prometheus metrics (via axum-prometheus)
frontend-developer:
  • Handoff: rust-engineer compiles WASM module → frontend-developer integrates into React/Vue
  • Tools: wasm-pack, TypeScript bindings generation
cpp-pro:
  • Handoff: cpp-pro maintains C/C++ library → rust-engineer creates safe FFI wrapper
  • Tools: bindgen for FFI bindings, cxx for bidirectional C++/Rust interop
golang-pro:
  • Handoff: rust-engineer builds performance-critical service → golang-pro builds orchestration layer
  • Tools: gRPC for inter-service communication, shared Protobuf definitions
kubernetes-specialist:
  • Handoff: rust-engineer builds service → kubernetes-specialist deploys with Helm
  • Tools: Dockerfiles, Kubernetes manifests, Helm charts

Additional Resources

Comments

Markdown supported