<h1 align="center">
<a href="https://prompts.chat">
Create a Kafka topic in a Confluent Cloud cluster
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
Before starting: If any tool call fails with "Missing required environment variables", tell the user:
"Set your Confluent Cloud API credentials — generate at https://confluent.cloud/settings/api-keys, then export CONFLUENT_CLOUD_API_KEY=... CONFLUENT_CLOUD_API_SECRET=... and restart Claude Code."
Help me create a Kafka topic in Confluent Cloud.
Read the file .confluent-context.json in the project root. If it exists and contains an environment_id, use that environment automatically and tell me: "Using active environment {name} ({id}). Run /environments-use to change."
If the file doesn't exist or has no environment set, call list_environments and ask me to pick one.
Call list_clusters for the chosen environment. If only one cluster exists, use it automatically. If multiple, present them and ask me to pick one. If none exist, suggest /clusters-create.
First, check .confluent-context.json for a stored API key for this cluster (under api_keys[cluster_id]). If found, use it automatically and tell me: "Using stored API key {api_key} for cluster {cluster_id}."
If no stored key is found, call list_api_keys with the cluster's resource_id to check for existing cluster-scoped API keys.
create_api_key (credentials are saved automatically).create_api_key. Credentials are saved automatically to context.Use the AskUserQuestion tool to present an interactive form in a single call:
Question 1 — Topic name (header: "Topic")
orders.created, user.events)Question 2 — Partitions (header: "Partitions")
Question 3 — Retention (header: "Retention")
Call create_topic with the cluster ID, environment ID, cluster API key, cluster API secret, topic name, partitions count, and retention_ms:
Show the result:
Suggest next steps:
/topics-list"