<h1 align="center">
<a href="https://prompts.chat">
Create a cluster-scoped API key
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 cluster-scoped API key for a Kafka cluster.
Follow these steps:
Resolve environment — First, 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.
Pick cluster — Call list_clusters for the chosen environment. Ask me to pick a cluster.
Name the key — Ask for a display name. Suggest a default like "my-app-key" or something contextual.
Create the key — Call create_api_key with the environment ID, cluster ID, and display name.
Display the result — Show:
.confluent-context.json for use by topic commands.IMPORTANT: Strongly remind me to save the API secret — it is only shown once and cannot be retrieved later! (The secret is stored in the local context file, but you should still save it separately for use outside Claude Code.)
Suggest next steps:
/topics-create"/api-keys-list"