Skill / SKILL.md

Ownership Not Clone

rewrite-rs/skills

Use ownership and borrowing instead of reaching for clone, Rc, RefCell, or Arc<Mutex<_>> to silence the borrow checker. Every clone must be explainable. Use when code clones to make an error go away, when a borrow-checker fight is being resolved by copying data, when reviewing Rust dense with .clone() or Rc<RefCell<_>>, or when the user asks whether a clone is necessary.
2 views 33 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use ownership and borrowing instead of reaching for clone, Rc, RefCell, or Arc<Mutex<_>> to silence the borrow checker. Every clone must be explainable. Use when code clones to make an error go away, when a borrow-checker fight is being resolved by copying data, when reviewing Rust dense with .clone() or Rc<RefCell<_>>, or when the user asks whether a clone is necessary.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rewrite-rs/skills' skill-source

Use the complete skill-source/skills/rust/ownership-not-clone directory with your client’s skill installer.

  • skills/rust/ownership-not-clone

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/rust/ownership-not-clone

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
bb9dea762fd986f9c31f218ecf75278122207ec8bef64388b7352eb6630bccb6
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills