kai-deploy

kai-deploy is a skill for Claude Code from aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow. It costs 118 tokens per session (2,765 once invoked), scanned A, original, Apache-2.0.

A deployment procedure for placing a previously exported model-sharing plan onto the KAI GPU scheduler. It creates one vLLM OpenAI server deployment per tenant through Helm and checks that each tenant received the requested GPU share.

In plain words
What is it for?
Use it to deploy, verify, inspect drift in, load-test, or tear down an exported multi-model GPU placement on KAI.
Why use it?
It removes the manual work of turning a placement file into running services and catches placements that differ from the plan. It also retries failed placement, records differences from the fleet configuration, and load-tests the result.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the colocation-pipeline plugin — 2 skills, 15 commands, 2 hooks shipped together

Good fit Use it to deploy, verify, inspect drift in, load-test, or tear down an exported multi-model GPU placement on KAI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy
About the project

Amazon EKS Machine Learning with Terraform and Kubeflow is a modular platform for running machine-learning operations on Amazon EKS, the managed Kubernetes service, including training pipelines and model-serving systems. It is intended for teams deploying distributed training and inference with tools such as Kubeflow, MLflow, Airflow, and KServe, using configurable AWS infrastructure. The catalogue entries provide commands, skills, hooks, and a plugin for working with this deployment setup.

aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow · 132 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow --skill kai-deploy
Clone the repo
git clone --depth 1 https://github.com/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow

Made for: Claude Code.

Or install colocation-pipeline, the plugin that ships this one along with the rest of its 2 skills, 15 commands, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kai-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy/github.svg)](https://agentmods.dev/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy)
Your own site
<a href="https://agentmods.dev/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy"><img src="https://agentmods.dev/badge/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kai-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy"><img src="https://agentmods.dev/badge/skills/aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow/kai-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.02765
Opus 5.5 $0.00047 $0.01106
Sonnet 5.5 $0.00024 $0.00553
Haiku 4.5 $0.00012 $0.00277

Measured 4d ago against content hash 86a6e8319708, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kai-deploy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tutorials/multi-model-gpu-sharing/plugins/colocation-pipeline/skills/kai-deploy/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy an export on KAI

You are handed an export — observations/<key>/exports/<token>.yaml, or just its run token (rt65y1). Your job is to serve its placement on the kai-gpu node pool and leave it either placed exactly as its slots say, or torn down with the reason stated.

This is a separate step and the user starts it. Nothing in the pipeline deploys a result, and run-fleet never chains into this. The guard hook asks before any colocation.kai deploy, load or teardown unless the user's own prompt was /fleet-kai-deploy, /fleet-kai-load or /fleet-kai-teardown; an ask is the rule working, not something to route around.

Everything runs from the repository's tutorials/multi-model-gpu-sharing directory with PYTHONPATH=src.

A split's export is one deployment per node. An export with schema_version: 2 (written by search on a fleet with max_nodes above 1, <store>/groups/<fleet>/export.<stamp>.yaml) holds each node's own group export. render and deploy take it like any export, and each node becomes a deployment of its own, <name>-n1, <name>-n2, ..., deployed one after the other exactly as a single node is. The first tenant of each later node is kept off the earlier nodes' hosts and in the first node's zone. It therefore needs that many kai-gpu nodes of the instance type in one zone, and capacity for that is not guaranteed, so say so before deploying. Both render and deploy refuse (exit 2) if a node's own export file no longer matches the copy in the split, because that means the group was exported again since. Every per-deployment step below (retry, verify, drift, teardown) takes a node's <name>-n<i>, and a mismatch on one node is retried by tearing down every node of the split and deploying again, since later nodes were placed relative to earlier ones.

What the code decides, so you do not

  • Sizing. render re-derives each tenant's envelope offline, exactly as export did, and refuses (exit 2) if any differs from the export's required_gib or if the fleet file's sha256 moved. Each shard becomes a fraction L = (E - r_mps) + r_kai with r_kai = r_mps + 0.125 GiB, and util is computed against L, which hands vLLM the budget it was measured with.
  • Filling. Every slot's card is filled to the store's addressable_mib less 256 MiB, the extra going to the slot's single-shard tenants as KV. That is what makes KAI's binpack reproduce the slots; it is not a choice to revisit per deploy.
  • Order. Cards without a TP tenant first, then TP tenants, then their mates — each tenant waited on until the binder has written its cards, and every tenant after the first pinned to the first one's node. Each tenant is a Helm release of the kai-vllm chart, kai-<name>-<tenant>, installed without --wait (bound is what the next one needs, not Ready), and the plan is a release of its own, kai-<name>-plan. Helm orders nothing between releases; deploy does.
  • SM caps. A tenant the search measured under an SM cap carries active_thread_percentage in the export, and is served with CUDA_MPS_ACTIVE_THREAD_PERCENTAGE set to it in its pod env, which KAI's shared MPS server honours. render prints SM cap N% beside it. An uncapped tenant gets no variable.

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 161 lines · 118 tokens per session scan A 86a6e8319708

Subscribe to this mod's changes

kai-deploy is a skill published in the GitHub repository aws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflow (132 stars, last pushed 4d ago), licensed Apache-2.0. It adds 118 tokens to every session and 2,765 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.

Related

kai-deploy compared with skills from other repositories

kai-deploy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kai-deployaws-samples/amazon-eks-machine-learning-with-terraform-and-kubeflowSkill1324d agoApache-2.0A118Claude Code
tensorrt-llmNousResearch/hermes-agentSkill263ktodayMITA18Claude Code, Codex
agent-platform-tuninggoogle/skillsSkill24kyesterdayApache-2.0A64Claude Code, Codex
google-cloud-solution-guided-gke-ai-migrationgoogle/skillsSkill24kyesterdayApache-2.0A157Claude Code, Codex
apigee-agent-gateway-governancegoogle/skillsSkill24kyesterdayApache-2.0A222Claude Code, Codex
agent-platform-endpoint-managementgoogle/skillsSkill24kyesterdayApache-2.0A64Claude Code, Codex
gke-inferencegoogle/skillsSkill24kyesterdayApache-2.0A119Claude Code, Codex