Rust Daily Report

name: rust-daily description: | CRITICAL: Use for Rust news and daily/weekly/monthly reports. Triggers on: rust news, rust daily, rust weekly, TWIR, rust blog, Rust 日报, Rust 周报, Rust 新闻, Rust
阅读全文

Embedded Domain

name: domain-embedded description: "Use when developing embedded/no_std Rust. Keywords: embedded, no_std, microcontroller, MCU, ARM, RISC-V, bare metal, firmware, HAL, PAC, RTIC, embassy, interrupt, D
阅读全文

Rust Symbol Analyzer

name: rust-symbol-analyzer description: "Analyze Rust project structure using LSP symbols. Triggers on: /symbols, project structure, list structs, list traits, list functions, 符号分析, 项目结构,
阅读全文

Rust Performance Optimization Guide

Rust Performance Optimization Guide Profiling First Tools # CPU profiling cargo install flamegraph cargo flamegraph --bin myapp # Memory profiling cargo install cargo-instruments # macOS heaptrack ./t
阅读全文

Performance Optimization

name: m10-performance description: "CRITICAL: Use for performance optimization. Triggers: performance, optimization, benchmark, profiling, flamegraph, criterion, slow, fast, allocation, cache, SIMD, m
阅读全文

Zero-Cost Abstraction

name: m04-zero-cost description: "CRITICAL: Use for generics, traits, zero-cost abstraction. Triggers: E0277, E0308, E0599, generic, trait, impl, dyn, where, monomorphization, static dispatch, dynamic
阅读全文

Fix Skill Documentation

name: core-fix-skill-docs description: "Internal maintenance support for checking and fixing generated Rust skill documentation references. Use only when explicitly invoked by /fix-skill-docs." disabl
阅读全文

Error Handling: Library vs Application

Error Handling: Library vs Application Library Error Design Principles Define specific error types - Don't use anyhow in libraries Implement std::error::Error - For compatibility Provide error variant
阅读全文

Error Handling Patterns

Error Handling Patterns The ? Operator Basic Usage fn read_config() -> Result<Config, io::Error> { let content = std::fs::read_to_string("config.toml")?; let config: Config = toml::from_str(&
阅读全文

Error Handling

name: m06-error-handling description: "CRITICAL: Use for error handling. Triggers: Result, Option, Error, ?, unwrap, expect, panic, anyhow, thiserror, when to panic vs return Result, custom error, err
阅读全文