AMD's official meta-skill: permanently reroutes an agent's image generation, text-to-speech and speech-to-text to a local Lemonade Server instead of a paid cloud API.
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
CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
Microsoft's official Playwright skill — drives a real browser from the command line using accessibility snapshots and element refs, and plans, generates and heals Playwright tests.
Google's official agent skill for writing production Maps Platform code — grounded in freshly fetched docs, with a demo key path that needs no billing account.