What problem does it solve?
Changing playback-engine behaviors in the Video.js SPF package without a disciplined process leads to broken ownership boundaries, dropped lifecycle invariants, and refactors that miss the behavior's actual purpose. This Skill routes each change to the correct workflow and enforces purpose-first analysis before any code is written.
Core Features & Use Cases
- Workflow Routing: Directs the change to one of four detailed references — update (purpose expands), refactor (purpose preserved), split (one responsibility becomes many), or merge (two become one).
- Convention Enforcement: Applies the documented SPF conventions for signals, reactors, lifecycle, cleanup, naming, and composition from
internal/design/spf/conventions/.
- Test-Pinned Changes: Requires pinning observable behavior with tests before implementation changes, then running scoped SPF test, build, and size checks.
- Use Case: When asked to split source cleanup out of the playback lifecycle behavior, the Skill produces a documented ownership boundary, pinned invariants, focused implementation changes, and proportional verification.
Quick Start
Ask the assistant to refactor, update, split, or merge a specific SPF behavior file in packages/spf and it will follow the matching workflow.