google-cloud-auth-verification
This skill verifies Google Cloud Platform authentication and credentials before executing any GCP-related tasks.
Identity proven by GitHub's verified organisation badge (flutter, google)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- Apache-2.0 (permissive)
- Pin
- 0dd8034pinned Oct 9, 2026
- Context cost
- about 860 tokenswhen the skill loads
- GitHub stars
- 215on googlecloudplatform/data-agent-kit-plugin
- Scripts
- None found
What it does
“Mandatory Step 0 pre-flight execution order and authentication verification for Google Cloud Platform (GCP), Application Default Credentials (ADC), gcloud CLI, Spark, Dataproc, BigQuery, GCS, and notebook runtimes. Use whenever interacting with GCP resources, running Spark/PySpark pipelines, BigQuery queries, GCS paths (gs://), or creating/running notebooks.”
Generated summary from the skill's own text
This skill verifies Google Cloud Platform authentication and credentials before executing any GCP-related tasks. It checks gcloud CLI credentials, Application Default Credentials (ADC), and distinguishes between authentication failures and IAM permission issues, instructing users to log in when needed.
When to use it
- Before running BigQuery queries or accessing GCS paths
- When executing Spark, Dataproc, or notebook workloads on GCP
- If agent receives authentication or credential-related errors from GCP
- When generating code that accesses Google Cloud resources
When not to
- Tasks that do not interact with Google Cloud Platform services
- When user has confirmed valid GCP credentials already established
- For local-only Python scripts without GCP dependencies
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add googlecloudplatform/data-agent-kit-plugin --skill google-cloud-auth-verificationInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install googlecloudplatform/data-agent-kit-plugin google-cloud-auth-verification@0dd8034c50d6bce0290b99190cd44b06fcbec2c1Installs the commit we checked (0dd8034).
Copy by hand
Download the folder at 0dd8034 and put it in .claude/skills/google-cloud-auth-verification for Claude Code and in .agents/skills/google-cloud-auth-verification for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install chrome-devtools-mcp@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install alloydb-omni@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Claude Code plugin
/plugin install bigquery-data-analytics@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "google-cloud-auth-verification" by Google. Source, pinned to commit 0dd8034c50d6bce0290b99190cd44b06fcbec2c1: https://github.com/googlecloudplatform/data-agent-kit-plugin/tree/0dd8034c50d6bce0290b99190cd44b06fcbec2c1/skills/google-cloud-auth-verification 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/google-cloud-auth-verification/ for Claude Code and .agents/skills/google-cloud-auth-verification/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/google/google-cloud-auth-verification
SKILL.md at the pin
---
name: google-cloud-auth-verification
description: >-
Mandatory Step 0 pre-flight execution order and authentication verification for Google Cloud Platform (GCP),
Application Default Credentials (ADC), gcloud CLI, Spark, Dataproc, BigQuery, GCS, and notebook runtimes.
Use whenever interacting with GCP resources, running Spark/PySpark pipelines, BigQuery queries, GCS paths (gs://), or creating/running notebooks.
license: Apache-2.0
metadata:
version: v2
publisher: google
---
# Google Cloud Authentication Guidelines
## Mandatory Pre-Flight Execution & Auth Hierarchy
> [!IMPORTANT] **Pre-Flight Execution Priority Order**: Before generating code,
> implementation plans, or executing tasks for any GCP or Notebook workload:
>
> 1. **Verify Shell, Script & Notebook Credentials**: If shell-based commands,
> local Python scripts, or notebook kernels (`gs://...`, BigQuery, Dataproc)
> are required, verify credentials via bundled probe (`gcloud auth list &&
> gcloud config list`) or Application Default Credentials (ADC).
> 2. **Distinguish Authentication vs. IAM Permissions**:
> - If `gcloud auth list` returns `No credentialed accounts`, **HARD
> STOP** immediately and instruct the user to run `gcloud auth login`
> and `gcloud auth application-default login`.
> - If Python throws `google.auth.exceptions.DefaultCredentialsError`,
> explicitly direct the user to run `gcloud auth application-default
> login`.
> - If `gcloud auth list` shows an active credentialed account but a
> BigQuery/GCP call returns `403 Forbidden: Access Denied`, **DO NOT**
> tell the user to log in again with `gcloud auth login`. Diagnose
> missing IAM roles (e.g., `roles/bigquery.dataEditor`) on the active
> account.
> 3. **HARD STOP if Unauthenticated**: If no active GCP credentials or valid
> `gcloud` authentication are detected, **STOP IMMEDIATELY**. Prompt the
> user to run `gcloud auth login` and `gcloud auth application-default
> login`. Do NOT attempt local virtualenv creation, package installation, or
> local binary/JDK setup loops as workarounds.
## Common Error Messages
1. **gcloud/bq CLI**:
- `ERROR: (bq) You do not currently have an active account selected.`
- `No credentialed accounts.`
- `Configuration error: No account is currently active.`
2. **Execution Failures (Python/Notebooks)**:
- `google.auth.exceptions.DefaultCredentialsError: Could not automatically
determine credentials.`
- `Forbidden: 403 Access Denied` (when it's clearly an auth issue).
## Verification Step
Before asking the user to log in, independently verify authentication status
using a single bundled probe command:
```bash
gcloud auth list --format="json" && gcloud config list --format="json"
```
* If the output contains `No credentialed accounts.` or missing active
account, proceed to **Corrective Action**.
* If an account *is* listed but the user still receives a `403 Access Denied`
error, the issue is likely **IAM permissions** (e.g., missing BigQuery
roles) on their active account, rather than missing authentication. In this
case, investigate permissions rather than asking them to log in again.
## Corrective Action
When missing credentials are confirmed, **DO NOT** attempt to fix credentials
via code or local virtualenv workarounds. Credentials must be established by the
user.
**Stop and ask the user to run the following commands in their terminal:**
1. **To authenticate the gcloud CLI**: `gcloud auth login`
2. **To set up Application Default Credentials (ADC)** (required for BQ CLI AND
most libraries/notebooks): `gcloud auth application-default login`
## Post-Login Verification
After the user confirms they have logged in, verify with: `gcloud auth list`
Then proceed with the original task.
From googlecloudplatform/data-agent-kit-plugin at 0dd8034, shown as plain text under its license: Apache-2.0 (permissive). The license text is in skills/google-cloud-auth-verification/SKILL.md.
View SKILL.md on GitHub at 0dd8034Files
- SKILL.md3.9 KB · f0b0fbf5fc15
1 file, 3.9 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 0dd8034More from Google
skill-creator
This skill guides agents through creating new skills that extend Gemini CLI with specialized knowledge, workflows, and tool integrations.
Contains scripts
Gemini CLI · about 5K tokens · pinned 6 days ago
chrome-devtools-cli
This skill enables agents to automate browser interactions and inspect web pages using Chrome DevTools via command-line interface.
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
cloud-run-basics
Deploys and manages Google Cloud Run services, jobs, and worker pools for running containerized applications or source code.
Claude Code, Codex, Cursor +4 · about 3.9K tokens · pinned 6 days ago
retail-virtual-tryon
Creates virtual try-on agents on Google Cloud using Gemini image models and Veo video generation, supporting static image try-ons and catwalk animations.
Contains scripts
Claude Code, Codex, Cursor +3 · about 3.3K tokens · pinned 6 days ago
site-md
This skill analyzes project briefs and generates a .stitch/SITE.md constitution file that documents the project's identity, visual direction, architecture…
Claude Code, Codex, Cursor +4 · about 730 tokens · pinned 6 days ago
stitch::code-to-design
This skill converts existing frontend code (React, Vue, Angular, etc.) into a Stitch Design by extracting HTML, analyzing design systems, and uploading both…
Claude Code, Codex, Cursor +4 · about 760 tokens · pinned 6 days ago
Related in Cloud and DevOps
enforcing-resource-attribution
Enforces resource attribution labels on bq and gcloud commands to track resources created by AI agents.
by GoogleOfficial publisher
Claude Code, Codex, Cursor +4 · about 960 tokens · pinned 6 days ago
gcp-pipeline-orchestration
This skill helps agents create, validate, and deploy orchestration pipelines for Google Cloud Composer using declarative YAML configuration files.
by GoogleOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 5.5K tokens · pinned 6 days ago
google-cloud-storage-basics
This skill enables agents to manage Google Cloud Storage buckets and objects using the gcloud CLI, JSON API, client libraries, Terraform, and MCP servers.
by GoogleOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.5K tokens · pinned 6 days ago
architect-for-startups
Provides stage-appropriate AWS architecture guidance for startups from pre-revenue through Series B+, considering runway, team size, and AWS credits.
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 3.4K tokens · pinned 6 days ago
azure-to-aws
This skill guides agents through migrating Azure workloads to AWS across six phases: discovering Azure resources from Terraform, live CLI, app code, and…
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 4.3K tokens · pinned 6 days ago
gcp-to-aws
Migrates workloads from Google Cloud Platform to AWS, including AI and agentic applications from any provider.
by Amazon (AWS)Official publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 14.3K tokens · pinned 6 days ago
Open roles at Google
No open roles at Google on the Agent Native jobs board right now.
Browse the jobs board