FFI and native interop rules: single documented pointer ownership, opaque handles, null-pointer checks, allocate/free pairs, unsafe-block invariants, generated C headers, stable C ABI, frozen struct layouts, and error/context conversion. Load when writing or reviewing FFI boundaries between native and host languages.
$npx -y skills add goldziher/ai-rulez --skill ffi-and-language-interopInstalls into the current project.
Run `npx skills use "https://github.com/goldziher/ai-rulez" --skill "goldziher/ai-rulez/ffi-and-language-interop"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/goldziher/ai-rulez" that are relevant to the current task. Run `npx skills add "https://github.com/goldziher/ai-rulez"` and select the relevant skills, then follow their instructions.