What problem does it solve? Building AI-powered features with CopilotKit v2 requires knowing the correct hooks, components, and runtime setup across the React, Core, and Runtime layers, and this Skill provides the exact API patterns and workflow steps to wire them together correctly. ## Core Features & Use Cases - Chat UI Integration: Add CopilotChat, CopilotPopup, or CopilotSidebar components connected to an agent through CopilotKitProvider. - Agent Interaction Hooks: Register frontend tools with useFrontendTool, share app state with useAgentContext, handle interrupts with useInterrupt, and render tool calls with useRenderTool. - Runtime Setup: Configure CopilotRuntime with LangGraph agents and expose it via createCopilotEndpoint (Hono/Next.js) or createCopilotEndpointExpress. - Use Case: Add a sidebar chat to a Next.js app, register a setTheme frontend tool validated with Zod, and share the user's cart data as agent context so the AI can act on it. ## Quick Start Add a CopilotSidebar chat interface to my React app connected to a CopilotKit runtime endpoint at /api/copilotkit.