Skip to content

Genkit Dart Developer Guide

Helps an agent write Genkit Dart code for LLM flows, tools, prompts and AI agents

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
15 files

What it does

Once installed, the agent knows the Genkit Dart SDK (version 1.0 and later) and can write code that uses it: calling AI models, defining tools and flows, managing prompt files, building experimental multi-turn agents, and adding A2UI interactive UI to Flutter apps. It also warns about outdated pre-1.0 API names that older code and training data often use, and can suggest the Genkit CLI to trace what a program does.

Great for

  • Dart or Flutter developers adding LLM features to an app
  • Teams migrating older Genkit Dart code to the 1.0 API
  • Developers building conversational agents with sessions and human approval steps

Skip it if

  • Projects not using Dart (the skill is specific to the Dart SDK; use a language-matched skill instead)
  • Production systems relying on the agent/session APIs without accepting that they are marked experimental and may change

Try asking

  • “Create a Genkit Dart flow that summarises a document using Gemini and expose it over HTTP”
  • “Add a tool the model can call to look up order status, then verify with the Genkit CLI that the tool ran”
  • “Build a multi-turn Dart agent with a FileSessionStore and an approval step before sending an email”
  • “Move my old startFlowServer Genkit code to the Genkit 1.0 GenkitRouter API”
Step-by-step guide: how to use Genkit Dart Developer GuideInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 15 original files, the Apache-2.0 licence and an attribution note.

    developing-genkit-dart.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip developing-genkit-dart.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip developing-genkit-dart.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name your Dart project and SDK version up front so the agent targets genkit ^1.0.0 rather than older examples
  • Run generated code through the Genkit CLI (genkit start -- dart run main.dart) so tool calls and model I/O are traced, rather than plain dart run
  • Keep API keys in environment variables or a secrets manager, not in generated source, and review any CLI install script before running it

What's inside

  • references/a2ui.md
  • references/agents-artifacts.md
  • references/agents-background.md
  • references/agents-branching.md
  • references/agents-custom.md
  • references/agents-deployment.md
  • references/agents-human-in-the-loop.md
  • references/agents-multi-agent.md
  • references/agents-sessions.md
  • references/agents-state.md
  • references/agents.md
  • references/dotprompt.md
  • references/genkit_anthropic.md
  • references/genkit.md
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.