Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
julianobarbosa avatar

Using Cloud Cli

  • 97 installs
  • 6 repo stars
  • Updated July 22, 2026
  • julianobarbosa/claude-code-skills

Cloud CLI patterns for GCP and AWS. Use when running bq queries, gcloud commands, aws commands, making cloud service decisions.

About

Cloud CLI patterns for GCP and AWS.. Use for bq queries, gcloud commands, aws commands, cloud service decisions.

  • intermediate skill
  • core: cloud & infrastructure

Using Cloud Cli by the numbers

  • 97 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #565 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill using-cloud-cli

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs97
repo stars6
Last updatedJuly 22, 2026
Repositoryjulianobarbosa/claude-code-skills

What it does

Cloud CLI patterns for GCP and AWS. Use when running bq queries, gcloud commands, aws commands, making cloud service decisions.

Files

SKILL.mdMarkdownGitHub ↗

Cloud CLI Patterns

Credentials are pre-configured. Use --help or Context7 for syntax.

BigQuery

# Always estimate cost first
bq query --dry_run --use_legacy_sql=false 'SELECT ...'

# Run query
bq query --use_legacy_sql=false --format=json 'SELECT ...'

# List tables
bq ls project:dataset

# Get table schema
bq show --schema --format=json project:dataset.table

Cost awareness: Charged per bytes scanned. Use --dry_run, partition tables, specify columns.

GCP (gcloud)

# List resources
gcloud compute instances list --format=json

# Describe resource
gcloud compute instances describe INSTANCE --zone=ZONE --format=json

# Create with explicit project
gcloud compute instances create NAME --project=PROJECT --zone=ZONE

# Use --quiet for automation
gcloud compute instances delete NAME --quiet

AWS

# List resources
aws ec2 describe-instances --output json

# With JMESPath filtering
aws ec2 describe-instances --query 'Reservations[].Instances[].InstanceId' --output text

# Explicit region
aws s3 ls s3://bucket --region us-west-2

# Dry run where available
aws ec2 run-instances --dry-run ...

References

  • GCP.md - GCP service patterns and common commands
  • AWS.md - AWS service patterns and common commands
  • scripts/ - Helper scripts for common operations

---

Gotchas

  • `gcloud auth login` and `gcloud auth application-default login` are DIFFERENT credentials — a script working for the user can 401 in CI because CI only has the latter.
  • AWS CLI v1 vs v2 have different config formats — both may be installed; aws --version reveals which is the default aws binary.
  • BigQuery cost estimation requires `--dry_run` — without it, you can run a $100 query thinking it's free. Always estimate first.
  • Precedence: AWS_PROFILE vs --profile flag vs AWS_ACCESS_KEY_ID direct env — three-way precedence is order-dependent and rarely documented.
  • gcloud impersonation chains via `--impersonate-service-account` need IAM token-creator on EACH hop — missing one hop returns 403 with vague "permission denied".
  • `aws sts get-caller-identity` is the cheapest way to verify which credential you're actually using — always check first.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.