Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add VersoXBT/claude-initial-setup --skill ownership-borrowinggit clone --depth 1 https://github.com/VersoXBT/claude-initial-setupWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/versoxbt/claude-initial-setup/ownership-borrowing)<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/ownership-borrowing"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/ownership-borrowing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/ownership-borrowing"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/ownership-borrowing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.01836 |
| Opus 5.5 | $0.00025 | $0.00734 |
| Sonnet 5.5 | $0.00013 | $0.00367 |
| Haiku 4.5 | $0.00006 | $0.00184 |
Grade A, and why
ownership-borrowing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust Ownership and Borrowing
Understand and apply Rust's ownership system to write memory-safe code without a garbage collector. Master borrowing rules, lifetimes, and smart pointers.
When to Use
- Encountering borrow checker errors ("cannot borrow as mutable")
- Deciding between references, cloning, and moving
- Adding lifetime annotations to structs or functions
- Choosing between Box, Rc, Arc for heap allocation and sharing
- Understanding when to derive Clone vs Copy
Core Patterns
Pattern 1: Ownership Rules
Three rules govern all Rust memory:
- Each value has exactly one owner.
- When the owner goes out of scope, the value is dropped.
- Ownership can be transferred (moved) but not duplicated (unless Copy).
fn main() {
let name = String::from("Alice"); // name owns the String
let greeting = greet(name); // ownership moves to greet
// println!("{name}"); // ERROR: name was moved
println!("{greeting}");
}
fn greet(name: String) -> String { // takes ownership
format!("Hello, {name}!") // returns a new owned String
}
Pattern 2: Borrowing -- Shared and Mutable References
Borrow data without taking ownership. Two rules:
- Any number of shared references (
&T) OR exactly one mutable reference (&mut T). - References must always be valid (no dangling pointers).
fn analyze(data: &[i32]) -> (i32, i32) {
// Shared borrow: can read, cannot modify
let sum: i32 = data.iter().sum();
let count = data.len() as i32;
(sum, count)
}
fn normalize(data: &mut Vec<f64>) {
// Mutable borrow: can read and modify
let max = data.iter().cloned().fold(f64::NEG_INFINITY, f64::max);
if max != 0.0 {
for val in data.iter_mut() {
*val /= max;
}
}
}
fn main() {
let mut values = vec![1.0, 2.0, 3.0];
normalize(&mut values); // mutable borrow
let (sum, _) = analyze(&[1, 2, 3]); // shared borrow
println!("{sum}");
}
Pattern 3: Lifetimes
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 244 lines · 63 tokens per session scan A 33cbfe797197
ownership-borrowing is a skill published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,836 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
sota-rust
State-of-the-art Rust engineering (2026) for writing and auditing Rust code. Covers idiomatic ownership and API design, error handling and panic policy, unsafe discipline with Miri, formal verification (Kani proof harnesses, Flux refinement types), async/tokio (cancellation safety, structured concurrency, graceful…
rust-conventions
Use when a ticket adds or changes Rust code and it must follow the repo's Rust conventions — ownership and borrowing done right, explicit error handling with Result and typed errors, no needless unsafe or clones, idiomatic traits and iterators per the Rust API Guidelines, async/tokio used without blocking or…
rust_expert
Systems programming with Rust. Ownership, borrowing, lifetimes, and safety patterns.
temporal-python-testing
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.
yoagent
Use when building, extending or upgrading an agent on the yoagent Rust crate. Maps each job (tools, policies, verifiers, budgets, sub-agents, plugins from other ecosystems, retries, structured output, tests) to the yoagent feature for it, with tips, pitfalls and what changed per version.
rust-tracing
Add or change Rust diagnostic tracing in litellm-rust, including route spans, subscriber layers, and Python logger delivery.