Skip to main content
skill CX Codex

managing-amazon-msk — Claude Code skill: Amazon MSK ops

Teaches a coding agent how Amazon MSK Provisioned behaves, so it stops treating Standard and Express brokers as the same thing.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aws/agent-toolkit-for-aws --skill managing-amazon-msk -a claude-code
Open on GitHub

What managing-amazon-msk does

The skill hands an agent working notes on Amazon MSK Provisioned, covering both Standard and Express brokers. Everything sits in a set of markdown references: performance troubleshooting, consumer lag, storage and tiered storage, cluster sizing, Kafka client settings, cluster configs, topic management, MSK Replicator, CloudWatch alarms, patching and rolling restarts, Streaming Tables for S3 Tables, and data delivery to a plain S3 bucket.

It works by routing. The agent checks the broker type with aws kafka describe-cluster-v2 and looks at whether InstanceType starts with express., then opens the matching file. With the AWS MCP server connected, commands run through it and get logged; otherwise the agent falls back to the AWS CLI or the shell. Check that fallback before you install, since a sandbox without credentials turns the references into reading material.

Scope has edges. MSK Connect is out, and the skill sends you to the docs for it. Migrations belong to migrate-to-msk; Iceberg sink questions go to Flink. Serverless appears only for S3 Tables and data delivery. Express clusters have no customer-managed EBS, so any advice to grow a volume or buy provisioned throughput there is wrong.

What it helps with

  • diagnose a rising consumer lag on a running cluster
  • pick between Standard and Express and count the brokers you need
  • set up cross-account replication with MSK Replicator for DR
  • ship topic data to S3 without Kafka Connect or Firehose
  • plan patching and a rolling restart with minimal disruption

Example prompts for the agent

  • Our Express cluster has consumer lag climbing. Where do I look and what do I fix?
  • We need active-active replication across two accounts. How many partitions should MSK Replicator get?
  • Set up data delivery from this topic to an S3 bucket, including the IAM role and output key template.

How to install managing-amazon-msk

1Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill managing-amazon-msk -a claude-code

2Manually: put the files in place

~/.claude/skills/managing-amazon-msk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/managing-amazon-msk/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about managing-amazon-msk

How do I install managing-amazon-msk in Claude Code?

Run npx skills add aws/agent-toolkit-for-aws --skill managing-amazon-msk -a claude-code. The skill lands at ~/.claude/skills/managing-amazon-msk/SKILL.md.

What does managing-amazon-msk do?

It gives the agent reference files on running Amazon MSK Provisioned: performance, lag, storage, sizing, clients, replication and monitoring. The agent picks the right file based on broker type.

Does it cover MSK Connect or migrations?

No. For MSK Connect it points you to the documentation, and migration work goes to the separate migrate-to-msk skill.

Source text

SKILL.md · Apache-2.0
---
name: managing-amazon-msk
description: >
  Operates Amazon MSK Provisioned clusters (Standard and Express brokers).
  Required for ANY MSK Provisioned task — training data conflates Standard and
  Express.
  Covers performance, consumer lag, storage, traffic shaping; sizing Standard vs
  Express; Kafka client tuning; CloudWatch alarms; cluster configs; maintenance,
  patching, rolling restarts; topic management; MSK Replicator setup for DR and
  active-active/active-passive replication (same-/cross-account), including
  throughput and partition sizing; Streaming Tables for S3 Tables and Data
  Delivery for General Purpose S3 — setup, IAM, monitoring.
  Prefer Flink for Kafka Iceberg sink questions. Migrations: use migrate-to-msk.
  Triggers: MSK Provisioned, Kafka, `kafka.*`/`express.*` types, AWS/Kafka
  namespace, cross-cluster replication, Kafka to Iceberg on S3 Tables, Kafka to
  S3, lakehouse, data lake from Kafka, Kafka Connect S3 Sink or Firehose
  alternative.
  DO NOT USE for MSK Connect — search docs instead. Serverless: only S3
  Tables/data delivery eligibility.
---

# Amazon MSK

## Overview

Domain expertise for operating Amazon MSK Provisioned clusters with Standard and Express broker types. Covers performance troubleshooting, consumer lag diagnosis, storage management, cluster sizing, client configuration, and CloudWatch monitoring.

Execute commands using available tools from the AWS MCP server when connected — it provides sandboxed execution, audit logging, and observability. When the MCP server is not available, fall back to the AWS CLI or shell as needed.

**Standard brokers** use customer-managed EBS volumes for storage. You choose instance types (kafka.m5/m7g families), provision EBS, and manage storage scaling.

**Express brokers** use instance types prefixed with `express.m7g` and are the default recommendation for almost all MSK workloads — they typically cost less, not just less effort. Up to 3x ingress per broker ([MSK Express broker types](https://docs.aws.amazon.com/msk/latest/developerguide/msk-broker-types-express.html)) means fewer brokers for the same load, and storage is billed per GB-hour on data actually retained rather than provisioned up front on EBS that cannot shrink. They also scale 20x faster, rebalance partitions 180x faster ([Intelligent Rebalancing](https://docs.aws.amazon.com/msk/latest/developerguide/intelligent-rebalancing-self-balancing-paritions.html)), recover 90% quicker ([MSK Express broker types](https://docs.aws.amazon.com/msk/latest/developerguide/msk-broker-types-express.html)), and have no maintenance windows. Express brokers have NO customer-managed EBS — do NOT recommend EBS expansion or provisioned throughput for Express clusters. Express brokers enforce fixed replication factor of 3 and `min.insync.replicas=2`. See [size-and-choose-cluster.md](references/size-and-choose-cluster.md) for the full Standard vs Express decision framework.

## Which Workflow Do You Need?

Determine the broker type first: `aws kafka describe-cluster-v2 --cluster-arn <arn>`. Check `Provisioned.BrokerNodeGroupInfo.InstanceType` — if it starts with `express.`, it is an Express cluster.

| Customer Intent | Reference |
|---|---|
| High CPU, high latency, slow cluster, traffic shaping | [troubleshoot-performance.md](references/troubleshoot-performance.md) |
| Consumer lag increasing, rebalance storms, stuck consumer groups | [troubleshoot-consumer-lag.md](references/troubleshoot-consumer-lag.md) |
| Disk filling up, retention planning, tiered storage | [manage-storage.md](references/manage-storage.md) |
| Choosing Standard vs Express, sizing a cluster, partition limits, broker count, monthly cost | [size-and-choose-cluster.md](references/size-and-choose-cluster.md) |
| Producer/consumer configuration, IAM/SCRAM/TLS auth | [configure-clients.md](references/configure-clients.md) |
| Creating/applying MSK configurations (`server.properties`); custom domain names on brokers via `custom.advertised.listeners` (advertised listeners, static/custom bootstrap endpoint) — validation rules, apply/rollback, scaling; migrating from the dynamic per-broker `kafka-configs.sh` override to the static property | [configure-cluster.md](references/configure-cluster.md) |
| Client-side connectivity for a custom domain: NLB + ACM certificate + Route 53 fronting, TLS handshake/termination, mTLS through an NLB, cross-zone load balancing | [configure-clients.md](references/configure-clients.md) (Custom Domain Name Connectivity section) |
| Create, update, delete, list, or describe Kafka topics; when to use the native topic APIs / `CfnTopic` vs. a Kafka admin client | [manage-topics.md](references/manage-topics.md) |
| MSK Replicator setup, migration, DR, active-active/active-passive, cross-account replication, self-managed-to-MSK or MSK-to-MSK, loop-prevention/topic-naming behavior | [msk-replicator.md](references/msk-replicator.md) |
| Replication throughput per partition, how many partitions a replicator needs, why replicator scaling isn't increasing throughput, replicator quotas (topics, ingress, record size), `ReplicationLatency`/`MessageLag`/`ReplicatorThroughput` | [msk-replicator.md](references/msk-replicator.md) (Size partition count section) |
| Setting up monitoring, dashboards, alarms | [monitor-and-alarm.md](references/monitor-and-alarm.md) |
| Full CloudWatch metric list (Standard or Express) | Prefer [monitor-and-alarm.md](references/monitor-and-alarm.md) for strategic recommendations and how to interpret metrics, only search documentation if you need to understand a metric not included in this reference file ([MSK Standard CloudWatch Metrics](https://docs.aws.amazon.com/msk/latest/developerguide/metrics-details.html), [MSK Express CloudWatch Metrics](https://docs.aws.amazon.com/msk/latest/developerguide/metrics-details-express.html)) for full list |
| Rolling restart impact, patching, maintenance resilience | [maintenance-operations.md](references/maintenance-operations.md) |
| Deliver streaming data to Apache Iceberg tables on S3 Tables with low cost in a fully managed service (Streaming Tables) — setup, IAM, schema, create/update/delete/list/describe channels | [streaming-tables.md](references/streaming-tables.md) |
| Deliver topic data to S3 bucket as JSON/ByteArray/String objects with low cost in a fully managed service (Data Delivery for General Purpose S3 buckets) — setup, IAM, output key templates, create/update/delete/list/describe channels | [data-delivery-for-general-purpose-s3.md](references/data-delivery-for-general-purpose-s3.md) |
| Build a lakehouse / data lake from Kafka; make streaming data queryable in Athena | [streaming-tables.md](references/streaming-tables.md) |
| Alternative to Kafka Connect S3 Sink or Amazon Data Firehose for MSK; zero-ops streaming delivery to S3 | [data-delivery-for-general-purpose-s3.md](references/data-delivery-for-general-purpose-s3.md) |
| Streaming Tables / Data Delivery CloudWatch metrics and alarms, DLQ errors, failed deliveries, channel state transitions, freshness lag | [streaming-tables-troubleshooting.md](references/streaming-tables-troubleshooting.md) |
| "Can I use Streaming Tables / Data Delivery on MSK Serverless / Standard brokers?" — eligibility routing | [streaming-tables.md](references/streaming-tables.md) (answer is always: Express brokers only, use Firehose, Flink, or Kafka Connect for Standard and Serqverless - [Firehose integration for Amazon MSK](https://docs.aws.amazon.com/msk/latest/developerguide/integrations-kinesis-data-firehose.html)) |
| What are the current supported Kafka versions for MSK? | [Supported Apache Kafka versions](https://docs.aws.amazon.com/msk/latest/developerguide/supported-kafka-versions.html) |
| Does MSK support KRaft clusters, and how do I migrate between ZooKeeper and KRaft mode clusters? | [zk-to-kraft-migration.md](references/zk-to-kraft-migration.md) |
| What are the current quotas for MSK Express (ingress, egress, partitions, broker count, etc.)? | [MSK Express Quotas](https://docs.aws.amazon.com/msk/latest/developerguide/limits.html#msk-express-quota) |
| What are the current quotas for MSK Standard (partitions, broker count, etc.)? | [MSK Standard Quotas](https://docs.aws.amazon.com/msk/latest/developerguide/limits.html#msk-provisioned-quota), and [MSK Standard best practices](https://docs.aws.amazon.com/msk/latest/developerguide/bestpractices.html#standard-server-side-considerations) for partition count limits |
| What broker-level configuration changes can I make on MSK Express or Standard brokers? | [MSK Configuration](https://docs.aws.amazon.com/msk/latest/developerguide/msk-configuration.html) |

## Available scripts

- **`scripts/msk_sizing.py`** — **MUST** be run for any sizing question (broker count, instance choice, cost). Prices from the live AWS Pricing API when AWS credentials with `pricing:GetProducts` are available, and falls back to an embedded `us-east-1` snapshot when they are not, so it runs with or without credentials. See [size-and-choose-cluster.md](references/size-and-choose-cluster.md) for the required workflow and script reference.

## Guardrail — where this skill's own files live (MCP vs local install)

This skill can be loaded two ways, and they resolve the skill's **own bundled files** — the `references/` documents and the `scripts/` files
from different places. Determine how the skill was loaded before you read a reference or run a script:

- **Loaded through the AWS MCP `retrieve_skill` tool call.** The skill is **not
  installed on the local filesystem**; its reference files and scripts do not
  exist on disk. You MUST fetch each reference or script through the same
  `retrieve_skill` tool by passing the `file` parameter (for example,
  `file="references/configure-clients.md"` or `file="scripts/msk_sizing.py"`),
  and run a script from the content that tool returns. Do NOT `file_read` these
  paths from the local or working directory, and do NOT search the filesystem
  for them — they are not there, and any local file that happens to match the
  name is unrelated to this skill.
- **Installed locally** (the skill lives in a local skills directory such as
  `.claude/skills/managing-amazon-msk/`, `~/.claude/skills/managing-amazon-msk/`, or
  `.kiro/skills/managing-amazon-msk/`). Read references and run scripts from the
  local skill directory using the relative paths shown throughout this
  documentation.

This distinction applies **only** to the skill's own packaged files. Every artifact
created during a session or supplied by users are read from and written to
the user's working directory regardless of how the skill was loaded. Never
fetch or write customer data through `retrieve_skill`.

## Common Workflows

**Create/apply Amazon MSK configurations and set custom domain names** — creating an Amazon MSK configuration (`server.properties` with the `fileb://` real-newline requirement), applying it with `update-cluster-configuration`, and setting broker custom domain names via `custom.advertised.listeners`: see [configure-cluster.md](references/configure-cluster.md). For the NLB/certificate/DNS connectivity that fronts a custom domain, see [configure-clients.md](references/configure-clients.md).

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Similar skills

All skills for Cloud: AWS, Azure, GCP →

From the same set137

processing-s3-uploads-with-step-functions Deploys an S3 upload flow that sends smaller files to Lambda and larger files to Fargate through Step Functions. CX Codex +1 5,000installs amazon-documentdb An AWS skill that runs DocumentDB work end to end: cluster setup, TLS and VPC fixes, MongoDB migrations, slow-query diagnosis and a 41-check review. CX Codex +1 5,000installs deploying-custom-domain-rest-api Deploys an AWS Regional REST API with a custom domain, Lambda backend function, and request authorizer using the AWS CLI. CX Codex +1 5,000installs amazon-dynamodb This skill walks an agent through designing, reviewing and debugging a DynamoDB data layer: access patterns, keys and GSIs, plus a monthly cost estimate. CX Codex +1 5,100installs rds-oss Guides provisioning, version upgrades, Blue/Green switchovers, and pricing plans for Amazon RDS open-source database engines. CX Codex +1 5,000installs amazon-keyspaces Provides Amazon Keyspaces compatibility checks, capacity guidance, and AWS CLI mutation workflows. Useful when migrating from Apache Cassandra or configuring tables. CX Codex +1 5,000installs developing-applications-on-managed-service-for-apache-flink This skill guides development for Amazon Managed Service for Apache Flink and helps answer service-specific questions about configuration, resources, and operations. CX Codex +1 4,900installs aws-network-monitoring Installs and troubleshoots CloudWatch Network Flow Monitor agents on EC2: IAM policy, the SSM Distributor route, metric checks, and the errors that follow. CX Codex +1 4,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor