# Developing Genkit Dart

Use when building AI agents in Dart, implementing Genkit flows or tools, integrating...

- Repository: https://github.com/evanca/flutter-ai-rules (668 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add evanca/flutter-ai-rules --skill developing-genkit-dart -g -a claude-code -y`
Codex: `npx skills add evanca/flutter-ai-rules --skill developing-genkit-dart -g -a codex -y`
Cursor: `npx skills add evanca/flutter-ai-rules --skill developing-genkit-dart -g -a cursor -y`
Gemini CLI: `npx skills add evanca/flutter-ai-rules --skill developing-genkit-dart -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add evanca/flutter-ai-rules`

## Description

Use when building AI agents in Dart, implementing Genkit flows or tools, integrating LLMs into Dart or Flutter applications, or using Genkit Dart plugins.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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](references/genkit.md)

## Genkit CLI (recommended)

The Genkit CLI provides a local development UI for running Flow, tracing executions, playing with models, and evaluating outputs.

check if the user has it installed: `genkit --version`

**Installation:**
```bash
npm install -g genkit-cli # Via npm (preferred)
```
A native CLI installer is also documented at https://genkit.dev/docs/devtools, it pipes a remote script to `bash`, so run it yourself rather than having an agent execute it.

**Usage:**
Wrap your run command with `genkit start` to attach the Genkit developer UI and tracing:
```bash
genkit start -- dart run main.dart
```

## Plugin Ecosystem
Genkit relies on a large suite of plugins to perform generative AI actions, interface with external LLMs, or host web servers.

When asked to use any given plugin, always verify usage by referring to its corresponding reference below. You should load the reference when you need to know the specific initialization arguments, tools, models, and usage patterns for the plugin:

The rest: https://github.com/evanca/flutter-ai-rules/blob/HEAD/skills/developing-genkit-dart/SKILL.md
