Thinking in Rust: Mental Models

Thinking in Rust: Mental Models Core Mental Models 1. Ownership as Resource Management Traditional: "Who has a pointer to this data?" Rust: "Who OWNS this data and is responsible for freeing it?" Key
阅读全文

Mental Models

name: m14-mental-model description: "Use when learning Rust concepts. Keywords: mental model, how to think about ownership, understanding borrow checker, visualizing memory layout, analogy, misconcept
阅读全文

Domain Error Strategy

name: m13-domain-error description: "Use when designing domain error handling. Keywords: domain error, error categorization, recovery strategy, retry, fallback, domain error hierarchy, user-facing vs
阅读全文

Resource Management

name: m02-resource description: "CRITICAL: Use for smart pointers and resource management. Triggers: Box, Rc, Arc, Weak, RefCell, Cell, smart pointer, heap allocation, reference counting, RAII, Drop,
阅读全文

Resource Lifecycle

name: m12-lifecycle description: "Use when designing resource lifecycles. Keywords: RAII, Drop, resource lifecycle, connection pool, lazy initialization, connection pool design, resource cleanup patte
阅读全文

Rust Refactor Helper

name: rust-refactor-helper description: "Safe Rust refactoring with LSP analysis. Triggers on: /refactor, rename symbol, move function, extract, 重构, 重命名, 提取函数, 安全重构" argument-hint:
阅读全文

Rust Code Navigator

name: rust-code-navigator description: "Navigate Rust code using LSP. Triggers on: /navigate, go to definition, find references, where is defined, 跳转定义, 查找引用, 定义在哪, 谁用了这个"
阅读全文

Cloud-Native Domain

name: domain-cloud-native description: "Use when building cloud-native apps. Keywords: kubernetes, k8s, docker, container, grpc, tonic, microservice, service mesh, observability, tracing, metrics, hea
阅读全文

Rust Skills - Claude Instructions

Rust Skills - Claude Instructions CRITICAL: Negotiation Protocol Check (BEFORE ANY SKILL) STOP! Before loading ANY skill, check if negotiation is required: Query ContainsAction "比较", "对比", "compare",
阅读全文

Cache Status

description: Show Rust docs cache status argument-hint: [--verbose] Cache Status Show the status of cached Rust documentation. Arguments: $ARGUMENTS --verbose: Show detailed file list Instructions 1.
阅读全文