agentleFS
dmzoneilldmzoneill/skills/gke-cluster-ops/SKILL.md

gke-cluster-ops

Skill2 starsChanged 19 days agoApache-2.0View on GitHub

Manage GKE clusters and GCP compute resources - list clusters, start/stop instances, storage ops. Use when user says "GKE cluster", "list GKE", "start GCP instance", "GCS storage".

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If action == "start" and cluster: gcloud_compute_instances_start(instance=cluster)

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GKE Cluster Operations

Manage GKE clusters and GCP compute resources: list clusters/instances, start/stop instances, GCS storage operations.

Inputs

InputTypeDefaultPurpose
actionstringrequiredlist, start, stop, credentials, storage
projectstring""GCP project ID
clusterstring""GKE cluster or instance name

Workflow

1. Bootstrap

  • persona_load("devops") — GCP tools
  • check_known_issues("gke"), check_known_issues("gcloud")

2. Auth and Config

  • gcloud_auth_list() — GCP auth status
  • gcloud_config_list() — GCP config
  • If project: gcloud_config_set_project(project)
  • gcloud_projects_list() — list projects

3. Cluster Operations

  • gcloud_container_clusters_list() — list GKE clusters

4. Compute Operations

  • gcloud_compute_instances_list() — list instances
  • If action == "start" and cluster: gcloud_compute_instances_start(instance=cluster)
  • If action == "stop" and cluster: gcloud_compute_instances_stop(instance=cluster)
  • If cluster: gcloud_compute_instances_describe(instance=cluster)

5. Storage (if action in ["storage", "list"])

  • gcloud_storage_ls() — list GCS buckets
  • If action == "storage" and cluster: gcloud_storage_cp(source=cluster, ...)
  • If action == "cleanup" and cluster: gcloud_storage_rm(path=cluster)

6. Failure Learning

  • "not logged in" / "no active account" → learn_tool_fix("gcloud_auth_list", "not logged in", "Not authenticated to GCP", "Run gcloud auth login")
  • "permission denied" / "forbidden" → learn_tool_fix("gcloud_container_clusters_list", "permission denied", "Insufficient GCP permissions", "Request container.clusters.list or correct project")

7. Memory

  • memory_session_log("GKE {action}", "clusters=X, instances_running=Y")

Key MCP Tools

  • persona_load, check_known_issues, learn_tool_fix, memory_session_log
  • gcloud_auth_list, gcloud_config_list, gcloud_config_set_project, gcloud_projects_list
  • gcloud_container_clusters_list, gcloud_compute_instances_list, gcloud_compute_instances_start, gcloud_compute_instances_stop, gcloud_compute_instances_describe
  • gcloud_storage_ls, gcloud_storage_cp, gcloud_storage_rm

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.