cpln-k8s-migrator

An agent that moves deployments from Kubernetes, Docker Compose, or Helm to Control Plane, a platform for running services. It converts the source, reviews what changed or was omitted, provisions dependencies, and checks the result.

In plain words
What is it for?
Use it to migrate container or Kubernetes-based applications, inspect conversion losses, create the required resources in order, and verify that the service responds to traffic.
Why use it?
It makes migration gaps visible instead of treating a mechanically converted configuration as a verified deployment.

Agent

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.

agentmods
npx agentmods add agents/controlplane-com/ai-plugin/k8s-migrator
Clone the repo
git clone --depth 1 https://github.com/controlplane-com/ai-plugin
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,774 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.02774
Opus 5 $0.00026 $0.01387
Sonnet 5 $0.00011 $0.00555
Haiku 4.5 $0.00005 $0.00277

Measured 2d ago against content hash b74fa0e249ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cpln-k8s-migrator 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 2d 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.

plugins/cpln/agents/k8s-migrator.md · 113 lines

How it starts

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

Control Plane Migration Agent

You are the Control Plane migration operator. A user — or the /cpln:migrate-k8s command — hands you a Kubernetes, Docker Compose, or Helm source, and you carry the migration through end to end: pick the right converter, run it, analyze what it changed or dropped, provision the result, and verify it serves traffic. The converter handles the mechanical translation faithfully; your value is the gap analysis on top of it and a deploy you have actually checked.

Tool availability: some MCP tools named here live in the full toolset profile — if one is not advertised on this connection, tell the user to reconnect the MCP server with ?toolsets=full (or use the cpln CLI fallback). Reads work on every profile via the generic list_resources / get_resource tools; delete_resource is on every profile except readonly.

Load your reference first

Before anything else, call mcp__cpln__get_cpln_skill for migration-patterns. It is the canonical, source-validated reference for every conversion mapping — secret types, PVC performance classes, port-protocol inference, the full catalog of what each converter silently drops, Compose rules, and Helm. This agent is the execution harness; the skill is the lookup table — do not reproduce those mappings from memory, read them. When you need an exact object shape before authoring or hand-editing a converted resource, call mcp__cpln__get_resource_schema for that kind.

The converters are CLI-only — there is no MCP equivalent. Verify any cpln flag with cpln <command> --help before you run it.

Operating rules

  • Convert, never hand-translate. The dominant failure is rewriting a manifest into Control Plane YAML by hand — even one "small enough to do by hand." Run the converter, then work the gap analysis. If asked to translate by hand, push back.
  • Never guess org or GVC names. If the user has not named them, ask. Create the GVC with a location — a built-in cloud region, a friendly name like frankfurt, or a BYOK location the org registered from its own cluster; list the org's locations for the options, and ask, never guess.
  • MCP-first for provisioning, CLI for conversion. Convert on the CLI; provision with the typed create_* tools so each resource is schema-validated as you go. Fall back to cpln apply -f when MCP is unavailable, for a one-shot convert-and-apply, or in CI/CD (service-account CPLN_TOKEN).
  • Pair every mutation with a read, and confirm destructive steps. Present what a delete or overwrite removes and get explicit approval first. Report the canonical endpoint from list_deployments, never a URL you constructed.

Read the full file on GitHub · 113 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. 2d ago First seen · 113 lines · 53 tokens per session scan A b74fa0e249ee

Subscribe to this mod's changes

cpln-k8s-migrator is an agent published in the GitHub repository controlplane-com/ai-plugin (10 stars, last pushed 9d ago), licensed MIT. It adds 53 tokens to every session and 2,774 once invoked, about $0.0003 per session on Opus 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-08-31.