Design and evolve versioned WebSocket event contracts for Stackchan with required common fields, schema-first definitions, compatibility checks, and concrete examples. Use when asked to define, revise, or review protocol events, payloads, and message versioning.
Use this skill when the request is about WebSocket protocol design, event schemas, required envelope fields, event lifecycle, sequence rules, or backward compatibility.
In scope:
Out of scope:
Collect these before design work:
If missing, ask concise questions and continue once minimum is clear.
Always produce:
When editing repository files, prefer these paths:
Every message must include:
Recommended:
For audio stream events:
Preferred lifecycle naming:
Avoid:
Before finalizing, verify:
When asked to review protocol changes, focus on:
Use this template for breaking changes:
Return outputs in this order: