gcp-cli
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Use the correct GCP CLI (gcloud) project, account, and region when running Google Cloud commands based on the target environment.
- Installs packages
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
When running gcloud commands, always pass the --project flag based on the target environment, and configure the region/zone explicitly.
- Distinctive: line 12
Update the project map below with your GCP project IDs:
- Very specific: line 24
Always pass --region <your-default-region> or --zone <your-default-zone> unless the user specifies a different location.
- Distinctive: line 28
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.
- Very specific: line 87
Always specify --project and --account explicitly — never rely on the default gcloud config values, as they may point to the wrong project.
- Very specific: line 88
Always specify --region/--zone explicitly — never rely on the default configured region.
- Distinctive: line 89
If the target environment is unclear, ask the user before running the command.
- Distinctive: line 90
NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against …
- Very specific: line 91
NEVER read or output service account key files, gcloud auth print-access-token output, or any credential value.
- Very specific: line 92
If unsure which project an account belongs to, run gcloud projects describe <project-id> --account <account> to verify before proceeding.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GCP CLI Skill
When running gcloud commands, always pass the --project flag based on the target environment, and configure the region/zone explicitly.
Configuration
Update the project map below with your GCP project IDs:
| Environment | Project ID | Account |
| Production | <your-prod-project-id> | <your-prod-account> |
| Staging / Non-Prod | <your-nonprod-project-id> | <your-nonprod-account> |
| Sandbox / Dev | <your-sandbox-project-id> | <your-sandbox-account> |
Default Region / Zone
Set your default region and zone here: <your-default-region> / <your-default-zone> (e.g. us-central1 / us-central1-a).
Always pass --region <your-default-region> or --zone <your-default-zone> unless the user specifies a different location.
Prerequisites (one-time setup by user)
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
brew install --cask google-cloud-sdk
gcloud auth login
gcloud auth listCommand Format
gcloud <group> <command> --project <project-id> --account <account> [--region <region> | --zone <zone>] [options]Examples
# Production
gcloud compute instances list --project <your-prod-project-id> --account <your-prod-account>
# Staging / Non-Prod
gcloud compute instances list --project <your-nonprod-project-id> --account <your-nonprod-account>Available Commands
Read-only (safe, no confirmation needed)
| Command pattern | Description |
gcloud * list | List any resource type |
gcloud * describe <name> | Describe a resource |
gcloud projects describe <project-id> | Show project metadata |
gcloud auth list | Show authenticated accounts |
gcloud config list | Show current CLI configuration |
gcloud logging read <query> | Read Cloud Logging entries |
gcloud monitoring ... (read subcommands) | Query Cloud Monitoring |
Mutating operations (confirm with user before running)
| Command pattern | Description |
gcloud * create | Create a new resource |
gcloud * update | Update an existing resource |
gcloud deploy releases create | Trigger a deployment |
gcloud run deploy | Deploy a Cloud Run service |
Never run — requires explicit human approval
| Command pattern | Reason |
gcloud * delete | Irreversible resource deletion |
gcloud projects delete | Irreversibly deletes an entire project |
gcloud iam ... add-iam-policy-binding / remove-iam-policy-binding | Alters access control, security-sensitive |
gcloud compute instances stop/reset | Disrupts running workloads |
gcloud sql instances delete/restart | Disrupts or destroys a database |
Rules
- Always specify
--projectand--accountexplicitly — never rely on the defaultgcloud configvalues, as they may point to the wrong project. - Always specify
--region/--zoneexplicitly — never rely on the default configured region. - If the target environment is unclear, ask the user before running the command.
- NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against production.
- NEVER read or output service account key files,
gcloud auth print-access-tokenoutput, or any credential value. - If unsure which project an account belongs to, run
gcloud projects describe <project-id> --account <account>to verify before proceeding.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

