What problem does it solve?
This Skill provides a structured approach to implement real-time streaming of AI chat responses, enabling immediate token-level feedback, progress indicators, and client-driven effects during a conversation. It helps developers build responsive chat interfaces where partial results are shown as they arrive, while user interactions remain controlled.
Core Features & Use Cases
- Response Lifecycle Handlers: coordinate UI state with onResponseStart and onResponseEnd to lock/unlock interactions.
- Client Effects & Progress Updates: emit and consume streaming client effects and progress updates to keep the UI in sync.
- Thread & Client Tool Hooks: track thread changes and query client state to inform AI decisions.
- Use Case: Building a live-chat dashboard where users see tokens streaming in and the UI updates with status banners and live metrics.
Quick Start
Use the streaming-llm-responses skill to wire a chat UI that shows a loading indicator while tokens stream, handles onEffect events to update UI, and uses onClientTool to read current UI state for AI decisions.