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
In this repository45 other files it gives its agents.
- spanner-provisioningSkill
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- ad-copywritingSkill
- brand-strategySkill
- platform-specsSkill
- trend-analysisSkill
- video-storytellingSkill
- visual-directionSkill
- code-reviewSkill
- documentationSkill
- idea-to-appSkill
- open-prSkill
- pre-commitSkill
- security-scanSkill
- unit-testsSkill
- modernize-dotnet-cloudrunSkill
- legacy-app-generatorSkill
- app-migration-executionSkill
- app-migration-orchestratorSkill
- identity-translationSkill
- network-translationSkill
- observability-translationSkill
- storage-translationSkill
- workload-translationSkill
- ingress2gatewaySkill
- eks-discoverySkill
- gke-landing-zoneSkill
- identity-translationSkill
- migration-assessmentSkill
- network-translationSkill
- observability-translationSkill
- registry-migrationSkill
- storage-translationSkill
- validationSkill
- bigframes-bqmlSkill
- model-evaluationSkill
- pipeline-generatorSkill
- spark-lightning-optimizationSkill
- unified-model-registrySkill
- zero-copy-ingestionSkill
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
- Distinctive: line 35
Use when the user asks to:
- Distinctive: line 51
Before starting the migration program, the user MUST have completed the following:
- Distinctive: line 62
If these prerequisites are not met, pause the orchestration and request the user to complete them.
- Very specific: line 69
Check if the eks-migration-readonly profile exists in ~/.aws/credentials or ~/.aws/config.
- Distinctive: line 78
Wait for the user to confirm they have configured the credentials before proceeding.
- Very specific: line 81
Use the ask_question tool to present the following questions to the user to gather the initial state:
- Very specific: line 88
Create the output_dir (defaults to ./migration-output/<run_id>/, where <run_id> is YYYY-MM-DD-<env>-<short-name>).
- Very specific: line 90
Write platform-handoff.json matching the schema defined in assets/platform-handoff.schema.json (relative to this skill's directory).
- Very specific: line 108
When discovery completes, invoke migration-assessment.
- Very specific: line 110
Read 02-assessment/readiness-report.md.
- Distinctive: line 121
Run in this order — each skill consumes outputs of the previous:
- Very specific: line 131
Stop here for human review of the landing zone Terraform plan.
- Distinctive: line 146
Run in parallel where the user permits, otherwise serially:
- Distinctive: line 255
Before declaring the migration complete, the orchestrator must perform the following validation steps:
- Distinctive: line 262
Verify handoff artifacts: Check for the presence of the required JSON map files.
- Very specific: line 266
Validate Terraform: Run terraform validate inside terraform/ directory.
- Very specific: line 268
Validate Manifests: Verify Kubernetes dry-run syntax on target application manifests under manifests/.
- Very specific: line 275
Handle failures: If any check fails, do NOT mark the migration complete.
≈ “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.
Files
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
Check if the
eks-migration-readonlyprofile exists in~/.aws/credentialsor~/.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-readonlyWait for the user to confirm they have configured the credentials before proceeding.
- Use the
ask_questiontool 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?"
- Create the
output_dir(defaults to./migration-output/<run_id>/, where<run_id>isYYYY-MM-DD-<env>-<short-name>). - Write
platform-handoff.jsonmatching the schema defined inassets/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. Validate the generated
platform-handoff.jsonagainst the schema usingcheck-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- 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
- Invoke
eks-discovery. Pass it the source AWS scope. - When discovery completes, invoke
migration-assessment. Pass it the discovery artifacts. - Read
02-assessment/readiness-report.md. Ifoverall_gradeis "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:
gke-landing-zone— produces the target Google Cloud project structure, fleet, Shared VPC plan, Terraform.network-translation— translates EKS network topology (ALBs, NLBs, Ingresses, Services) into GKE Gateway/Service definitions.identity-translation(with identity-federation) — maps every IRSA binding to Workload Identity, producesidentity-map.mdand 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:
- Exact
terraform initandterraform applycommands for Landing Zone and Artifact Registry infrastructure. - Container Image Migration commands (
gcloud auth configure-docker, AWS ECR authentication, andcrane copy/docker tag/pushcommands usingimage-map.json). - Kubernetes manifest deployment order (
kubectl applyfor Gateway API routes, storage, and application workloads).
Step 4 — Phase 3: Translate
Run in parallel where the user permits, otherwise serially:
storage-translation— StorageClasses, PVCs, snapshots, restore plans. Emits translated cluster-scoped StorageClasses intocluster-manifests/<cluster>/storageclasses.yaml.registry-migration— ECR repos to Artifact Registry, image rebuild/push plan. Emitsimage-map.json.observability-translation— CloudWatch/AMP to Cloud Operations/GMP, producesobs-design.mdandobservability-map.json.
[!IMPORTANT]
WORKLOAD HANDOFF UNTRANSLATED MANIFEST RULE: Manifests in
workload-handoff/<cluster>/manifests/<namespace>/MUST be an exact 1:1 straight copy from01-discovery/raw/manifests/<cluster>/<namespace>/(excluding AWS system namespacesamazon-*,aws-*,kube-*,eks-*, and any unutilized namespaces with zero application workloads such as an emptydefaultnamespace). 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 themaps/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 toassets/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.mdValidation
Before declaring the migration complete, the orchestrator must perform the following validation steps:
- Verify skill completion: Confirm that all required skills (discovery, assessment, landing zone, network, identity, storage, registry, observability) have successfully completed.
- Verify escalations: Confirm that all escalations are closed.
- Verify handoff artifacts: Check for the presence of the required JSON map files.
- Validate schemas: Confirm that all generated JSON files conform strictly to their respective schemas.
- Validate Terraform: Run
terraform validateinsideterraform/directory. - Validate Manifests: Verify Kubernetes dry-run syntax on target
application manifests under
manifests/. - Verify image mappings: Confirm that all EKS workload image references
have valid target mapping entries in
image-map.jsonand are present in the target Artifact Registry. - Verify workload definitions: Confirm that the raw EKS manifests contain resource definitions matching all workloads listed in the handoff artifacts.
- Handle failures: If any check fails, do NOT mark the migration complete.
Produce a
residual-work.mddocument listing the failed checks and what work remains.
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
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.

