AI Cloud Architect

Enable on-demand expertise with Agent Skills in Genkit Go

GoogleHow-to by Daniela PetruzalekGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Genkit Go adds a skills middleware that loads an agent's SKILL.md instructions only when a request matches the skill, keeping the prompt context small.

Who it is for

Go developers building LLM agents with Genkit who need to keep large procedures and references out of the prompt context.

Key points

  • Skills are discovered from SkillPaths, and only frontmatter is placed in the system prompt until activation.
  • The example uses Gemini flash models through the Google AI plugin and requires a GEMINI_API_KEY.

Timeline

  1. What it explainsAnnouncing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google · Announcement
  2. This postEnable on-demand expertise with Agent Skills in Genkit Go

Go deeper