google-cloud-recipe-auth Skill for Claude: Sign In to Google Cloud the Right Way
google-cloud-recipe-auth makes Claude ask how your code runs, then pick the right way to authenticate and authorize it on Google Cloud.
- Installs
- 15.9K
- on skills.sh
- Stars
- 21.8K
- on GitHub
- Files
- 1
- besides SKILL.md
- Updated
- Nov 2026
- last repo commit
google-cloud-recipe-auth is a guidance skill from Google's own skills repo. Before it answers, Claude asks who or what is signing in, where the code runs and what it is calling. Then it points you to the matching method from the skill: gcloud login, Application Default Credentials, service account impersonation, attached service accounts, Workload Identity Federation, API keys or OIDC tokens.
It triggers on questions about IAM, authentication and authorization on Google Cloud. It bundles one reference file, attribution.md, and no scripts. The skill's validation checklist tells Claude to discourage downloaded service account keys, avoid the default Compute Engine service account and restrict API keys.
One thing to know: the skill tells Claude to tag the gcloud commands it runs and the HTTP requests it sends to Google Cloud with the skill name, so Google can attribute usage. The attribution file says the tag carries no user data, and that you can ask Claude to drop it.
Good for
- Developers running Google Cloud code on a laptop who are unsure between gcloud login and ADC
- Engineers who need a service account setup for Cloud Run, GKE or Compute Engine
- Security-minded teams who want keys avoided and least-privilege roles chosen
- People calling Google Cloud from AWS, Azure or on-prem machines
Install google-cloud-recipe-auth
Claude Code
- 1
Copy this prompt.
Install the google-cloud-recipe-auth skill in Claude Code. Run this command: npx skills add https://github.com/google/skills --skill google-cloud-recipe-auth Then check that it loaded and tell me how to use it.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js.
From its listing on skills.sh. Source.
What's in the skill
When it loads
Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.
Sections in SKILL.md
- Attribution
- Authentication
- Clarifying Questions for the Agent
- Human Authentication
- Types of User Identities
- Methods of Access for Developers and Administrators
- For End-Users and Customers
- Service-to-Service Authentication
- Service Accounts and Service Agents
- Best Practice: Attaching Service Accounts
- Special Cases & Advanced Topics
- Authorization
- Examples
- Human-to-Service (Local Python Development)
- Service-to-Service (Cloud Run to Cloud SQL)
- Calling a Custom Application ([OIDC](https://docs.cloud.google.com/docs/authentication/get-id-token.md.txt))
Key facts
- License (per GitHub)
- Apache-2.0
- Author
- google (repo owner)
- Installs on skills.sh
- 15,935 as of 2026-11-02
- Repo stars
- 21,764 as of 2026-11-02 (whole repo)
- Last repo commit
- 2026-11-01
- Files in the skill folder
- 2 files including SKILL.md
- skills.sh audits
- Gen Agent Trust Hub: pass; Socket: pass; Snyk: pass
What it includes
Asks who authenticates, where code runs, what it calls
Four questions come first: who or what is authenticating, where the code runs, what the target is, and whether a client library is in use.
Clarifying questionsGoogle-managed accounts, federation, gcloud login, ADC, impersonation
Compares the ways a person gets in: Cloud Identity or Workspace accounts, federation, Workforce Identity Federation, the console, gcloud auth login and Application Default Credentials. It recommends impersonation over downloaded keys.
Runs code ·
Human authenticationIdentity-Aware Proxy and Identity Platform
Covers letting non-developer users into a web app you host: Identity-Aware Proxy for internal apps and Identity Platform for consumer sign-in.
End-user authenticationService accounts, GKE, external workloads, keys, scopes
Covers service accounts and service agents, attaching a service account, GKE, Workload Identity Federation for other clouds, API keys, access scopes and short-lived credentials.
Service-to-service authenticationAllow policies and predefined vs custom roles
Explains binding a principal to a role on a resource and says to try predefined roles first.
AuthorizationLocal Python with ADC, Cloud Run to Cloud SQL, OIDC calls
Three step lists: local Python development with ADC and a storage role, a Cloud Run service with a Cloud SQL client role, and calling a private Cloud Run service with an OIDC ID token.
Worked examplesSeven checks Claude runs through before it answers
Discourage local service account keys, prefer a custom least-privilege service account in production, use Workload Identity Federation on other clouds, OIDC for custom apps, and restrict API keys.
Validation checklistTags gcloud commands and HTTP requests with the skill name
Claude sets a CLOUDSDK_METRICS_REQUEST_ATTRIBUTION value on gcloud commands it runs in the terminal and appends a string to the User-Agent of direct HTTP calls. It is not added to generated scripts or Terraform.
Runs code ·
Usage attribution (attribution.md)
From the official docs
Permissions
Low risk
Following this skill can lead Claude to run gcloud or API calls under your signed-in Google account. Approve each command and keep the work to a project where mistakes are cheap.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
Commands run as your signed-in account
If you let Claude run gcloud or REST calls while following the skill, they use your credentials. Approve commands one by one.
Claude tags gcloud and HTTP calls with the skill name
attribution.md says to set CLOUDSDK_METRICS_REQUEST_ATTRIBUTION on terminal gcloud commands and add a User-Agent suffix on direct HTTP calls. It says the tag carries no user data and that you can opt out by asking.
Technical details
| Talks to | Direct Google Cloud API calls Claude makes, with an agent-skills User-Agent suffix |
|---|---|
| Scopes |
|
Questions
What does google-cloud-recipe-auth do?
It makes Claude ask how you want to sign in to Google Cloud and then recommend a method that fits. Choices run from gcloud login and Application Default Credentials to service accounts, impersonation and Workload Identity Federation.
How do I install it?
Use the install box above. Google's README installs its skills with npx skills add google/skills and lets you pick the skills, agents and scope. The repo also has a google-cloud-developer plugin that bundles this skill with a developer-knowledge MCP server (it reads a DEVELOPERKNOWLEDGE_API_KEY). This page does not cover that plugin route.
Does it need an API key or a Google Cloud account?
The skill needs no key of its own and bundles no scripts. To act on its advice you need a Google Cloud account, and gcloud commands Claude runs use whatever gcloud sign-in you already have.
Is it safe?
It is guidance, but Claude may run gcloud commands under your signed-in account when you follow it. Check each command before you approve it, and use a project where mistakes are cheap. The attribution tag is described in the permissions section.
What is the usage attribution tag?
The skill tells Claude to put a CLOUDSDK_METRICS_REQUEST_ATTRIBUTION value on gcloud commands it runs and to add a string to the User-Agent of direct Google Cloud HTTP calls. The attribution file says the tag identifies only the skill and its version and carries no user data. Ask Claude to disable it and the file says to omit it.
How is it different from google-cloud-recipe-onboarding?
Onboarding walks a new developer through a first account, project and billing. This skill is about how to authenticate and authorize once you have a project. Both live in google/skills.
Information
updated Nov 2, 2026
- Repository
- google/skills
- Folder
skills/cloud/google-cloud-recipe-auth
Sources
Docs, issue trackers and discussions this page is built from.
Show all 4Hide
- google-cloud-recipe-auth SKILL.md · github.com
- Usage Attribution (attribution.md) · github.com
- google/skills README · github.com
- google-cloud-developer plugin .mcp.json · github.com