rust-pro

GitHub

专注Rust 1.75+高级开发的专家技能,涵盖现代异步模式、所有权管理、类型系统及性能优化。适用于构建高性能系统、解决复杂并发问题及生产级应用开发,不用于简单脚本或基础语法查询。

skills/rust-pro/SKILL.md rmyndharis/antigravity-skills

Trigger Scenarios

构建Rust服务或库 解决所有权与异步设计问题 优化内存安全与性能

Install

npx skills add rmyndharis/antigravity-skills --skill rust-pro -g -y
More Options

Use without installing

npx skills use rmyndharis/antigravity-skills@rust-pro

指定 Agent (Claude Code)

npx skills add rmyndharis/antigravity-skills --skill rust-pro -a claude-code -g -y

安装 repo 全部 skill

npx skills add rmyndharis/antigravity-skills --all -g -y

预览 repo 内 skill

npx skills add rmyndharis/antigravity-skills --list

SKILL.md

Frontmatter
{
    "name": "rust-pro",
    "metadata": {
        "model": "opus"
    },
    "description": "Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming. Expert in the latest Rust ecosystem including Tokio, axum, and cutting-edge crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming."
}

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

  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 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
  • Interfacing with system APIs and kernel modules
  • Bindgen for automatic binding generation
  • Cross-language interoperability patterns
  • Auditing and minimizing unsafe code blocks

Modern Tooling & Ecosystem

  • Cargo workspace management and feature flags
  • Cross-compilation and target configuration
  • Clippy lints and custom lint configuration
  • Rustfmt and code formatting standards
  • Cargo extensions: audit, deny, outdated, edit
  • IDE integration and development workflows
  • Dependency management and version resolution
  • Package publishing and documentation hosting

Behavioral Traits

  • Leverages the type system for compile-time correctness
  • Prioritizes memory safety without sacrificing performance
  • Uses zero-cost abstractions and avoids runtime overhead
  • Implements explicit error handling with Result types
  • Writes comprehensive tests including property-based tests
  • Follows Rust idioms and community conventions
  • Documents unsafe code blocks with safety invariants
  • Optimizes for both correctness and performance
  • Embraces functional programming patterns where appropriate
  • Stays current with Rust language evolution and ecosystem

Knowledge Base

  • Rust 1.75+ language features and compiler improvements
  • Modern async programming with Tokio ecosystem
  • Advanced type system features and trait patterns
  • Performance optimization and systems programming
  • Web development frameworks and service patterns
  • Error handling strategies and fault tolerance
  • Testing methodologies and quality assurance
  • Unsafe code patterns and FFI integration
  • Cross-platform development and deployment
  • Rust ecosystem trends and emerging crates

Response Approach

  1. Analyze requirements for Rust-specific safety and performance needs
  2. Design type-safe APIs with comprehensive error handling
  3. Implement efficient algorithms with zero-cost abstractions
  4. Include extensive testing with unit, integration, and property-based tests
  5. Consider async patterns for concurrent and I/O-bound operations
  6. Document safety invariants for any unsafe code blocks
  7. Optimize for performance while maintaining memory safety
  8. Recommend modern ecosystem crates and patterns

Example Interactions

  • "Design a high-performance async web service with proper error handling"
  • "Implement a lock-free concurrent data structure with atomic operations"
  • "Optimize this Rust code for better memory usage and cache locality"
  • "Create a safe wrapper around a C library using FFI"
  • "Build a streaming data processor with backpressure handling"
  • "Design a plugin system with dynamic loading and type safety"
  • "Implement a custom allocator for a specific use case"
  • "Debug and fix lifetime issues in this complex generic code"

Version History

  • e63f7dd Current 2026-07-05 09:37

Same Skill Collection

skills/accessibility-compliance-accessibility-audit/SKILL.md
skills/agent-orchestration-improve-agent/SKILL.md
skills/agent-orchestration-multi-agent-optimize/SKILL.md
skills/ai-engineer/SKILL.md
skills/airflow-dag-patterns/SKILL.md
skills/angular-migration/SKILL.md
skills/anti-reversing-techniques/SKILL.md
skills/api-design-principles/SKILL.md
skills/api-documenter/SKILL.md
skills/api-testing-observability-api-mock/SKILL.md
skills/application-performance-performance-optimization/SKILL.md
skills/architect-review/SKILL.md
skills/architecture-decision-records/SKILL.md
skills/architecture-patterns/SKILL.md
skills/arm-cortex-expert/SKILL.md
skills/article-illustrations/SKILL.md
skills/async-python-patterns/SKILL.md
skills/attack-tree-construction/SKILL.md
skills/auth-implementation-patterns/SKILL.md
skills/backend-architect/SKILL.md
skills/backend-development-feature-development/SKILL.md
skills/backend-security-coder/SKILL.md
skills/backtesting-frameworks/SKILL.md
skills/bash-defensive-patterns/SKILL.md
skills/bash-pro/SKILL.md
skills/bats-testing-patterns/SKILL.md
skills/bazel-build-optimization/SKILL.md
skills/billing-automation/SKILL.md
skills/binary-analysis-patterns/SKILL.md
skills/blockchain-developer/SKILL.md
skills/business-analyst/SKILL.md
skills/c-pro/SKILL.md
skills/c4-architecture-c4-architecture/SKILL.md
skills/c4-code/SKILL.md
skills/c4-component/SKILL.md
skills/c4-container/SKILL.md
skills/c4-context/SKILL.md
skills/changelog-automation/SKILL.md
skills/cicd-automation-workflow-automate/SKILL.md
skills/cloud-architect/SKILL.md
skills/code-documentation-code-explain/SKILL.md
skills/code-documentation-doc-generate/SKILL.md
skills/code-refactoring-context-restore/SKILL.md
skills/code-refactoring-refactor-clean/SKILL.md
skills/code-refactoring-tech-debt/SKILL.md
skills/code-review-ai-ai-review/SKILL.md
skills/code-review-excellence/SKILL.md
skills/code-reviewer/SKILL.md
skills/codebase-cleanup-deps-audit/SKILL.md
skills/codebase-cleanup-refactor-clean/SKILL.md
skills/codebase-cleanup-tech-debt/SKILL.md
skills/competitive-landscape/SKILL.md
skills/comprehensive-review-full-review/SKILL.md
skills/comprehensive-review-pr-enhance/SKILL.md
skills/conductor-implement/SKILL.md
skills/conductor-manage/SKILL.md
skills/conductor-new-track/SKILL.md
skills/conductor-revert/SKILL.md
skills/conductor-setup/SKILL.md
skills/conductor-status/SKILL.md
skills/conductor-validator/SKILL.md
skills/content-marketer/SKILL.md
skills/context-driven-development/SKILL.md
skills/context-management-context-restore/SKILL.md
skills/context-management-context-save/SKILL.md
skills/context-manager/SKILL.md
skills/cost-optimization/SKILL.md
skills/cpp-pro/SKILL.md
skills/cqrs-implementation/SKILL.md
skills/csharp-pro/SKILL.md
skills/customer-support/SKILL.md
skills/data-engineer/SKILL.md
skills/data-engineering-data-driven-feature/SKILL.md
skills/data-engineering-data-pipeline/SKILL.md
skills/data-quality-frameworks/SKILL.md
skills/data-scientist/SKILL.md
skills/data-storytelling/SKILL.md
skills/database-admin/SKILL.md
skills/database-architect/SKILL.md
skills/database-cloud-optimization-cost-optimize/SKILL.md
skills/database-migration/SKILL.md
skills/database-migrations-migration-observability/SKILL.md
skills/database-migrations-sql-migrations/SKILL.md
skills/database-optimizer/SKILL.md
skills/dbt-transformation-patterns/SKILL.md
skills/debugger/SKILL.md
skills/debugging-strategies/SKILL.md
skills/debugging-toolkit-smart-debug/SKILL.md
skills/defi-protocol-templates/SKILL.md
skills/dependency-management-deps-audit/SKILL.md
skills/dependency-upgrade/SKILL.md
skills/deployment-engineer/SKILL.md
skills/deployment-pipeline-design/SKILL.md
skills/deployment-validation-config-validate/SKILL.md
skills/devops-troubleshooter/SKILL.md
skills/distributed-debugging-debug-trace/SKILL.md
skills/distributed-tracing/SKILL.md
skills/django-pro/SKILL.md
skills/docs-architect/SKILL.md
skills/documentation-generation-doc-generate/SKILL.md
skills/dotnet-architect/SKILL.md
skills/dotnet-backend-patterns/SKILL.md
skills/dx-optimizer/SKILL.md
skills/e2e-testing-patterns/SKILL.md
skills/elixir-pro/SKILL.md
skills/embedding-strategies/SKILL.md
skills/employment-contract-templates/SKILL.md
skills/error-debugging-error-analysis/SKILL.md
skills/error-debugging-error-trace/SKILL.md
skills/error-debugging-multi-agent-review/SKILL.md
skills/error-detective/SKILL.md
skills/error-diagnostics-error-analysis/SKILL.md
skills/error-diagnostics-error-trace/SKILL.md
skills/error-diagnostics-smart-debug/SKILL.md
skills/error-handling-patterns/SKILL.md
skills/event-sourcing-architect/SKILL.md
skills/event-store-design/SKILL.md
skills/fastapi-pro/SKILL.md
skills/fastapi-templates/SKILL.md
skills/firmware-analyst/SKILL.md
skills/flutter-expert/SKILL.md
skills/framework-migration-code-migrate/SKILL.md
skills/framework-migration-deps-upgrade/SKILL.md
skills/framework-migration-legacy-modernize/SKILL.md
skills/frontend-developer/SKILL.md
skills/frontend-mobile-development-component-scaffold/SKILL.md
skills/frontend-mobile-security-xss-scan/SKILL.md
skills/frontend-security-coder/SKILL.md
skills/full-stack-orchestration-full-stack-feature/SKILL.md
skills/gdpr-data-handling/SKILL.md
skills/git-advanced-workflows/SKILL.md
skills/git-pr-workflows-git-workflow/SKILL.md
skills/git-pr-workflows-onboard/SKILL.md
skills/git-pr-workflows-pr-enhance/SKILL.md
skills/github-actions-templates/SKILL.md
skills/gitlab-ci-patterns/SKILL.md
skills/gitops-workflow/SKILL.md
skills/go-concurrency-patterns/SKILL.md
skills/godot-gdscript-patterns/SKILL.md
skills/golang-pro/SKILL.md
skills/grafana-dashboards/SKILL.md
skills/graphql-architect/SKILL.md
skills/haskell-pro/SKILL.md
skills/helm-chart-scaffolding/SKILL.md
skills/hr-pro/SKILL.md
skills/hybrid-cloud-architect/SKILL.md
skills/hybrid-cloud-networking/SKILL.md
skills/hybrid-search-implementation/SKILL.md
skills/incident-responder/SKILL.md
skills/incident-response-incident-response/SKILL.md
skills/incident-response-smart-fix/SKILL.md
skills/incident-runbook-templates/SKILL.md
skills/ios-developer/SKILL.md
skills/istio-traffic-management/SKILL.md
skills/java-pro/SKILL.md
skills/javascript-pro/SKILL.md
skills/javascript-testing-patterns/SKILL.md
skills/javascript-typescript-typescript-scaffold/SKILL.md
skills/julia-pro/SKILL.md
skills/k8s-manifest-generator/SKILL.md
skills/k8s-security-policies/SKILL.md
skills/kpi-dashboard-design/SKILL.md
skills/kubernetes-architect/SKILL.md
skills/langchain-architecture/SKILL.md
skills/legacy-modernizer/SKILL.md
skills/legal-advisor/SKILL.md
skills/linkerd-patterns/SKILL.md
skills/llm-application-dev-ai-assistant/SKILL.md
skills/llm-application-dev-langchain-agent/SKILL.md
skills/llm-application-dev-prompt-optimize/SKILL.md
skills/llm-evaluation/SKILL.md
skills/machine-learning-ops-ml-pipeline/SKILL.md
skills/malware-analyst/SKILL.md
skills/market-sizing-analysis/SKILL.md
skills/memory-forensics/SKILL.md
skills/memory-safety-patterns/SKILL.md
skills/mermaid-expert/SKILL.md
skills/microservices-patterns/SKILL.md
skills/minecraft-bukkit-pro/SKILL.md
skills/ml-engineer/SKILL.md
skills/ml-pipeline-workflow/SKILL.md
skills/mlops-engineer/SKILL.md
skills/mobile-developer/SKILL.md
skills/mobile-security-coder/SKILL.md
skills/modern-javascript-patterns/SKILL.md
skills/monorepo-architect/SKILL.md
skills/monorepo-management/SKILL.md
skills/mtls-configuration/SKILL.md
skills/multi-cloud-architecture/SKILL.md
skills/multi-platform-apps-multi-platform/SKILL.md
skills/network-engineer/SKILL.md
skills/nextjs-app-router-patterns/SKILL.md
skills/nft-standards/SKILL.md
skills/nodejs-backend-patterns/SKILL.md
skills/nx-workspace-patterns/SKILL.md
skills/observability-engineer/SKILL.md
skills/observability-monitoring-monitor-setup/SKILL.md
skills/observability-monitoring-slo-implement/SKILL.md
skills/on-call-handoff-patterns/SKILL.md
skills/openapi-spec-generation/SKILL.md
skills/payment-integration/SKILL.md
skills/paypal-integration/SKILL.md
skills/pci-compliance/SKILL.md
skills/performance-engineer/SKILL.md
skills/performance-testing-review-ai-review/SKILL.md
skills/performance-testing-review-multi-agent-review/SKILL.md
skills/php-pro/SKILL.md
skills/posix-shell-pro/SKILL.md
skills/postgresql/SKILL.md
skills/postmortem-writing/SKILL.md
skills/projection-patterns/SKILL.md
skills/prometheus-configuration/SKILL.md
skills/prompt-engineer/SKILL.md
skills/prompt-engineering-patterns/SKILL.md
skills/protocol-reverse-engineering/SKILL.md
skills/python-packaging/SKILL.md
skills/python-performance-optimization/SKILL.md
skills/python-pro/SKILL.md
skills/python-testing-patterns/SKILL.md
skills/quant-analyst/SKILL.md
skills/rag-implementation/SKILL.md
skills/react-modernization/SKILL.md
skills/react-native-architecture/SKILL.md
skills/react-state-management/SKILL.md
skills/reference-builder/SKILL.md
skills/reverse-engineer/SKILL.md
skills/risk-manager/SKILL.md
skills/risk-metrics-calculation/SKILL.md
skills/ruby-pro/SKILL.md
skills/rust-async-patterns/SKILL.md
skills/saga-orchestration/SKILL.md
skills/sales-automator/SKILL.md
skills/sast-configuration/SKILL.md
skills/scala-pro/SKILL.md
skills/screen-reader-testing/SKILL.md
skills/search-specialist/SKILL.md
skills/secrets-management/SKILL.md
skills/security-auditor/SKILL.md
skills/security-compliance-compliance-check/SKILL.md
skills/security-requirement-extraction/SKILL.md
skills/security-scanning-security-dependencies/SKILL.md
skills/security-scanning-security-hardening/SKILL.md
skills/security-scanning-security-sast/SKILL.md
skills/seo-authority-builder/SKILL.md
skills/seo-cannibalization-detector/SKILL.md
skills/seo-content-auditor/SKILL.md
skills/seo-content-planner/SKILL.md
skills/seo-content-refresher/SKILL.md
skills/seo-content-writer/SKILL.md
skills/seo-keyword-strategist/SKILL.md
skills/seo-meta-optimizer/SKILL.md
skills/seo-snippet-hunter/SKILL.md
skills/seo-structure-architect/SKILL.md
skills/service-mesh-expert/SKILL.md
skills/service-mesh-observability/SKILL.md
skills/shellcheck-configuration/SKILL.md
skills/similarity-search-patterns/SKILL.md
skills/slo-implementation/SKILL.md
skills/solidity-security/SKILL.md
skills/spark-optimization/SKILL.md
skills/sql-optimization-patterns/SKILL.md
skills/sql-pro/SKILL.md
skills/startup-analyst/SKILL.md
skills/startup-business-analyst-business-case/SKILL.md
skills/startup-business-analyst-financial-projections/SKILL.md
skills/startup-business-analyst-market-opportunity/SKILL.md
skills/startup-financial-modeling/SKILL.md
skills/startup-metrics-framework/SKILL.md
skills/stride-analysis-patterns/SKILL.md
skills/stripe-integration/SKILL.md
skills/systems-programming-rust-project/SKILL.md
skills/tailwind-design-system/SKILL.md
skills/tdd-orchestrator/SKILL.md
skills/tdd-workflows-tdd-green/SKILL.md
skills/tdd-workflows-tdd-red/SKILL.md
skills/team-collaboration-issue/SKILL.md
skills/team-collaboration-standup-notes/SKILL.md
skills/team-composition-analysis/SKILL.md
skills/temporal-python-pro/SKILL.md
skills/temporal-python-testing/SKILL.md
skills/terraform-module-library/SKILL.md
skills/terraform-specialist/SKILL.md
skills/test-automator/SKILL.md
skills/threat-mitigation-mapping/SKILL.md
skills/threat-modeling-expert/SKILL.md
skills/track-management/SKILL.md
skills/turborepo-caching/SKILL.md
skills/tutorial-engineer/SKILL.md
skills/typescript-advanced-types/SKILL.md
skills/typescript-pro/SKILL.md
skills/ui-ux-designer/SKILL.md
skills/ui-visual-validator/SKILL.md
skills/unit-testing-test-generate/SKILL.md
skills/unity-developer/SKILL.md
skills/unity-ecs-patterns/SKILL.md
skills/uv-package-manager/SKILL.md
skills/vector-database-engineer/SKILL.md
skills/vector-index-tuning/SKILL.md
skills/wcag-audit-patterns/SKILL.md
skills/web3-testing/SKILL.md
skills/workflow-orchestration-patterns/SKILL.md
skills/workflow-patterns/SKILL.md
skills/tdd-workflows-tdd-cycle/SKILL.md
skills/tdd-workflows-tdd-refactor/SKILL.md

Metadata

Files
0
Version
e63f7dd
Hash
8959d627
Indexed
2026-07-05 09:37

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-10 02:27
浙ICP备14020137号-1 $Carte des visiteurs$