rust
Rust: .rs, Cargo.toml, Cargo.lock, ownership, borrowing, lifetimes, traits, cargo build/test/run, Result/Option, or borrow checker.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Rust: .rs, Cargo.toml, Cargo.lock, ownership, borrowing, lifetimes, traits, cargo build/test/run, Result/Option, or borrow checker.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Pi extensions and tool policy: extensions/*.ts, hooks, registerTool, promptGuidelines, registerCommand, footer/status UI, tool_result, session hooks, or subprocesses. Not for slash-command placement; use pi-command.
README, CHANGELOG, docs/, RFCs, ADRs, guides, or Markdown structure. Not for prose cleanup or archival work.
Prose cleanup for filler, hype, vague claims, repetition, detection tells, or uncited specifics. Not for Markdown architecture or archival work.
Requirements, user stories, acceptance/verification criteria, or testable outcomes. Not for PRD drafting (/prd) or Pi /goal prompts.
Use for /prd-it or to draft, refine, or review a Product Requirements Document. Not for acceptance criteria, planning, or Pi /goal prompts.
Pi session, trace, metrics, routing, workflow-friction, workflow-telemetry, usage, or local JSONL analysis with DuckDB. Use for aggregating or correlating Pi runtime logs. Not for adding telemetry, generic SQL/database design, or non-Pi logs.
| name | rust |
| description | Rust: .rs, Cargo.toml, Cargo.lock, ownership, borrowing, lifetimes, traits, cargo build/test/run, Result/Option, or borrow checker. |
Rust guarantees memory safety without garbage collection through its ownership system. Prefer zero-cost abstractions, leverage the type system for correctness, and handle errors with Result<T, E> instead of panicking.
| Command | Purpose |
|---|---|
cargo build | Build project |
cargo test | Run all tests |
cargo fmt | Format code |
cargo clippy | Lint with suggestions |
cargo check | Type-check without building |
cargo doc --open | Generate and view docs |
cargo bench | Run benchmarks |