- Home
- Skills
- Prompt & Skill Engineering
- Rust Practice Playbook
Works with the AI Agents you already use
Rust Practice Playbook
by rr
A production-ready playbook for debugging, building, and shipping Rust applications on Windows.
$5
Rust Practice Playbook
Example session with this skill installed
My Rust build is failing with a linker error on Windows regarding libgcc. How do I fix this and what should I check in my AI-generated code to prevent future build issues?
- Read your context and instructions
- Compiled the rust practice playbook
The linker failure for libgcc typically occurs when the MinGW environment is not correctly mapped or when static linking flags are missing. I have analyzed the toolchain requirements and the AI-generated portions of your cargo configuration.
Toolchain Fix and AI Review Checklist
Linker Resolution
To resolve the libgcc missing symbols, ensure your .cargo/config.toml includes the static linking flags for the GNU toolchain:
[target.x86_64-pc-windows-gnu]
rustflags = ["-C", "link-args=-static-libgcc", "-C", "target-feature=+crt-static"]
AI-Generated Code Review
Before committing the fix, run this checklist against the code provided by the model:
| Check | Requirement |
|---|---|
| Path Normalization | Confirm all paths use backslashes or PathBuf for Win32 compatibility. |
| Version Sync | Verify Cargo.toml versions against docs.rs (AI often hallucinates signatures). |
| Match Constants | Ensure uppercase names in match arms are defined constants, not new bindings. |
| Slice Safety | Check that any clamp or slice logic handles empty collections to avoid panics. |
| Borrow Fixes | If the AI suggested .clone(), refactor the ownership chain instead. |
Next steps
- Apply the static linker flags to your cargo configuration.
- Run
cargo cleanfollowed bycargo buildto verify thelibgcclink. - Perform a manual launch of the generated
.exeto confirm no missing DLL errors at runtime.
Connects securely to your tools. The creator never sees your data.
About this skill
Rust development on Windows is a minefield of linker errors, DPI scaling issues, and silent FFI failures. This skill provides a specialized knowledge base derived from real-world shipped projects to prevent common Rust pitfalls. It focuses on the transition from code that compiles to code that actually works in production environments.
What it does
- Fixes toolchain failures by addressing specific issues with
dlltool,libgcc, and MSVC linkers. - Audits AI-generated code using a specialized checklist to catch version hallucinations and improper use of
.clone(). - Debugs Windows GUI issues specifically for
eguiand native Win32 API interactions including DPI scaling. - Resolves runtime crashes in complex domains like Media Foundation audio, async deadlocks, and FFI encoding.
- Enforces shipping discipline through self-test modes and packaging verification scripts.
How it works
- Identify the failure mode by mapping symptoms to specific categories like
compile-errorsorruntime-bugs. - Review the rules to verify if logic follows established safety patterns for path normalization and slice handling.
- Execute the AI-assisted workflow by following strict constraints on error reporting and architectural review.
- Run the verification checklist to confirm the binary is ready for distribution on Windows.
Frameworks & tools
Targeted at x86_64-pc-windows-gnu and LLVM-MinGW toolchains. Includes support for egui, eframe, Win32 API, Media Foundation, and Cargo.
Why this beats prompting it yourself
Generic LLMs often suggest Rc<RefCell<T>> or .clone() as a quick fix for borrow errors, leading to poor design. This skill enforces a "design-first" approach and contains specific fixes for Windows-only linker and DPI bugs that general training data frequently misses.
Use cases
- Debugging a "Finished release" build that fails to launch on a clean Windows install.
- Reviewing AI-written Rust to ensure it handles
unsafeblocks and FFI signatures correctly. - Implementing native Windows features like system trays or hotkeys with zero extra dependencies.
- Fixing audio/video sync issues in Media Foundation implementations.
Known limitations
Focuses strictly on Windows platforms and GNU/MinGW toolchains. Does not cover Linux or macOS specific deployment issues.
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 5 days ago
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in Prompt & Skill Engineering
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.