Agent skill
gcp-login
Authenticate to Google Cloud Platform using Application Default Credentials. Use when user selects GCP from cloud provider selection, or says "login to GCP", "gcloud auth", "authenticate to Google Cloud".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/gcp-login
SKILL.md
GCP Login Skill
Authenticate to Google Cloud Platform using gcloud auth login --update-adc.
Activation Triggers
/auth-gcpslash command- User says: "login to GCP", "gcloud auth", "authenticate to GCP"
Prerequisites
gcloudCLI installed and in PATH- Environment variables in
.env(optional):GOOGLE_CLOUD_PROJECT- GCP project ID for quota projectGCLOUD_EMAIL_ADDRESS- Email for bucket policy bindings
Usage
Human CLI
# Authenticate to GCP
./scripts/gcp-auth.ps1
# Force re-authentication
./scripts/gcp-auth.ps1 -Force
Claude Agent
# Via skill invocation
uv run --directory ${CLAUDE_PATH} python -m claude_apps.skills.gcp_login [--force]
Auth URL Detection
The skill captures and displays the authentication URL:
| Field | Value |
|---|---|
| URL | https://accounts.google.com/o/oauth2/auth?... |
Workflow
- Check if already authenticated (skip if valid, unless
--force) - Set project from
GOOGLE_CLOUD_PROJECTenv var if available - Run
gcloud auth login --update-adc --no-launch-browser - Display auth URL for user to open in browser
- Verify authentication success
Code Structure
apps/src/claude_apps/skills/gcp_login/
├── __init__.py
├── __main__.py # Entry point
└── auth.py # GCloud auth with URL detection
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?