yuzu-plugin-abi
Guard Yuzu's stable C plugin ABI, descriptor contract, and loader compatibility. Use when changing `sdk/include/yuzu/plugin.h`, `plugin.hpp`, plugin descriptors, `agents/core/src/plugin_loader.cpp`, b
Files2
View on GitHubSKILL.md.codex/skills/yuzu-plugin-abi/SKILL.md
GitHubYuzu Plugin ABI
Treat The Boundary As Hard
- Treat
sdk/include/yuzu/plugin.has the stable C ABI. - Do not reorder or remove struct fields.
- Append new struct fields only at the end.
- Do not let C++ types, exceptions, or STL containers cross the C boundary.
- Bump
YUZU_PLUGIN_ABI_VERSIONwhen the binary contract changes.
Keep The Runtime Contract Aligned
- Keep
plugin.hppconvenience wrappers aligned withplugin.h. - Keep
agents/core/src/plugin_loader.cppcompatibility checks aligned with the declared ABI range. - Preserve
yuzu_plugin_descriptor()expectations and exported symbol names.
Watch Action Surface Changes
- If a plugin adds, removes, or renames actions, inspect corresponding instruction definitions under
content/definitions/. - Keep descriptor strings, action arrays, and tests consistent.
- Recheck plugin loader diagnostics if the descriptor layout or SDK version fields change.
Validate
- Build the agent targets.
- Run descriptor and loader coverage first, especially
tests/unit/test_new_plugins.cppandtests/unit/test_plugin_loader.cpp. - Run the narrowest relevant agent suite before expanding outward.
Invoke Sibling Skills
- Invoke
$yuzu-mesonfor build-graph changes. - Invoke
$yuzu-windows-msvcif the change affects Windows export or loading behavior. - Invoke
$yuzu-buildfor compile and test flow.
Read On Demand
sdk/include/yuzu/plugin.hsdk/include/yuzu/plugin.hppagents/core/src/plugin_loader.cpptests/unit/test_new_plugins.cpptests/unit/test_plugin_loader.cppcontent/definitions/