renseiai/donmai-kits/rust-debugging
Claude Code and agent skill by renseiai/donmai-kits
- community
Checking that the SKILL.md file is still in the repository.
Diagnose Rust compile, borrow-checker, trait, Clippy, formatting, and test failures. Use when Cargo commands fail or report lifetime, bound, lint, or test errors.
Install
npx vskill@latest install renseiai/donmai-kits/rust-debuggingSKILL.md
Rust Debugging
Overview
Debugging Rust compile errors, borrow-checker failures, clippy lints, and test failures. Systematic diagnosis for the most common Cargo failure modes.
Triggers
Use this skill when:
cargo buildfails to compile (borrow checker, trait bounds, lifetimes)cargo clippy -- -D warningsblocks the validate gatecargo testfails, panics, or doctests breakcargo fmt --checkreports formatting drift
Debugging Workflow
1. Compile / Borrow-Checker Errors
Read the FIRST error and its help: / note: lines — rustc's diagnostics usually point at the exact fix.
Common root causes:
- Borrow conflicts — restructure ownership, clone deliberately, or scope the
borrow with a block
- Lifetime mismatches — name the lifetime explicitly or return an owned value
- Missing trait bounds — add
where T: Traitor derive the trait - Moved value used after move — borrow (
&) instead, or clone
2. Clippy Lints (validate gate)
Fix the lint rather than #[allow(...)]-ing it; clippy's suggestion is usually the idiomatic form.
3. Test Failures
Common root causes:
unwrap()/expect()panics onNone/Err— handle the variant- Doctest failures — the example in
///comments must compile and run - Integration tests in
tests/need the crate's public API only
Notes
- cargo/rustc live in
~/.cargo/bin. If a command reportscargo: not found,
source ~/.cargo/env first (the toolchain installer wrote it there).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkits/rust/skills/rust-debugging/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/renseiai/donmai-kits/rust-debugging)