genkit

genkit is a skill for Claude Code, Codex from fmind/dot. It costs 45 tokens per session (850 once invoked), scanned A, original, MIT.

A guide for building Genkit features, where Genkit is Firebase’s framework for adding AI flows, tools, prompts, and retrieval to applications.

In plain words
What is it for?
Use it to create AI flows in TypeScript, Go, or Python, add retrieval-augmented generation, run them locally, and inspect their traces.
Why use it?
It gives developers a repeatable way to run, test, inspect, and trace AI workflows instead of treating model calls as opaque code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fmind/dot/genkit
Any agent
npx skills add fmind/dot --skill genkit
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for genkit

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/genkit.svg)](https://agentmods.dev/skills/fmind/dot/genkit)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/genkit"><img src="https://agentmods.dev/badge/skills/fmind/dot/genkit.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.00850
Opus 5 $0.00023 $0.00425
Sonnet 5 $0.00009 $0.00170
Haiku 4.5 $0.00005 $0.00085

Measured yesterday against content hash 69d382838a07, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

genkit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/genkit/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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; 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

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.

3. Rules

  • Typed flows: Zod (TypeScript) or struct (Go) schemas on every flow input and output; the schema is the contract the UI and tests use.
  • Prompts as files: .prompt (Dotprompt) files beside the code, versioned and reviewed like code per prompt-design.
  • Model pins: name the model generation explicitly; keep the plugin config in the typed project config, keys in env or Secret Manager.
  • Deploy: Cloud Functions for Firebase (@genkit-ai/firebase) per firebase, or a container per cloud-run.
  • Evaluate: genkit eval:flow datasets before shipping a prompt change; compare against a baseline per agent-evaluation.

Read the full file on GitHub · 56 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 56 lines · 45 tokens per session scan A 69d382838a07

Subscribe to this mod's changes

genkit is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 850 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories