Skip to content

Genkit JS Developer Guide

Build AI apps and agents with Genkit in Node.js/TypeScript, using current APIs and error fixes

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
15 files

What it does

When installed, the agent gets a detailed playbook for building AI-powered applications with Genkit, an open-source framework for JavaScript and TypeScript. It tells the agent to check the Genkit CLI version, prefer the newer beta agent API for multi-turn conversations, use Google AI as the default model provider, and look up current documentation rather than relying on memory, since Genkit's API changed significantly. It also includes an error-handling procedure that points to a list of deprecated APIs and their replacements.

Great for

  • Developers starting or maintaining a Genkit app in Node.js or TypeScript
  • Teams building chatbots or multi-step AI agents with Genkit
  • Developers debugging Genkit validation, type or API errors

Skip it if

  • Python or Go projects, since this covers only the JavaScript/TypeScript SDK
  • Production systems relying on the beta agent API, which may change; the skill itself flags it as beta
  • Simple one-off AI calls where the Genkit framework adds unnecessary setup

Try asking

  • “Create a Genkit flow in TypeScript that summarises a document using Gemini”
  • “Build a multi-turn support chatbot with Genkit agents and session persistence”
  • “Fix a ValidationError I'm getting from my Genkit flow”
  • “Add human-in-the-loop approval to my Genkit agent before it runs a tool”
Step-by-step guide: how to use Genkit JS Developer GuideInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 15 original files, the Apache-2.0 licence and an attribution note.

    developing-genkit-js.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip developing-genkit-js.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip developing-genkit-js.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Tell the agent which framework you use (Next.js, Firebase, Express) so it follows the matching patterns
  • Review any npm install or CLI commands the agent runs, especially global installs, and keep API keys out of code
  • Ask the agent to run type checks and the Genkit docs commands to confirm answers against current documentation

What's inside

  • references/a2ui.md
  • references/agents-artifacts.md
  • references/agents-background.md
  • references/agents-branching.md
  • references/agents-custom.md
  • references/agents-deployment.md
  • references/agents-human-in-the-loop.md
  • references/agents-multi-agent.md
  • references/agents-sessions.md
  • references/agents-state.md
  • references/agents.md
  • references/best-practices.md
  • references/common-errors.md
  • references/docs-and-cli.md
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.