Agent skill
gcp-auth
Google Cloud Platform (GCP) の Application Default Credentials 認証を実行。BigQuery や Cloud Storage 等の GCP サービス利用前に「GCP認証して」と言うだけで認証手順をガイド。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gcp-auth
SKILL.md
GCP Authentication
Google Cloud の Application Default Credentials (ADC) 認証を実行するスキルです。
Workflow
- ユーザーが「GCP認証して」「BigQuery使いたい」等と言う
- 認証コマンドをターミナルで実行するよう案内
- ブラウザでGoogleアカウント認証
- 認証完了を確認
Usage
認証コマンド(ターミナルで直接実行)
gcloud auth application-default login
注意: このコマンドはブラウザでの認証が必要なため、ターミナルで直接実行してください。
認証フロー
- コマンド実行 → ブラウザが自動的に開く
- Googleアカウント選択 → 使用するアカウントを選択
- 権限許可 → 「Google Auth Library にアクセスを許可」で「許可」をクリック
- 完了確認 → ターミナルに「Credentials saved to file」と表示
トラブルシューティング
| エラー | 対処法 |
|---|---|
| Reauthentication is needed | 認証期限切れ。再度 gcloud auth application-default login を実行 |
| GOOGLE_APPLICATION_CREDENTIALS 警告 | .env から該当行を削除するか、ADC を使用 |
| Project not set | gcloud config set project PROJECT_ID でプロジェクト設定 |
認証状態の確認
# トークンが表示されれば認証済み
gcloud auth application-default print-access-token
# 現在のプロジェクト確認
gcloud config get-value project
Requirements
- Google Cloud SDK (
gcloud) がインストール済み - ブラウザでGoogleアカウントにログイン可能
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?