/bricelam:csharp-native-interopfrom bricelam
Conventions for writing Win32 native interop code in C# using CsWin32 (the Microsoft.Windows.CsWin32 source generator). Use whenever writing or reviewing P/Invoke calls, Win32 API usage, or native interop code in C#---even if CsWin32 isn't named explicitly, e.g. requests to call a Win32 function, work with window handles/HWNDs, or add a `NativeMethods.txt` entry.
Ships in bricelam. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
using static Windows.Win32.PInvoke; at the top of the file, and call generated methods and reference generated const fields directly (unqualified)---don't prefix with a class name and don't wrap them in a helper method or class.IntPtr/nint and CsWin32's handle structs (HWND, HANDLE, etc.) at the boundary where a handle enters or leaves interop code, rather than avoiding the handle struct types or threading raw IntPtr through the rest of the code.using static Windows.Win32.PInvoke;
using Windows.Win32.Foundation;
HWND hwnd = (HWND)someIntPtr;
SetWindowPos(hwnd, HWND.Null, 0, 0, 0, 0, SET_WINDOW_POS_FLAGS.SWP_NOSIZE | SET_WINDOW_POS_FLAGS.SWP_NOMOVE);
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub bricelam/bricelam-plugins --plugin bricelam15 skills in this plugin
/csharp-collectionsC# collection conventions---choosing between ToList, new List, and collection-expression spread to materialize or copy a sequence, and which collection interface to use for method parameters and return types. Use whenever materializing an enumerable into a list or declaring a collection-typed parameter or return type (arrays, `List<T>`, `IEnumerable<T>`, dictionaries, etc.)./csharp-csvhelperConventions for using CsvHelper in C#---aliasing its generically named attribute types. Use whenever writing or reviewing code that reads or writes CSV with CsvHelper, or whenever using CsvHelper's `FormatAttribute`, `IgnoreAttribute`, `NameAttribute`, or `TypeConverterAttribute`---even if CsvHelper isn't named explicitly./csharp-Other plugins' skills for the same job