Agent skill · google

developing-genkit-dart

Generates code and provides documentation for the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications.

What it needs

About 5k tokens when loaded.

What this skill does

Genkit Dart Genkit Dart is an AI SDK for Dart that provides a unified interface for code generation, structured outputs, tools, flows, and AI agents. Core Features and Usage If you need help with initializing Genkit (Genkit()), Generation (ai.generate), Tooling (ai.defineTool), Flows (ai.defineFlow), Embeddings (ai.embedMany), streaming, or calling remote flow endpoints, please load the core framework reference: references/genkit.md Prompts (Dotprompt) .prompt files keep prompt content out of Dart code with YAML frontmatter plus a Handlebars template. See references/dotprompt.md: promptDir, ai.prompt() (call/stream/render), variants, partials, named schemas via defineSchema, and the tools/maxTurns/returnToolRequests/use (middleware) frontmatter fields. A .prompt file can also back an agent directly via definePromptAgent. Agents Genkit Dart has an agent API for persistent, multi-turn conversations (sessions, snapshots, interrupts, branching, background execution, custom state, artifacts, and multi-agent delegation). Server APIs come from package:genkit/genkit.dart and the browser/HTTP client from package:genkit/client.dart. The remoteAgent client works from any Dart app, including Flutter, and the backend is fully interchangeable — it can talk to a Genkit agent implemented in Dart, JS/TypeScript, or Go over the same HTTP protocol. A few Dart specifics: interrupts are modeled as tools that call ctx.interrupt(...) (there is no defineInterrupt), sub-agent delegation uses the agents() middleware from package:genkitmiddleware, and there is no artifacts() middleware yet (define artifact tools directly). For more details see: Agents: defining/serving an agent and client-managed state (start here). Sessions & persistence: session stores (InMemorySessionStore/FileSessionStore/FirestoreSessionStore). Human-in-the-loop / interrupts: pausing for approval/input via ctx.interrupt and resuming. Branching: forking a conversation from a snapshot. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills google/genkit-dart

View the source on GitHub

Browse the @skills marketplace