ownership-not-clone
Installation
SKILL.md
Ownership, Not Clone
The borrow checker is a map of where ownership is being fudged, not an obstacle to route around. This skill decides who holds a value and for how long.
The rule
Every clone must be explainable in one sentence that is not "the borrow checker
complained." A clone that buys a real thing — a value that must outlive the borrow
— is fine; one that only silences an error is a deferred design decision.
Read the error, not the workaround
E0502 (a mutable borrow while an immutable one is still live) and E0499 (two
mutable borrows of the same place) name a lifetime conflict; the fix is in the
structure the error describes, not in the clone that silences it: