Google's official skill for the gws CLI — drive Gmail, Drive, Calendar, Sheets, Docs, Chat and Admin APIs from an agent, with Model Armor screening.
Genkit for JavaScriptSkill
Summary
The official Genkit skill for Node.js and TypeScript — flows, Dotprompt files, tools and the beta agent API with sessions, interrupts and branching.
Features
- Verified CLI and package version floors before any code is written
- Flows with Zod input/output schemas and model plugins
- Dotprompt files: variants, partials, named schemas and tool frontmatter
- The beta agent API — sessions, interrupts, branching, background turns, artifacts
- Correct `genkit/beta` and `genkit/beta/client` entry points
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
"Add a Genkit flow that summarises an uploaded document, move the prompt into a .prompt file with a short and long variant, and expose it as a multi-turn agent with human approval before it emails the summary."
Description
Genkit is Google's open-source framework for building AI features in application code — typed flows, model plugins, prompt files and an agent runtime — and it moves fast enough that a model's pre-training is usually a version or two behind. That gap shows up as invented APIs and imports from the wrong entry point.
This official skill from the Genkit team pins the agent to current practice for the Node.js and TypeScript SDK. It starts from a verified CLI version floor (genkit-cli >= 1.29.0) and a working defineFlow example with Zod schemas, then covers Dotprompt .prompt files with YAML frontmatter and Handlebars templates — promptDir, ai.prompt() call/stream/render, variants, partials, named schemas via ai.defineSchema, and the tools / maxTurns / returnToolRequests / middleware frontmatter fields.
The largest section is the beta agent API for persistent multi-turn conversations, which is easy to get wrong because server APIs come from genkit/beta and the browser client from genkit/beta/client rather than the stable entry point, and it requires genkit >= 1.39.0. References cover sessions and persistence (in-memory, file and Firestore stores), human-in-the-loop interrupts, branching from a snapshot, background agents, typed session state auto-synced to the client, artifacts, multi-agent delegation, custom agents via defineCustomAgent, and HTTP deployment.
Sibling skills in the same repository cover Genkit for Dart, Go and Python.
Related Skills
Netlify's official skill for zero-config managed Postgres — querying from Functions, Drizzle setup, migrations and per-preview database branches.
Official WordPress skill for Gutenberg block work: block.json, attributes and serialization, dynamic rendering, and the deprecation path that keeps existing content valid.
Persistent cross-session memory for coding agents: hooks capture each session, a local SQLite + vector store compresses it, and a mem-search skill reads it back.
