What problem does it solve? Building AI-powered features in JavaScript/TypeScript requires correct usage of the Genkit framework, which underwent major breaking API changes in v1.x. This Skill provides up-to-date guidance, migration patterns, and error troubleshooting so you avoid deprecated APIs and resolve validation, type, and runtime errors quickly. ## Core Features & Use Cases - Flows, Prompts & Agents: Implement single-shot flows, Dotprompt templates, and beta multi-turn agents with sessions, interrupts, branching, background execution, and artifacts. - Middleware & Orchestration: Attach retry, fallback, filesystem, skills, tool-approval, and multi-agent delegation middleware, or build custom middleware with generateMiddleware. - Error Troubleshooting Protocol: A mandatory common-errors reference maps deprecated pre-1.0 APIs (configureGenkit, response.text(), global defineFlow) to their v1.x replacements. - CLI Workflows: Use genkit start, flow:run, docs:search, and trace inspection to verify behavior with traces instead of blind runs. - Use Case: When a user asks to build a chatbot with tool calling in TypeScript, the Skill guides agent definition, session persistence, HTTP deployment via Express or Next.js, and trace-based verification. ## Quick Start Ask the assistant to create a Genkit flow or agent in TypeScript, for example to build a weather chatbot with a tool and streaming response.