name: rust-skill-creator description: "Use when creating skills for Rust crates or std library documentation. Keywords: create rust skill, create crate skill, create std skill, 创建 rust skill, 创建
阅读全文
Browser Automation with agent-browser
name: core-agent-browser description: "Internal support skill for agent-browser CLI workflows used by rust-learner, docs-researcher, and crate-researcher. Use only when browser automation is explicitl
阅读全文
CLI Domain
name: domain-cli description: "Use when building CLI tools. Keywords: CLI, command line, terminal, clap, structopt, argument parsing, subcommand, interactive, TUI, ratatui, crossterm, indicatif, progr
阅读全文
Mutability
name: m03-mutability description: "CRITICAL: Use for mutability issues. Triggers: E0596, E0499, E0502, cannot borrow as mutable, already borrowed as immutable, mut, &mut, interior mutability, Cell
阅读全文
Rust Trait Explorer
name: rust-trait-explorer description: "Explore Rust trait implementations using LSP. Triggers on: /trait-impl, find implementations, who implements, trait 实现, 谁实现了, 实现了哪些trait" argument-hint:
阅读全文
Add SAFETY Comment Before Any Unsafe Block
id: safety-09 original_id: P.UNS.SAS.09 level: P impact: CRITICAL clippy: undocumented_unsafe_blocks Add SAFETY Comment Before Any Unsafe Block Summary Every unsafe block or unsafe impl must have a //
阅读全文
Do Not Abuse Unsafe to Escape Compiler Safety Checks
id: general-01 original_id: P.UNS.01 level: P impact: CRITICAL Do Not Abuse Unsafe to Escape Compiler Safety Checks Summary Unsafe Rust should not be used as an escape hatch from the borrow checker or
阅读全文
Avoid Union Except for C Interop
id: union-01 original_id: P.UNS.UNI.01 level: P impact: HIGH Avoid Union Except for C Interop Summary Only use union for FFI with C code. For Rust-only code, use enum with explicit tags. Rationale Uni
阅读全文
Do Not Share Raw Pointers Across Threads
id: ptr-01 original_id: P.UNS.PTR.01 level: P impact: CRITICAL Do Not Share Raw Pointers Across Threads Summary Raw pointers (*const T, *mut T) are not Send or Sync by default. Do not share them acros
阅读全文
Implement Drop for Rust Types Wrapping Memory-Managing C Pointers
id: ffi-03 original_id: P.UNS.FFI.03 level: P impact: CRITICAL Implement Drop for Rust Types Wrapping Memory-Managing C Pointers Summary When wrapping a C pointer that owns memory, implement Drop to c
阅读全文