首页/数据 & AI/developing-genkit-dart
D

developing-genkit-dart

by @firebasev
4.6(30)

为Genkit Dart提供代码生成和详细文档,加速Genkit应用的开发,提高开发效率。

Firebase GenkitDart ProgrammingAI Agent DevelopmentGoogle Cloud AILLM IntegrationGitHub
安装方式
npx skills add firebase/agent-skills --skill developing-genkit-dart
compare_arrows

Before / After 效果对比

1
使用前

开发Genkit Dart应用时,需要手动编写大量样板代码,并查阅分散的文档,开发效率低下,容易引入人为错误,延长了项目开发周期。

使用后

引入Genkit Dart开发工具后,能自动生成核心代码和提供集成文档,大幅减少手动编码量,提升开发效率和代码质量,加速应用上线。

description SKILL.md

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

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:

curl -sL cli.genkit.dev | bash # Native CLI
# OR
npm install -g genkit-cli # Via npm

Usage: Wrap your run command with genkit start to attach the Genkit developer UI and tracing:

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:

Plugin NameReference LinkDescription
genkit_google_genaireferences/genkit_google_genai.mdLoad for Google Gemini plugin interface usage.
genkit_anthropicreferences/genkit_anthropic.mdLoad for Anthropic plugin interface for Claude models.
genkit_openaireferences/genkit_openai.mdLoad for OpenAI plugin interface for GPT models, Groq, and custom compatible endpoints.
genkit_middlewarereferences/genkit_middleware.mdLoad for Tooling for specific agentic behavior: filesystem, skills, and toolApproval interrupts.
genkit_mcpreferences/genkit_mcp.mdLoad for Model Context Protocol integration (Server, Host, and Client capabilities).
genkit_chromereferences/genkit_chrome.mdLoad for Running Gemini Nano locally inside the Chrome browser using the Prompt API.
genkit_shelfreferences/genkit_shelf.mdLoad for Integrating Genkit Flow actions over HTTP using Dart Shelf.
genkit_firebase_aireferences/genkit_firebase_ai.mdLoad for Firebase AI plugin interface (Gemini API via Vertex AI).

External Dependencies

Whenever you define schemas mapping inside of Tools, Flows, and Prompts, you must use the schemantic library. To learn how to use schemantic, ensure you read references/schemantic.md for how to implement type safe generated Dart code. This is particularly relevant when you encounter symbols like @Schema(), SchemanticType, or classes with the $ prefix. Genkit Dart uses schemantic for all of its data models so it's a CRITICAL skill to understand for using Genkit Dart.

Best Practices

  • Always check that code cleanly compiles using dart analyze before generating the final response.
  • Always use the Genkit CLI for local development and debugging.

forum用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量39.4K
评分4.6 / 5.0
版本
更新日期2026年5月5日
对比案例1 组

用户评分

4.6(30)
5
77%
4
23%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年5月5日
🎁 Agent 知识卡片