Agent skill · google

developing-genkit-go

Develop AI-powered applications using Genkit in Go. Use when the user asks to build AI features, agents, flows, or tools in Go using Genkit, or when working with Genkit Go code involving generation, prompts, streaming, tool calling, or model providers.

What it needs

About 5k tokens when loaded.

What this skill does

Genkit Go Genkit Go is an AI SDK for Go that provides generation, structured output, streaming, tool calling, prompts, and flows with a unified interface across model providers. Hello World Core Features Load the appropriate reference based on what you need: Feature Reference When to load --- --- --- Initialization references/getting-started.md Setting up genkit.Init, plugins, the Genkit instance pattern Generation references/generation.md Generate, GenerateText, GenerateData, streaming, output formats Prompts references/prompts.md DefinePrompt, DefineDataPrompt, .prompt files, schemas Tools references/tools.md DefineTool, tool interrupts, RestartWith/RespondWith Middleware references/middleware.md ai.Middleware, ai.WithUse, Hooks (Generate/Model/Tool), built-ins (Retry, Fallback, ToolApproval, Filesystem, Skills) Flows & HTTP references/flows-and-http.md DefineFlow, DefineStreamingFlow, genkit.Handler, HTTP serving Model Providers references/providers.md Google AI, Vertex AI, Anthropic, OpenAI-compatible, Ollama setup Agents (Experimental) Genkit Go has an experimental agent API for persistent, multi-turn conversations (sessions, snapshots, interrupts, branching, background execution). It is gated: initialize with genkit.Init(ctx, genkit.WithExperimental()) or the constructors panic. Server constructors come from genkit/exp (aliased genkitx); types and options from ai/exp (aliased aix); session stores from ai/exp/localstore. Agent or flow? If the task is conversational, multi-turn, or described as "an agent", "assistant", or "chatbot", build it with genkitx.DefineAgent rather than hand-rolling a Generate + tools loop in a flow. Reach for a plain flow only for single-shot, stateless generation. For details see: Agents: defining/serving an agent, running turns, and client- vs server-managed state (start here). Sessions & persistence: session stores (localstore.NewInMemorySessionStore/NewFileSessionStore) and snapshots. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills google/genkit-go

View the source on GitHub

Browse the @skills marketplace