SkillTrust

← All skills

dotnet-pinvoke

95 / 100 · Low risk

Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.

By dotnet/skills (GitHub) · coding · 5,870 stars · scanned at commit 96c3d68

Correctly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P/Invoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed/native boundary. DO NOT USE FOR: COM interop, C++/CLI mixed-mode assemblies, or pure ma…

Works with any agent that supports SKILL.md skills.

What this skill can do

Runs commands on your computer

The author does not mention this. Expected for a coding skill.

Found in 1 place.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'dotnet-pinvoke' ] || [ -L ~/.agents/skills/'dotnet-pinvoke' ]; then echo 'A skill folder named dotnet-pinvoke already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/dotnet/skills' "$d" && git -C "$d" checkout --quiet '96c3d68dad2855e3ab5178aa1a262789d86a1466' -- 'plugins/dotnet-advanced/skills/dotnet-pinvoke' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/dotnet-advanced/skills/dotnet-pinvoke' ~/.agents/skills/'dotnet-pinvoke' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'dotnet-pinvoke' ~/.claude/skills/'dotnet-pinvoke' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for dotnet/skills shows the score of its lowest-scoring skill.

SkillTrust badge for dotnet/skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/dotnet/skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/dotnet/skills/)

Score history

DateVersionScore
2026-11-0896c3d6895
2026-11-0796c3d6895