From syou6162-claude-code-commands
Detects gcloud/bq authentication errors like reauthentication prompts or browser flows and instructs user to run manual login commands.
npx claudepluginhub syou6162/agent-skillsThis skill uses the workspace's default tool permissions.
このスキルは、gcloudやbqコマンドの実行時に認証エラーを検出し、エージェントが勝手に認証コマンドを実行することを防ぎます。認証はブラウザ操作が必要なため、ユーザーに明示的に依頼します。
Verifies and resolves Google Cloud authentication errors for gcloud CLI, bq, dataform, and Python libraries. Use on missing credentials or 403 Forbidden issues.
Fixes GCloud setup errors like ADC not found, auth issues, unset projects, and permission denied. Guides MCP configuration with CLI commands.
Provides CLI patterns for GCP gcloud/bq and AWS commands. Covers BigQuery cost estimation/optimization, resource listing, auth error recovery, and rate limiting mitigation. Use for cloud ops and queries.
Share bugs, ideas, or general feedback.
このスキルは、gcloudやbqコマンドの実行時に認証エラーを検出し、エージェントが勝手に認証コマンドを実行することを防ぎます。認証はブラウザ操作が必要なため、ユーザーに明示的に依頼します。
以下のエラーパターンを検出した場合にこのスキルを発動してください:
パターン1: bqコマンドでの再認証要求
Reauthentication required. と Please enter your password: が出力された場合パターン2: gcloud認証でブラウザが開く
Your browser has been opened to visit: と accounts.google.com URLが出力された場合即座に作業を中断: 認証エラーを検出したら、関連するgcloud/bqコマンドの実行を停止する
ユーザーに通知: 以下の内容をユーザーに伝える
gcloud auth application-default login)認証完了を待つ: ユーザーが認証を完了するまで、関連するコマンドを実行しない
% bq ls
Reauthentication required.
Please enter your password:
対応:
認証が切れています。以下のコマンドで認証を完了してください:
gcloud auth application-default login
認証完了後、作業を再開します。
% gcloud auth application-default login
Your browser has been opened to visit:
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=XXX&redirect_uri=XXX&scope=XXX&state=XXX&access_type=offline&code_challenge=XXX&code_challenge_method=S256
対応:
ブラウザで認証フローが開始されました。
ブラウザで認証を完了してください。
認証完了後、作業を再開します。
✅ すべきこと:
❌ してはいけないこと: