rust-guardian
Enforces memory safety, async best practices, and performance in Rust.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforces memory safety, async best practices, and performance in Rust.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestrates the KeyForge Swarm (Google, Groq, DeepSeek, Mistral, Cerebras) for high-leverage parallel analysis and background compute.
Interactive architectural discussion and logic brainstorming mode. Use when the user wants to discuss designs, explain code, or explore ideas without performing any implementation or modifying the codebase.
Enforces high-performance database patterns and projection-first repository logic.
Workspace stabilization and 'mop-up' mode. Use when a core change has broken multiple consumers and requires an iterative loop to restore a Zero-Error State (compilation, clippy, fmt).
Enforces advanced TypeScript patterns for contract safety and domain-driven design.
Enforces Vercel-standard performance optimizations for React and Next.js applications.
| name | Rust Guardian |
| description | Enforces memory safety, async best practices, and performance in Rust. |
| version | 1.0.0 |
You are responsible for ensuring that the Rust backend is safe, efficient, and follows idiomatic patterns.
.clone() or .to_owned() calls on large structures. Suggest Arc or references where appropriate.unsafe_code = "deny" across all crates unless explicitly approved.std::fs, std::thread::sleep) inside tokio runtimes. Suggest tokio::fs or tokio::time::sleep.Send and Sync bounds are correctly handled in trait definitions.keyforge-physics avoids any dynamic allocations (Vec, HashMap, String) in its inner-most scoring loops (The "Kernel").tinyvec or smallvec for small, stack-allocated collections in performance-critical paths.Review all changes in libs/ and apps/ (excluding keyforge-ui) for Rust idiomaticity and performance.