skills / references
AGENTS.md21k starsChanged 2 months agoApache-2.0View on GitHub
Experimental / preview API. Agents live in the genkit/exp and ai/exp packages and are gated behind an opt-in. Initialize Genkit with genkit.WithExperimental() or the constructors panic. Import paths and signatures may change in any minor release. An agent is a persistent, multi-turn conversation primitive built on top of prompts + tools. Compared to a bare genkit.Generate loop, an agent adds: Read the file for the level you need: Agents span a few packages. These aliases are used throughout the agent…
1 other project uses a version of this.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- genkit-ai/skillsword for word, first seen Sep 29, 2026
Who's talking about google/skills
- @camilleroux.com“google/skills : dépôt open source de Google avec des dizaines de skills prêts à l'emploi pour agents IA sur …”Bluesky · Aug 11, 2026 · 9 likes
- A Hacker News story“Google repository now has 90 skills”Hacker News · Aug 6, 2026 · 5 points
- vercel-labs/skills“[Feature]: Support npx skills add to discover double nested skill directories”GitHub · Jun 23, 2026 · 5 reactions
- @matsuu.bsky.social“Google公式Skillsリポジトリ”Bluesky · May 2, 2026 · 5 likes
- @kweinmeister.bsky.social“Resources: - Vercel Labs Skills CLI: github.com/vercel-labs/... - Google Agent Skills: …”Bluesky · Jun 27, 2026 · 4 likes
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on Bluesky, GitHub, the web and Hacker News (32 times).
On Bluesky · 14
- Aug 11, 2026google/skills : dépôt open source de Google avec des dizaines de skills prêts à l'emploi pour agents IA sur GKE, BigQuery, Gemini API et… — @camilleroux.com9 likes and reposts · 4 replies
- May 2, 2026Google公式Skillsリポジトリ — @matsuu.bsky.social5 likes and reposts
- Jun 27, 2026Resources: - Vercel Labs Skills CLI: github.com/vercel-labs/... - Google Agent Skills: github.com/google/skills #AIAgents #GeminiAPI… — @kweinmeister.bsky.social4 likes and reposts
- Apr 22, 2026Google Cloud Next 2026 kicks off today with 3 developer announcements: * Google Agent Skills: github.com/google/skills * 75+ new codelabs:… — @kweinmeister.bsky.social4 likes and reposts
- Aug 7, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google / skills ⭐ 15,983 (+305) 🗒 Python Agent Skills for Google products and technologies — @github-trending.bsky.social2 likes and reposts · 1 reply
9 more on Bluesky
- May 13, 2026Google の公式 skills! github.com/google/skills — @k-i.bsky.social2 likes and reposts
- Apr 22, 2026We announced Google's Official Agent Skills Repository at #GoogleCloudNext today 🥳 🚀 One command: 💻 npx skills install… — @boredabdel.bsky.social2 likes and reposts
- Oct 8, 2026Using npx to install agent skills from Google products, google/skills sets up workflows for cloud infrastructure and AI agents. 140 new… — @latreon.bsky.social1 likes and repost
- Oct 3, 2026📦 google / skills ⭐ 20,604 (+30) 🗒 Python Agent Skills for Google products and technologies — @github-trending.bsky.social1 likes and repost
- Jun 7, 2026github.com/google/skills — @bala.bsky.social1 likes and repost
- Jun 2, 2026google / skills Agent Skills for Google products and technologies https://github.com/google/skills — @pythonhub.dev1 likes and repost
- Apr 23, 2026Googleが提供するLLMのプロンプトを体系的に管理・評価するためのライブラリらしい 複雑なプロンプトの調整を効率化できそうで気になる yug1224 starred google/skills https://github.com/google/skills — @yug1224.com1 likes and repost
- Apr 23, 2026GitHub - google/skills: Agent Skills for Google products and technologies https://github.com/google/skills — @tech-trending.bsky.social1 likes and repost
- Jun 8, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google / skills ⭐ 12,094 (+481) 🗒 Python Agent Skills for Google products and technologies — @github-trending.bsky.social0 likes and reposts · 1 reply
On GitHub · 12
- Jun 23, 2026[Feature]: Support npx skills add to discover double nested skill directories — vercel-labs/skills5 reactions · 4 comments
- Jun 24, 2026[Bug]: skills.sh page generates invalid command — vercel-labs/skills2 reactions · 3 comments
- Sep 30, 2026fix(sync-upstream-skills): upstream drift fails the sync instead of dropping the correction — gke-labs/kube-agents1 reaction · 9 comments
- Jun 30, 2026fix(discovery): discover triple-nested skills under container dirs — vercel-labs/skills1 reaction · 4 comments
- Oct 22, 2026sdk — seeleeleeyiavou-cell/Seeleeleeyiavou-cell0 reactions
7 more on GitHub
- Oct 12, 2026Upstream changes — RobStrayer/voice-agent-skills0 reactions
- Oct 3, 2026adk-multi-agent-supervisor-patterns — mjfuddel-eng/Emmyrecent.com0 reactions
- Sep 30, 2026[Candidate] google/skills - large collection (155 SKILL.md files) — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 24, 2026https://github.com/google/skills https://drive.google.com/file/d/1aPgzQdVCHi4pADvdd89EiSVDFq8LFQCo/view?usp=drivesdk — at0116218-dot/Silvar0 reactions
- Sep 22, 2026No agy — davidstanke/notion-agent-demo0 reactions
- Sep 11, 2026Adhere to Agent Plugins specification — gemini-cli-extensions/google-secops0 reactions
- Apr 27, 2026remove .agent from skills path — kevmoo/dash_skills0 reactions
On the web · 4
- Jun 18, 2026Google Cloud Agent Skills - HeyClaude — heyclau.de
- Jun 9, 2026Google Launches Official Agent Skills Repository — pinggy.io
- May 25, 2026Agent Skills for Google: Free Open-Source Repo for AI & ... — facebook.com
- Apr 29, 2026Patrick Haggerty - google/skills — linkedin.com
On Hacker News · 2
- Aug 6, 2026Google repository now has 90 skills5 points
- Jun 9, 2026Google/skills: Agent Skills for Google products and technologies1 point · 1 comment
Other versions1 project uses a version of this.
Word for word · 1
- genkit-ai/skills★ 33100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository159 other files it gives its agents.
- skills/cloud/developing-genkit-dart/references/agents.mdAGENTS.md
- skills/cloud/developing-genkit-js/references/agents.mdAGENTS.md
- skills/cloud/developing-genkit-python/references/agents.mdAGENTS.md
- skills/cloud/firebase-basics/references/refresh/claude.mdCLAUDE.md
- finding-google-skillsSkill
- gcloudSkill
- google-cloud-recipe-authSkill
- google-cloud-recipe-onboardingSkill
- retrieving-developer-knowledgeSkill
- data-manager-api-audience-ingestionSkill
- data-manager-api-event-ingestionSkill
- data-manager-api-setupSkill
- google-ads-api-account-diagnosticsSkill
- google-ads-api-mcp-setupSkill
- google-ads-api-quickstartSkill
- google-mobile-ads-android-migrate-to-next-genSkill
- google-mobile-ads-bannerSkill
- google-mobile-ads-get-startedSkill
- google-mobile-ads-interstitialSkill
- google-mobile-ads-rewardedSkill
- google-mobile-ads-validateSkill
- ima-dai-sdkSkill
- ima-sdk-client-sideSkill
- google-analytics-admin-api-basicsSkill
- google-analytics-data-api-basicsSkill
- agent-platform-alert-configurationSkill
- agent-platform-deploySkill
- agent-platform-endpoint-managementSkill
- agent-platform-eval-flywheelSkill
- agent-platform-inferenceSkill
- agent-platform-migrate-from-ai-studioSkill
- agent-platform-model-registrySkill
- agent-platform-prompt-managementSkill
- agent-platform-rag-engine-managementSkill
- agent-platform-skill-registrySkill
- agent-platform-troubleshootingSkill
- agent-platform-tuning-managementSkill
- agent-platform-tuningSkill
- alloydb-basicsSkill
- application-design-center-design-deploySkill
- bigquery-ai-mlSkill
- bigquery-basicsSkill
- bigquery-bigframesSkill
- bigquery-observabilitySkill
- bigquery-optimizationSkill
- bigquery-slot-cost-optimizerSkill
- bigquery-troubleshootingSkill
- bigtable-basicsSkill
- cloud-build-basicsSkill
- cloud-databases-onboardingSkill
- cloud-logging-configuration-basicsSkill
- cloud-logging-cross-project-configurationSkill
- cloud-logging-query-generationSkill
- cloud-monitoring-chart-generationSkill
- cloud-monitoring-list-time-series-requestSkill
- cloud-monitoring-metric-selectionSkill
- cloud-monitoring-promql-querySkill
- cloud-run-alert-configurationSkill
- cloud-run-basicsSkill
- cloud-sql-basicsSkill
- The first 60 shown.
The file
We split this agents.md into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Detaching: run a turn in the background and poll for the result.
- Distinctive: line 17
Read the file for the level you need:
- Very specific: line 129
If the .prompt frontmatter references a schema by name, register that Go type with genkit.DefineSchemasFor before defining the agent (the …
- Distinctive: line 351
Use client-managed state when you don't want server-side storage.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agents (Experimental)
Experimental / preview API. Agents live in the
genkit/expandai/exppackages and are gated behind an opt-in. Initialize Genkit withgenkit.WithExperimental()or the constructors panic. Import paths and signatures may change in any minor release.
An agent is a persistent, multi-turn conversation primitive built on top of
prompts + tools. Compared to a bare genkit.Generate loop, an agent adds:
- Sessions: multi-turn history tracked as immutable snapshots.
- State: typed session state (messages + custom data + artifacts).
- Interrupts: human-in-the-loop pause/resume.
- Branching: fork a conversation from any snapshot.
- Detaching: run a turn in the background and poll for the result.
Read the file for the level you need:
- This file: defining an agent, running it, serving it, and client-managed state (no store).
- Sessions & persistence:
SessionStore,localstore.NewInMemorySessionStore,localstore.NewFileSessionStore. - Human-in-the-loop / interrupts: pausing for approval/input and resuming.
- Branching: forking a conversation from a snapshot.
- Background agents: detaching long-running turns and polling.
- Working with state: typed custom session state and streamed patches.
- Artifacts: producing/reading named deliverables.
- Multi-agent orchestration: delegating to sub-agents.
- Advanced custom agents:
DefineCustomAgentfor full turn control. - Deploying agents: serving agents over HTTP.
Packages and import aliases
Agents span a few packages. These aliases are used throughout the agent docs:
import (
"github.com/genkit-ai/genkit/go/ai"
aix "github.com/genkit-ai/genkit/go/ai/exp" // types: Agent, Session, options, AgentInput/Output
"github.com/genkit-ai/genkit/go/ai/exp/localstore" // session stores
"github.com/genkit-ai/genkit/go/genkit"
genkitx "github.com/genkit-ai/genkit/go/genkit/exp" // constructors: DefineAgent, DefineCustomAgent, ...
)genkitx (genkit/exp) holds the registry-aware constructors you call.
aix (ai/exp) holds the types, options, and the returned *aix.Agent[State].
Both packages are named exp, which is why the docs alias them genkitx and
aix.
Setup
ctx := context.Background()
g := genkit.Init(ctx,
genkit.WithExperimental(), // REQUIRED: opts into the genkit/exp surface
genkit.WithPlugins(&googlegenai.GoogleAI{}),
)Without genkit.WithExperimental(), genkitx.DefineAgent (and every other
genkit/exp constructor) panics with a message pointing you at the fix.
Define an agent
genkitx.DefineAgent combines an inline prompt + tools + (optional) session
store into a single registered action. The prompt is an aix.InlinePrompt — a
slice of ai.PromptOption values, the same options you would pass to
genkit.DefinePrompt.
type WeatherInput struct {
City string `json:"city"`
}
type WeatherOutput struct {
TempC float64 `json:"tempC"`
Summary string `json:"summary"`
}
getWeather := genkit.DefineTool(g, "getWeather",
"Look up the current weather for a city.",
func(ctx *ai.ToolContext, in WeatherInput) (WeatherOutput, error) {
return WeatherOutput{TempC: 21, Summary: "Sunny"}, nil
},
)
weatherAgent := genkitx.DefineAgent(g, "weatherAgent",
aix.InlinePrompt{
ai.WithModelName("googleai/gemini-flash-latest"),
ai.WithSystem("You are a helpful weather assistant. Use the getWeather tool. Be concise."),
ai.WithTools(getWeather),
},
// A session store is optional. Omit it for client-managed state (see below).
aix.WithSessionStore(localstore.NewInMemorySessionStore[any]()),
)The State type parameter is inferred from the typed options (here
aix.WithSessionStore(...[any]()) makes State = any). For a client-managed
agent with no typed option, pass State explicitly:
genkitx.DefineAgent[any](g, "name", prompt).
Constructor choices:
genkitx.DefineAgent— inline prompt (the common case, above).genkitx.DefinePromptAgent— back the agent with a prompt already in the registry (e.g. a.promptfile). By default it uses the prompt registered under the agent's own name; useaix.WithNamedPromptto point at another.genkitx.DefineCustomAgent— full control over the turn loop. See advanced custom agents.
Backing an agent with a .prompt file
genkitx.DefinePromptAgent pairs an agent with a prompt from the registry — for
example a .prompt file loaded at startup — so prompt authors can tune the
model, config, template, and default input without touching the Go wiring. With
no source option it defaults to the prompt registered under the agent's own name.
---
# prompts/chef.prompt
model: googleai/gemini-flash-latest
input:
schema: ChatPromptInput
default:
personality: a Michelin-starred chef who loves explaining technique
---
You are {{personality}}. Keep every answer very brief, a few sentences at most.If the .prompt frontmatter references a schema by name, register that Go type
with genkit.DefineSchemasFor before defining the agent (the prompt is
rendered at definition time):
type ChatPromptInput struct {
Personality string `json:"personality"`
}
genkit.DefineSchemasFor(g, ChatPromptInput{}) // resolve "ChatPromptInput" in the .prompt
chef := genkitx.DefinePromptAgent(g, "chef", // loads prompts/chef.prompt by name
aix.WithSessionStore(localstore.NewInMemorySessionStore[any]()),
aix.WithDescription[any]("Michelin-starred chef"),
)To supply an input from code, or to back several agents with one shared prompt,
add aix.WithNamedPrompt(name, input).
Common agent options (all from aix):
aix.WithSessionStore(store): server-side snapshot persistence. See sessions.aix.WithDescription[State](desc): human-readable description (shown in the Dev UI; used by sub-agent delegation).aix.WithStateTransform[State](fn): rewrite state on its way out to a client (e.g. PII redaction).aix.WithStreamTransform[State](fn): rewrite stream chunks on their way out.
Agents and middleware go hand in hand
Agents and middleware are built for each other: the
ai.WithUse(...) prompt option layers in behavior without writing it yourself.
Most agent capabilities — sub-agent delegation, artifacts, retries, fallback,
tool approval — are just middleware you drop in.
weatherAgent := genkitx.DefineAgent(g, "weatherAgent",
aix.InlinePrompt{
ai.WithModelName("googleai/gemini-flash-latest"),
ai.WithSystem("You are a helpful weather assistant."),
ai.WithTools(getWeather),
ai.WithUse(
&middleware.Retry{}, // plugins/middleware: retry transient model errors
&middlewarex.Artifacts{}, // plugins/middleware/exp: read_artifact / write_artifact
),
},
aix.WithSessionStore(localstore.NewInMemorySessionStore[any]()),
)plugins/middleware provides Retry, Fallback, ToolApproval, Filesystem,
and Skills. plugins/middleware/exp (aliased middlewarex) adds the
agent-specific Agents (sub-agent delegation) and Artifacts middleware. See
using middleware and multi-agent.
Run an agent (single turn)
Agent.RunText and Agent.Run run one turn and return the final
*aix.AgentOutput[State].
out, err := weatherAgent.RunText(ctx, "Weather in Tokyo?")
if err != nil {
log.Fatal(err)
}
fmt.Println(out.Message.Text())
fmt.Println(out.SnapshotID) // immutable checkpoint id for this turn (server-managed only)
fmt.Println(out.FinishReason) // e.g. aix.AgentFinishReasonStopRun takes an *aix.AgentInput when you need more than user text (a full
message, a resume payload, or a detach signal):
out, err := weatherAgent.Run(ctx, &aix.AgentInput{
Message: ai.NewUserTextMessage("Weather in Tokyo?"),
})In-band failures (a failed turn) resolve as a failed AgentOutput
(out.FinishReason == aix.AgentFinishReasonFailed, out.Error populated), not a
Go error. A returned error means the invocation never started (e.g. a
rejected session source).
Chat with an agent (multi-turn)
Agent.Connect opens a bidirectional streaming session. A single connection
carries state forward automatically across turns. Send input, iterate
Receive() until a TurnEnd, then send the next input.
conn, err := weatherAgent.Connect(ctx)
if err != nil {
log.Fatal(err)
}
// Turn 1 (streaming):
_ = conn.SendText("Weather in Tokyo?")
for chunk, err := range conn.Receive() {
if err != nil {
log.Fatal(err)
}
if chunk.ModelChunk != nil {
fmt.Print(chunk.ModelChunk.Text())
}
if chunk.TurnEnd != nil {
break // turn done; safe to send the next input
}
}
// Turn 2 — history is carried automatically on the same connection:
_ = conn.SendText("What about Paris?")
for chunk, err := range conn.Receive() {
if err != nil {
log.Fatal(err)
}
if chunk.TurnEnd != nil {
break
}
}
out, err := conn.Output() // finalize; closes input and drains remaining chunksConnection helpers: SendText, SendMessage, Send (raw *aix.AgentInput),
SendResume (see interrupts), Detach (see
background), Receive (chunk iterator), Custom
(live custom state, see state), Output, and Close.
Verify an agent from the CLI (flow:run)
genkit flow:run runs flows, not agents, so you can't flow:run an agent
directly. To exercise an agent from the CLI (a quick, self-terminating check),
wrap one turn in a throwaway flow and run that:
genkit.DefineFlow(g, "tryWeatherAgent", func(ctx context.Context, message string) (string, error) {
out, err := weatherAgent.RunText(ctx, message)
if err != nil {
return "", err
}
return out.Message.Text(), nil
})
// genkit flow:run tryWeatherAgent '"Weather in Tokyo?"' -- go run .Serve an agent over HTTP
An agent is an api.BidiAction, so genkit.Handler serves it one turn per
request. Optionally serve its companion actions for snapshot lookup
(GetSnapshotAction) and background aborts (AbortAction); both are nil for a
client-managed agent (no store).
mux := http.NewServeMux()
mux.HandleFunc("POST /api/weatherAgent", genkit.Handler(weatherAgent))
// Optional companions (needed for snapshot restore / branching / background):
if snap := weatherAgent.GetSnapshotAction(); snap != nil {
mux.HandleFunc("POST /api/weatherAgent/getSnapshot", genkit.Handler(snap))
}
if abort := weatherAgent.AbortAction(); abort != nil {
mux.HandleFunc("POST /api/weatherAgent/abort", genkit.Handler(abort))
}
log.Fatal(server.Start(ctx, "127.0.0.1:8080", mux))The request body is {"data": <AgentInput>, "init": <AgentInit>}. data carries
the turn's input; init carries the session source (see below). Set
Accept: text/event-stream (or add ?stream=true) to stream chunks.
Rather than wiring companions by hand, genkit/exp ships a default HTTP layout:
genkitx.AllAgentRoutes(g) returns a route per registered agent (mounted under
/agents/<name>, with getSnapshot / abort added for capable agents), which
you range over onto a mux:
for _, route := range genkitx.AllAgentRoutes(g) {
mux.HandleFunc(route.Pattern(), route.Handler())
}For serving multiple agents, the route helpers, CORS headers for browser clients, and companion routing, see Deploying agents.
Client-managed vs server-managed state
Server-managed (a SessionStore is configured): the server owns history as
snapshots. Resume with aix.WithSessionID (latest snapshot of a session) or
aix.WithSnapshotID (a specific snapshot). Over HTTP, init carries
{"sessionId": ...} or {"snapshotId": ...}.
out1, _ := weatherAgent.RunText(ctx, "Weather in London?")
out2, _ := weatherAgent.RunText(ctx, "Is it sunny in Tokyo?",
aix.WithSessionID(out1.SessionID)) // resumes the conversationClient-managed (no store): the server is stateless and the caller owns the
session state blob (messages + custom + artifacts). Round-trip it via
aix.WithState / out.State. Over HTTP, init carries {"state": ...}.
statelessAgent := genkitx.DefineAgent[any](g, "weatherAgentStateless",
aix.InlinePrompt{
ai.WithModelName("googleai/gemini-flash-latest"),
ai.WithSystem("You are a helpful weather assistant. Be concise."),
ai.WithTools(getWeather),
},
)
// First turn: start fresh; the framework mints a SessionID inside the state.
out1, _ := statelessAgent.RunText(ctx, "Weather in London?")
// Next turn: pass the returned state back to resume.
out2, _ := statelessAgent.Run(ctx,
&aix.AgentInput{Message: ai.NewUserTextMessage("And Tokyo?")},
aix.WithState(out1.State),
)
fmt.Println(out2.State) // updated blob to carry forward againUse client-managed state when you don't want server-side storage. Use a session store when the server should own history, or when you need branching or background execution. (Interrupts work either way.)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

