From dak
Diagnoses and resolves Google Cloud authentication errors for gcloud, bq, dataform, and Python libraries. Verifies credentials and guides user through login.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dak:gcloud-auth-verificationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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.google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials.Forbidden: 403 Access Denied (when it's clearly an auth issue).Before asking the user to log in, independently verify the authentication status
by running: gcloud auth list * If the output contains No credentialed accounts., proceed to the Corrective Action steps below. * 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 the
permissions rather than asking them to log in again.
When missing credentials are confirmed, DO NOT attempt to fix the credentials via code or alternative tools. Credentials must be established by the user.
Stop and ask the user to run the following commands in their terminal:
To authenticate the gcloud CLI: gcloud auth login
To set up Application Default Credentials (ADC) (required for BQ CLI AND
most libraries/notebooks): gcloud auth application-default login
After the user confirms they have logged in, verify with: gcloud auth list
Then proceed with the original task.
npx claudepluginhub gemini-cli-extensions/data-agent-kit-starter-pack --plugin dakFixes GCloud setup errors like ADC not found, auth issues, unset projects, and permission denied. Guides MCP configuration with CLI commands.
Verifies and harmonizes Google Cloud authentication across gcloud, Application Default Credentials, and kubectl at session start.
Advises on Google Cloud authentication and authorization patterns including ADC, service accounts, Workload Identity Federation, and anti-patterns like SA key downloads. Use when designing auth flows, debugging GCP auth failures, or migrating to keyless auth.