What problem does it solve? Building a custom agent backend that communicates with a CopilotKit frontend requires correctly implementing the AG-UI event protocol, and mistakes in event ordering, SSE encoding, or state synchronization cause silent streaming failures that are hard to debug. ## Core Features & Use Cases - Protocol Reference: Complete schemas for all AG-UI event families including lifecycle, text messages, tool calls, state snapshots/deltas, reasoning, and activity events. - Backend Implementation Guide: Step-by-step patterns for extending AbstractAgent, exposing HTTP SSE endpoints with EventEncoder, and handling tool call round-trips. - Client SDK Reference: API documentation for HttpAgent, middleware, subscribers, and event application pipelines. - Use Case: You are building an Express server that streams LLM responses to a CopilotKit React app. Use this Skill to emit correctly ordered RUN_STARTED, TEXT_MESSAGE_*, and RUN_FINISHED events and wire up frontend tool execution. ## Quick Start Use the copilotkit-agui skill to build an Express endpoint that streams AG-UI events for a simple echo agent.