Skills2026年3月29日·1 分钟阅读

Gemini CLI Extension: Genkit — AI Framework Development

Gemini CLI extension for Firebase Genkit. Build AI-powered features with flows, prompts, retrievers, and model integration.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
CLI Tool
安装
Stage only
信任
信任等级:Community
入口
Gemini CLI Extension: Genkit
安全暂存命令
npx -y tokrepo@latest install 0f9fe677-0066-422d-9738-c4a8dede50bc --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
This Gemini CLI extension adds Firebase Genkit capabilities for building AI-powered features with flows, prompts, retrievers, and model integration.
§01

What it is

This is an official Gemini CLI extension that adds Firebase Genkit AI framework development capabilities to the Gemini command-line tool. It enables building AI-powered features using flows, prompts, retrievers, and model integration directly from the terminal.

The extension targets developers using Google's AI ecosystem who want Gemini CLI to understand Genkit project structure, APIs, and best practices when assisting with code generation.

§02

How it saves time or tokens

Once installed, the extension automatically activates when the Gemini agent detects Genkit-related tasks. It provides context about Genkit's flow definitions, prompt management, retriever patterns, and model configuration without requiring the developer to paste documentation into every conversation.

The extension is maintained by Google's Gemini team, so it stays current with Genkit API changes.

§03

How to use

  1. Install the extension with gemini extensions install genkit.
  2. Open your Genkit project in the terminal and use the Gemini CLI as usual.
  3. The extension activates automatically when Genkit-related tasks are detected.
§04

Example

# Install the Genkit extension
gemini extensions install genkit

# Use Gemini CLI in a Genkit project
cd my-genkit-project
gemini 'Create a new flow that summarizes documents using RAG'

# The agent generates Genkit-specific code:
# - defineFlow() with input/output schemas
# - retriever integration
# - prompt template with model binding
§05

Related on TokRepo

§06

Common pitfalls

  • The extension requires Gemini CLI to be installed first. It does not work with other AI coding tools like Claude Code or Cursor.
  • Genkit project structure must follow standard conventions (genkit.config.ts, flows directory) for the extension to activate correctly.
  • The extension provides coding guidance but does not run or deploy Genkit applications. You still need the Genkit CLI (genkit start) for local development and testing.

常见问题

What is Firebase Genkit?+

Firebase Genkit is an open-source AI framework by Google for building AI-powered features in applications. It provides abstractions for flows (multi-step AI pipelines), prompts, retrievers (for RAG), and model integration. It supports Node.js and Go.

Does this extension work with Claude Code or Cursor?+

No. This is specifically a Gemini CLI extension. It integrates with the gemini command-line tool only. For other AI coding assistants, look for equivalent skills or rules designed for those platforms.

How do I update the extension?+

Run gemini extensions update genkit to pull the latest version. The extension is maintained by Google's Gemini CLI Extensions organization and updated alongside Genkit releases.

What AI models does Genkit support?+

Genkit supports Google Gemini models natively and provides plugin interfaces for OpenAI, Anthropic, and Ollama models. The model abstraction lets you swap providers without changing flow logic.

Can I use this extension for existing Genkit projects?+

Yes. The extension works with both new and existing Genkit projects. It reads your project configuration and provides context-aware assistance based on your existing flows, prompts, and model setup.

引用来源 (3)
🙏

来源与感谢

Created by Google. Licensed under Apache 2.0. gemini-cli-extensions/genkit Part of Gemini CLI — ⭐ 99,400+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产