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 - Complete Event Reference: Covers all AG-UI event families including lifecycle, text messages, tool calls, state snapshots/deltas, reasoning, and activity events with full schemas. - 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: Documents HttpAgent, subscribers, middleware, and event application logic for debugging why events do not reach the frontend. - Use Case: You are building a custom agent server in TypeScript and the frontend never renders streamed text. Use this Skill to verify your event ordering (RUN_STARTED first, TEXT_MESSAGE triads, RUN_FINISHED last) and SSE wire format. ## Quick Start Use the copilotkit-agui skill to help me build an Express endpoint that streams AG-UI events for a simple echo agent.