Playbridge protocol

From playbridgeapp/playbridge · View interactive version

Playbridge protocol is an AI agent skill from the GitHub repository playbridgeapp/playbridge. Change or review PlayBridge's cross-platform wire protocol and compatibility surface. Use for protocol/asyncapi.yaml, protocol/proto/messages.proto, generated bindings, shared Kotlin message parsing/building, Desktop Dart protocol code, Apple JSON consumers, extension message handling, pairing/authe

How to use this skill

Skill file

PlayBridge Protocol

Treat the protocol as a contract

Check consumers

Inspect all affected consumers, including:

Load the corresponding PlayBridge specialist skills for consumer implementation.

The pb_receiver_runtime_* C API and its Dart event JSON are an internal host

ABI, not the PlayBridge WSS contract. A change limited to that ABI does not

require an AsyncAPI change, but it must update the C header, Rust FFI worker,

Dart wrapper, receiver ABI version when incompatible, and affected consumers

together. Any change to frames sent over WSS still requires the normal protocol

contract review.

Preserve security invariants

Verify

From protocol/, always validate the AsyncAPI structure and references:

ruby scripts/check-spec.rb

When protobuf changed, regenerate and verify the retained committed bindings:

./generate.sh
./generate.sh --check

Then run focused checks in every affected consumer project. Validate shared Kotlin changes through both Android Gradle roots.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.