gcloud-auth-verification

Diagnose and resolve missing Google Cloud authentication and Application Default Credentials errors.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Lathika-laa/Recipe_Box --skill gcloud-auth-verification-lathika-laa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gcloud-auth-verification
Source: https://github.com/Lathika-laa/Recipe_Box/tree/main/.github/.gemini/skills/gcloud-auth-verification
Command: npx skills add https://github.com/Lathika-laa/Recipe_Box --skill gcloud-auth-verification-lathika-laa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When gcloud, bq, dataform, or Python libraries fail with authentication errors like "No credentialed accounts" or "DefaultCredentialsError", this Skill guides the AI to verify the actual credential state before asking the user to log in, avoiding unnecessary or incorrect remediation steps. ## Core Features & Use Cases - Error Recognition: Identifies common authentication failure messages from gcloud CLI, bq CLI, and Python google.auth exceptions. - Independent Verification: Runs gcloud auth list to confirm whether credentials are missing or whether the issue is actually IAM permissions (e.g., 403 Access Denied with an active account). - Guided Remediation: Instructs the user to run gcloud auth login and gcloud auth application-default login in their own terminal, then re-verifies before continuing the original task. - Use Case: A data analyst's notebook fails with DefaultCredentialsError. The Skill checks gcloud auth list, confirms no ADC exists, and asks the user to run the application-default login command before retrying the query. ## Quick Start Check why my BigQuery query is failing with a credentials error and help me fix the authentication.

Frequently Asked Questions about gcloud-auth-verification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix DefaultCredentialsError in Python Google Cloud libraries?▼

DefaultCredentialsError means Application Default Credentials are not configured. Run `gcloud auth application-default login` in your terminal to set up ADC, which is required by BigQuery CLI and most Python libraries and notebooks.

How to check if gcloud is authenticated?▼

Run `gcloud auth list` to see credentialed accounts. If the output shows "No credentialed accounts.", you need to run `gcloud auth login` to authenticate the CLI before running other commands.

Why do I get 403 Access Denied even after gcloud login?▼

A 403 error with an active authenticated account usually indicates missing IAM permissions, such as BigQuery roles, rather than an authentication problem. Investigate the permissions granted to your account instead of logging in again.

What is the difference between gcloud auth login and application-default login?▼

`gcloud auth login` authenticates the gcloud CLI itself, while `gcloud auth application-default login` sets up Application Default Credentials used by client libraries, notebooks, and tools like bq. Both are typically needed.

Can authentication be fixed programmatically instead of via terminal?▼

No. Credentials must be established by the user through the interactive login commands. Automated tools should not attempt to fix credentials via code; they should verify status with `gcloud auth list` and ask the user to log in.