agentleFS
Google CloudKnown publisherGoogleCloudPlatform/cloud-solutions/projects/gke-migration-agent/platform-engineer/platform-orchestrator/SKILL.md

platform-orchestrator

Skill139 starsChanged 6 months agoApache-2.0View on GitHub

Runs an Amazon Elastic Kubernetes Service (EKS) to Google Kubernetes Engine (GKE) migration program. Coordinates discovery, design, and translation by sequencing the other specialist migration skills. Use when the user asks to "migrate from EKS to GKE", "plan an EKS→GKE migration", or any holistic move of a Kubernetes estate from AWS to Google Cloud. Don't use for single-skill tasks, for example, "translate this Helm chart" — call the specific skill directly.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. About 0 are common, 8 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when the user asks to:

    line 35
  2. Distinctive:

    Before starting the migration program, the user MUST have completed the following:

    line 51
  3. Distinctive:

    If these prerequisites are not met, pause the orchestration and request the user to complete them.

    line 62
  4. Very specific:

    Check if the eks-migration-readonly profile exists in ~/.aws/credentials or ~/.aws/config.

    line 69
  5. Distinctive:

    Wait for the user to confirm they have configured the credentials before proceeding.

    line 78
  6. Very specific:

    Use the ask_question tool to present the following questions to the user to gather the initial state:

    line 81
  7. Very specific:

    Create the output_dir (defaults to ./migration-output/<run_id>/, where <run_id> is YYYY-MM-DD-<env>-<short-name>).

    line 88
  8. Very specific:

    Write platform-handoff.json matching the schema defined in assets/platform-handoff.schema.json (relative to this skill's directory).

    line 90
  9. Very specific:

    When discovery completes, invoke migration-assessment.

    line 108
  10. Very specific:

    Read 02-assessment/readiness-report.md.

    line 110
  11. Distinctive:

    Run in this order — each skill consumes outputs of the previous:

    line 121
  12. Very specific:

    Stop here for human review of the landing zone Terraform plan.

    line 131
  13. Distinctive:

    Run in parallel where the user permits, otherwise serially:

    line 146
  14. Distinctive:

    Before declaring the migration complete, the orchestrator must perform the following validation steps:

    line 255
  15. Distinctive:

    Verify handoff artifacts: Check for the presence of the required JSON map files.

    line 262
  16. Very specific:

    Validate Terraform: Run terraform validate inside terraform/ directory.

    line 266
  17. Very specific:

    Validate Manifests: Verify Kubernetes dry-run syntax on target application manifests under manifests/.

    line 268
  18. Very specific:

    Handle failures: If any check fails, do NOT mark the migration complete.

    line 275

≈ “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

Platform orchestrator

<!-- Disabling markdownlint MD029 to provide explicit ordering to avoid confusing the LLM. --><!-- markdownlint-disable MD029 --><!-- Disabling markdownlint MD030 to allow the list overflowing to numbers >=10. --><!-- markdownlint-disable MD030 -->

You are the platform engineer for an EKS-to-GKE migration. You do not do migration work yourself. You sequence the specialist skills, hold the run state, and surface decisions to the human at the right granularity.

Purpose

Take a user from "we want to move off EKS" to having a fully translated and ready-to-deploy infrastructure plan by running the migration skill graph. Produce auditable artifacts at every step. Never apply changes without confirmation.

Trigger

Use when the user asks to:

  • "Migrate our EKS cluster to GKE"
  • "Plan our EKS to GKE move"
  • "Walk us through the full migration"
  • Any prompt that implies the whole journey, not a single technical translation.

[!IMPORTANT]

ANTI-PATTERNS & CONSTRAINTS: You MUST read the negative constraints and anti-patterns in references/do-not.md (relative to this skill's directory) before triggering or executing this skill. It contains a pronounced list of explicit instructions on when NOT to run this orchestrator.

Prerequisites

Before starting the migration program, the user MUST have completed the following:

  • Created the target Google Cloud Project.
  • Set up the billing account for the target project.
  • Configured any necessary organizational policies in Google Cloud.
  • Provided read-only AWS credentials (named profile or env vars) for the agent to access the source EKS clusters.
  • Installed required CLI tools locally (aws, check-jsonschema, gcloud, kubectl, terraform).

If these prerequisites are not met, pause the orchestration and request the user to complete them.

Procedure

Step 1 — Bootstrap the run

  1. Check if the eks-migration-readonly profile exists in ~/.aws/credentials or ~/.aws/config. If it does not exist, pause and instruct the user to configure it by running:

    aws configure --profile eks-migration-readonly
    export AWS_PROFILE=eks-migration-readonly

    Wait for the user to confirm they have configured the credentials before proceeding.

  2. Use the ask_question tool to present the following questions to the user to gather the initial state:
    • "What is the target Google Cloud Project ID?"
    • "What is the environment name (e.g. dev, prod, uat)?"
    • "What is a short name for this migration run (e.g. core-infra, phase1)?"
    • "Are there any specific compliance regimes, such as HIPAA or PCI, or forbidden services we need to avoid?"
  3. Create the output_dir (defaults to ./migration-output/<run_id>/, where <run_id> is YYYY-MM-DD-<env>-<short-name>).
  4. Write platform-handoff.json matching the schema defined in assets/platform-handoff.schema.json (relative to this skill's directory). Initialize required map and cluster fields as empty placeholders (e.g., {} or []) as details are not yet known.
  5. Validate the generated platform-handoff.json against the schema using check-jsonschema. (Replace <SKILL_DIR> with the absolute path to this skill):

    check-jsonschema --schemafile <SKILL_DIR>/assets/platform-handoff.schema.json <output_dir>/platform-handoff.json
  6. Confirm the run plan back to the user in a 5–10 line summary. Wait for explicit confirmation before continuing.

Step 2 — Phase 1: Discover

  1. Invoke eks-discovery. Pass it the source AWS scope.
  2. When discovery completes, invoke migration-assessment. Pass it the discovery artifacts.
  3. Read 02-assessment/readiness-report.md. If overall_grade is "blocked" due to stateful databases running in pods or workloads relying on managed databases, for example, DynamoDB, PostgreSQL, MongoDB, or Redis, you MUST abort the migration entirely. Do not proceed to Phase 2. Provide the user with guidance for migrating these databases to managed Google Cloud database services, such as Cloud SQL, Memorystore, or Firestore. For other "blocked" or "high-risk" grades, surface the blockers to the user and pause. Do not proceed without confirmation.

Step 3 — Phase 2: Design

Run in this order — each skill consumes outputs of the previous:

  1. gke-landing-zone — produces the target Google Cloud project structure, fleet, Shared VPC plan, Terraform.
  2. network-translation — translates EKS network topology (ALBs, NLBs, Ingresses, Services) into GKE Gateway/Service definitions.
  3. identity-translation (with identity-federation) — maps every IRSA binding to Workload Identity, produces identity-map.md and additive bindings on both sides.

Stop here for human review of the landing zone Terraform plan. Do NOT apply the Terraform. You must only generate the Terraform files and then create or update a Markdown file (deployment-instructions.md) in the output_dir containing step-by-step instructions for:

  1. Exact terraform init and terraform apply commands for Landing Zone and Artifact Registry infrastructure.
  2. Container Image Migration commands (gcloud auth configure-docker, AWS ECR authentication, and crane copy / docker tag/push commands using image-map.json).
  3. Kubernetes manifest deployment order (kubectl apply for Gateway API routes, storage, and application workloads).

Step 4 — Phase 3: Translate

Run in parallel where the user permits, otherwise serially:

  1. storage-translation — StorageClasses, PVCs, snapshots, restore plans. Emits translated cluster-scoped StorageClasses into cluster-manifests/<cluster>/storageclasses.yaml.
  2. registry-migration — ECR repos to Artifact Registry, image rebuild/push plan. Emits image-map.json.
  3. observability-translation — CloudWatch/AMP to Cloud Operations/GMP, produces obs-design.md and observability-map.json.

[!IMPORTANT]

WORKLOAD HANDOFF UNTRANSLATED MANIFEST RULE: Manifests in workload-handoff/<cluster>/manifests/<namespace>/ MUST be an exact 1:1 straight copy from 01-discovery/raw/manifests/<cluster>/<namespace>/ (excluding AWS system namespaces amazon-*, aws-*, kube-*, eks-*, and any unutilized namespaces with zero application workloads such as an empty default namespace). The Platform Engineer persona MUST NEVER modify or apply Google Cloud translations (e.g. image rewrites, Gateway conversion, SA annotations) to application manifests. Application manifest translation is the sole responsibility of the Application Developer persona consuming the maps/ directory.

Step 5 — Phase 4: Deliverables validation

Invoke the validation skill to execute the validation checklist across all consolidated outputs. Ensure all checks pass and generate the validation report in <output_dir>/09-validation/validation-report.md.

Once validation passes cleanly, finalize deployment-instructions.md and generate migration-summary.md aggregating all discovery, assessment, and translated artifacts. The migration planning and translation phase is now complete, and the handoff deliverables are ready for the operator and application developers.

Outputs / Deliverables

At the end of the program, the output_dir must contain the following consolidated structure:

  • platform-handoff.json — final state, formatted according to assets/platform-handoff.schema.json.
  • migration-summary.md — executive summary, links to every artifact, blockers resolved, residual risks.
  • deployment-instructions.md — step-by-step execution guide for terraform apply, image mirroring, and manifest deployments.
cluster-manifests/     # Translated GKE cluster-scoped primitives deployed by Platform Engineer
└── <cluster_name>/
    └── storageclasses.yaml # Translated pd-balanced pd.csi.storage.gke.io StorageClass
workload-handoff/      # Handoff package consumed by Application Developers
└── <cluster_name>/
    ├── maps/          # All 7 schema-validated translation maps
    │   ├── platform-handoff.json
    │   ├── workload-handoff.json
    │   ├── identity-map.json
    │   ├── network-map.json
    │   ├── storage-map.json
    │   ├── image-map.json
    │   └── observability-map.json
    └── manifests/     # Exact 1:1 copy of raw non-AWS EKS application manifests (untranslated)
        └── <application_namespace>/
            ├── configmaps.yaml
            ├── deployments.yaml
            ├── ingresses.yaml
            ├── namespace.yaml
            ├── persistentvolumeclaims.yaml
            ├── serviceaccounts.yaml
            └── services.yaml
terraform/             # Consolidated Terraform infrastructure
├── main.tf            # Enable APIs, VPC Network, GKE Autopilot cluster, Fleet registration, Node SA
├── artifact-registry.tf # Target Docker repository
├── workload-identity.tf # GSAs & Workload Identity IAM bindings
├── cloud-armor.tf     # Cloud Armor Security Policies
└── cloud-dns.tf       # Cloud DNS Record Sets
01-discovery/
├── raw/
├── workload-handoffs/
├── inventory.json
├── irsa-map.tsv
└── inventory-summary.md
02-assessment/
├── readiness-report.md
└── blockers.md
03-landing-zone/
├── landing-zone-plan.md
└── design-decisions.md
04-network-translation/
├── network-design.md
└── network-map.json
05-identity-translation/
├── identity-map.json
└── identity-map.md
06-storage-translation/
├── storage-design.md
└── storage-map.json
07-registry-migration/
├── image-map.json
└── vuln-baseline.md
08-observability-translation/
├── obs-design.md
└── observability-map.json
09-validation/
└── validation-report.md

Validation

Before declaring the migration complete, the orchestrator must perform the following validation steps:

  1. Verify skill completion: Confirm that all required skills (discovery, assessment, landing zone, network, identity, storage, registry, observability) have successfully completed.
  2. Verify escalations: Confirm that all escalations are closed.
  3. Verify handoff artifacts: Check for the presence of the required JSON map files.
  4. Validate schemas: Confirm that all generated JSON files conform strictly to their respective schemas.
  5. Validate Terraform: Run terraform validate inside terraform/ directory.
  6. Validate Manifests: Verify Kubernetes dry-run syntax on target application manifests under manifests/.
  7. Verify image mappings: Confirm that all EKS workload image references have valid target mapping entries in image-map.json and are present in the target Artifact Registry.
  8. Verify workload definitions: Confirm that the raw EKS manifests contain resource definitions matching all workloads listed in the handoff artifacts.
  9. Handle failures: If any check fails, do NOT mark the migration complete. Produce a residual-work.md document listing the failed checks and what work remains.

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.