skills/dotnet/skills/dotnet-pinvoke/Gen Agent Trust Hub

dotnet-pinvoke

Pass

Audited by Gen Agent Trust Hub on Mar 10, 2026

Risk Level: SAFE
Full Analysis
  • Standard Dependency Recommendations: The skill mentions official Microsoft packages such as Microsoft.Windows.CsWin32 and Microsoft.Windows.CsWinRT. These are well-established tools for automating the generation of P/Invoke signatures, which helps reduce human error in security-sensitive interop code.
  • Task-Specific Behavioral Guidance: The 'Agent behavior' sections provide instructions focused on technical accuracy, such as prioritizing native headers over documentation and flagging specific platform targets (e.g., Windows x86). These instructions are intended to improve the quality of the technical output and do not involve any attempts to bypass safety protocols.
  • Reference to Trusted Resources: The skill includes several links to official Microsoft documentation (learn.microsoft.com) and well-known GitHub repositories. These provide users with verified information on best practices for P/Invoke, memory management, and diagnostics.
  • Focus on Memory Safety: A significant portion of the skill is dedicated to teaching safe memory ownership models and the use of SafeHandle to prevent resource leaks and memory corruption, which are common security concerns in native interop.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 10, 2026, 11:34 AM