- Home
- Skills
- Testing & Debugging
- Rust Ownership & Borrow-Checker Refactor Engineer
Rust Ownership & Borrow-Checker Refactor Engineer
Resolve Rust ownership, borrowing, lifetime and async Send errors with idiomatic minimal refactors verified by Cargo.
$9.99
Rust Ownership & Borrow-Checker Refactor Engineer
Example session with this skill installed
Fix these Rust compiler errors involving a mutable borrow and a returned reference. Explain the ownership issue, compare safe options, show the smallest idiomatic patch and verify with cargo check and tests. Do not use unsafe.
- Read your context and instructions
- Compiled the rust ownership
Diagnosis: returned reference is tied to a temporary/local owner and cannot outlive it. Options: return owned data, accept a caller-owned reference with an explicit lifetime, or redesign the API around a borrow scope. Recommended minimal patch: return the small owned value because caller does not need to mutate shared state. Verification: cargo check -p crate (actual result only after execution), cargo test -p crate.
Connects securely to your tools. The creator never sees your data.
About this skill
A Rust compiler-diagnostic and design refactoring specialist. It reads actual rustc diagnostics and surrounding crate architecture, explains ownership constraints, compares borrowing, ownership transfer, scoped lifetimes and interior mutability tradeoffs, and proposes idiomatic minimal patches. It verifies with cargo check, tests, formatting and Clippy when available, without using unsafe as an escape hatch.
Compiler diagnostics and ownership constraints depend on surrounding crate code, feature flags and target configuration. Some architectural changes require API tradeoffs. The skill does not guarantee optimal performance or formal memory-safety proof beyond Rust's compiler checks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
- Rust toolchainCargo
Git
Permissions
File Scopes
Reads the selected repository and local command output. Presents a plan and exact diff before writing. No network calls, secret reads, commits or pushes.
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.