Guides Rust developers to design with ownership-first principles, resolving borrow-checker errors by restructuring code rather than cloning or using unsafe.
The borrow checker enforces one rule: every value has one owner, and you may have many readers or one writer, never both. Designs that encode this rule compile smoothly; designs that hide it fight the checker forever.
String, Vec<T>); functions take &T/&mut T for use,
T when consuming, and return owned values. References inside
structs demand lifetimes and infect every user; reserve them for
deliberate zero-copy designs (parsers, views) where the payoff is
measured..clone() with a comment is honest
engineering; measure before assuming it is the bottleneck (see
python-performance's profiling ethic, applied anywhere).Rc<T>
(single-thread shared ownership), Arc<T> (across threads),
RefCell<T>/Mutex<T> (interior mutability, checked at
runtime): each is a documented decision that the aliasing rule
moves from compile time to runtime. Rc<RefCell<T>> everywhere is
a sign the design wants a different shape: consider handles/ids
into a central store (the ECS idea; see entity-component-system).fn first<'a>(s: &'a str, sep: &str) -> &'a str). If a lifetime
spreads through the codebase causing pain, the borrowed design is
wrong for that data; own it instead.match/if let with ownership-aware patterns
(ref, destructuring), and entry() APIs on maps express in one
construct what manual index-and-mutate loops turn into
borrow-checker arguments.unsafe does not turn off the aliasing rules; it makes you the
checker, with UB as the failure mode (see unsafe-code-review).
It is for FFI and vetted primitives, not borrow-error escape.'static bounds, Send/Sync, and self-borrow
issues beyond this skill; the ownership instincts here are the
prerequisite, not the whole story.What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job