> Guidelines and SOP for synchronizing public C++ API changes (methods, enums, options structs) to Java (Android JNI) and JavaScript/TypeScript (Web/WASM Embind).
npx skills add https://github.com/google/filament --skill bindings-synchronization
When making changes to public Filament C++ APIs, AI agents must ensure the changes are mirrored in the Java and JavaScript/TypeScript binding layers.
You must check and update the language bindings if your changes touch any public headers under filament/include/filament/, specifically:
View, Engine, Camera, LightManager, RenderableManager).AmbientOcclusionOptions, BloomOptions, FogOptions).> [!IMPORTANT]
> If you modify options structs defined in filament/include/filament/Options.h, you must run the beamsplitter tool. The tool parses Options.h and automatically updates Java bindings, JavaScript/TypeScript bindings, and C++ JSON serialization files.
>
> Run it via:
> `bash
> cd tools/beamsplitter && go run .
> `
BlendMode, QualityLevel, AntiAliasing under filament/include/filament/ or nested inside classes).All JNI JNI-exported functions use automatic symbol resolution (dynamic mapping), meaning they are mapped by signature rather than a static registration table.
android/filament-android/src/main/java/com/google/android/filament/<ClassName>.javaandroid/filament-android/src/main/cpp/<ClassName>.cpppublic (unless the API is strictly internal to the Java package). Follow Java naming conventions (camelCase).setFoo), always add the corresponding Getter (e.g., isFoo or getFoo).private static native.extern "C" JNIEXPORT <ReturnType> JNICALL Java_com_google_android_filament_<ClassName>_<NativeMethodName>.jboolean using (jboolean) or static_cast<jboolean>().Filament uses Emscripten's Embind to export C++ APIs to JS.
web/filament-js/jsbindings.cppweb/filament-js/jsenums.cppweb/filament-js/filament.d.tsweb/filament-js/extensions.jsjsbindings.cpp within the corresponding class_<ClassName>("<JSClassName>") block using .function("methodName", &ClassName::methodName).filament.d.ts to match any changes. Every bound C++ method should have a corresponding declaration inside export class <ClassName> to avoid IDE type errors.BloomOptions), make sure to:jsbindings.cpp using .field("fieldName", &ClassName::Options::fieldName).filament.d.ts to include the new properties.extensions.js contains a prototype-overrides wrapper for merging the options (e.g., Filament.View.prototype.setBloomOptions). Update the default options object if needed.Before concluding a task:
filament.d.ts are 100% synchronized.Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take google/bindings-synchronization from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.