What problem does it solve? Upgrading a CopilotKit v1 application to v2 involves a ground-up rewrite: the GraphQL protocol is replaced by AG-UI, hooks and components are renamed or removed, and the runtime switches from service adapters to agent instances. This Skill guides that migration systematically so no deprecated API is missed. ## Core Features & Use Cases - Deprecation Mapping: Complete tables mapping every v1 hook, component, runtime class, and type to its v2 replacement, including removed APIs like CopilotTextarea and service adapters. - Step-by-Step Migration Workflow: Audits current v1 usage, updates package dependencies, rewrites the provider, converts hooks (e.g., useCopilotAction to useFrontendTool with Zod schemas), and reconfigures the runtime with createCopilotEndpoint. - Live Documentation Lookup: Includes an MCP server (copilotkit-docs) with search-docs and search-code tools for querying current v2 API signatures during migration. - Use Case: A team with a Next.js app using useCoAgent, CopilotChat, and an OpenAIAdapter runtime can follow the workflow to convert to useAgent, the consolidated @copilotkit/react package, and a BuiltInAgent-based CopilotRuntime. ## Quick Start Migrate my CopilotKit v1 app to v2 by scanning for deprecated hooks and updating the runtime configuration.