devtools-instrumentation
Installation
SKILL.md
devtools-instrumentation
Prerequisite: Read the
devtools-event-clientskill first for EventClient creation, event maps, andemit()/on()API.
Strategic placement of emit() calls inside a library to send high-value diagnostic data to TanStack Devtools panels. Maximum insight with minimum noise.
Key Insight
The event bus transparently bridges server/client and cross-tab boundaries. emit() on the server arrives on the client via WebSocket/SSE. emit() in one tab reaches other tabs via BroadcastChannel. No transport code needed -- just emit at the right place.
For prototyping, throw in many events. For production, consolidate down to the fewest events that carry the most information.
Where to Instrument
Emit at architecture boundaries, not inside implementation details: