genkitlisted
Install: claude install-skill fmind/dot
# Genkit
Genkit is Firebase's framework for AI features inside an application: flows, tools, Dotprompt files, RAG, and a developer UI with traces. Agents that need multi-agent trees, A2A, or Agent Runtime stay on [google-adk](../google-adk/SKILL.md); Genkit fits TypeScript apps that already run on Firebase or Cloud Run.
## 1. Setup
- **CLI**: `genkit` from mise (`npm:genkit-cli`); the upstream skill states the minimum CLI version it expects.
- **Packages**: TypeScript `genkit` and `@genkit-ai/google-genai` (`googleAI()` plugin); Go `github.com/firebase/genkit/go/{genkit,ai,plugins/googlegenai}`; Python `genkit`.
- **Docs**: `genkit docs:search "<topic>" <language>` answers API questions from the current documentation, not memory.
## 2. Development Loop
```bash
genkit start -- pnpm exec tsx --watch src/index.ts # TypeScript: dev UI on http://localhost:4000 with traces
genkit start -- go run . # Go
genkit flow:run <flowName> '{"input": "..."}' -- pnpm exec tsx src/index.ts # non-interactive run for tests and CI
genkit trace:list && genkit trace:get <id> --format json # inspect what the model and tools did
```
- Run flows through `genkit start` or `flow:run`; a plain `node`/`go run` skips trace capture and debugs blind.
- `genkit start` does not exit; automation uses `flow:run`.
- Wrap the loop in the canonical tasks: `watch` starts the dev UI, `test` calls `flow:run` against fixtures, per [mise](../mise/SKILL.md).
## 3