Works with the AI Agents you already use

    Rust Practice Playbook

    by rr

    1

    A production-ready playbook for debugging, building, and shipping Rust applications on Windows.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Rust Practice Playbook

    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:

    CheckRequirement
    Path NormalizationConfirm all paths use backslashes or PathBuf for Win32 compatibility.
    Version SyncVerify Cargo.toml versions against docs.rs (AI often hallucinates signatures).
    Match ConstantsEnsure uppercase names in match arms are defined constants, not new bindings.
    Slice SafetyCheck that any clamp or slice logic handles empty collections to avoid panics.
    Borrow FixesIf the AI suggested .clone(), refactor the ownership chain instead.

    Next steps

    1. Apply the static linker flags to your cargo configuration.
    2. Run cargo clean followed by cargo build to verify the libgcc link.
    3. Perform a manual launch of the generated .exe to 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 egui and 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

    1. Identify the failure mode by mapping symptoms to specific categories like compile-errors or runtime-bugs.
    2. Review the rules to verify if logic follows established safety patterns for path normalization and slice handling.
    3. Execute the AI-assisted workflow by following strict constraints on error reporting and architectural review.
    4. 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 unsafe blocks 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.

    Frequently Asked Questions

    This skill addresses Windows-specific hurdles like MSVC/MinGW linker errors, DPI scaling bugs in GUIs, and Media Foundation audio crashes that standard AI models often misdiagnose.

    The playbook is optimized for the x86_64-pc-windows-gnu target and LLVM-MinGW toolchains, making it ideal for developers who need to ship standalone .exe files without heavy MSVC dependencies.

    You receive a specialized knowledge base and a structured workflow that guides your AI agent through debugging, code auditing for safety, and final packaging verification.

    Yes, it includes a specialized audit checklist designed to catch common AI hallucinations, such as non-existent crate versions or excessive use of .clone() to bypass the borrow checker.

    No, this skill is purpose-built for the Windows ecosystem; it does not contain logic for resolving Linux-specific dependencies or macOS-specific code signing and notarization.

    Once imported into your compatible AI agent or IDE extension, you can immediately begin using the 'Identify failure mode' workflow to troubleshoot existing compiler or runtime errors.

    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.