Designs safe foreign-function boundaries between Rust/Go/Python and C/C++ libraries, covering ownership, error translation, panic containment, callbacks, and sanitizer testing.
The C ABI is the lingua franca and it carries no safety: no ownership, no lifetimes, no exceptions, no strings with lengths. Everything the type systems on either side enforced must be re-established by convention at the boundary, in writing.
x_free() for what
x_create() returned); pointer validity duration (call-scoped or
retained?); nullability of every pointer; thread-safety
(callable from any thread? reentrant?). This contract is the
SAFETY documentation the wrapper cites (see unsafe-code-review).ptr + len, never assume NUL-termination), opaque handles
(struct Foo* the other side never dereferences). Convert to
rich native types (String, slices, structs) immediately inside
the wrapper; business logic never touches boundary types.last_error/out-param message. Native side: convert codes into
the language's error idiom (Result variants, exceptions,
Go errors) with context (see rust-error-handling); never let
callers see raw negative ints. Exposing your library: catch
every panic/exception at the boundary
(catch_unwind, try/catch) and return a code: unwinding across
the C ABI is undefined behavior.user_data context pointer (kept alive by the
caller for the registration's whole duration: document it),
no unwinding out (wrap the body in the panic barrier), and a
stated threading model (which thread calls it, may it re-enter
the library?). Callback lifetime bugs are FFI's signature
use-after-free.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job