skills/dotnet/msbuild/cswin32-interop/Gen Agent Trust Hub

cswin32-interop

Pass

Audited by Gen Agent Trust Hub on Sep 25, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADS
Full Analysis
  • [External Resource Reference]: The skill references the CsWin32 source generator from Microsoft's official GitHub repository. This is a standard and recognized tool for .NET development and is considered a safe reference to a trusted organization.
  • [Programming Guidelines]: The instructions focus on establishing best practices for Windows API interop, such as using blittable signatures, proper error handling (e.g., ThrowOnFailure), and implementing the Dual Guard Pattern (#if FEATURE_WINDOWSINTEROP with runtime IsWindows checks). These patterns improve the robustness and safety of native code calls.
  • [Data Handling Guidance]: The skill recommends using BufferScope<T> for efficient and safer memory management when dealing with native buffers, which is a standard performance and security optimization in .NET interop to avoid unnecessary heap allocations and handle stack safety.
  • [Static Documentation]: The content is purely instructional and does not contain executable code, automated network operations, or methods for persistent access. The analysis found no evidence of prompt injection, obfuscation, or privilege escalation patterns.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 25, 2026, 09:39 AM