rhecosystemappeng/agentic-collections/cluster-creator

Claude Code and agent skill by rhecosystemappeng/agentic-collections

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

End-to-end OpenShift cluster creation using Red Hat Assisted Installer. Handles Single-Node OpenShift (SNO) and HA multi-node clusters on baremetal, vsphere, oci, nutanix. Use when: - "Create a new OpenShift cluster" - "Install OpenShift on my servers" - "Set up a single-node cluster for edge deployment" - "Deploy a production HA cluster" Complete workflow: cluster definition, ISO generation, host discovery/validation, role assignment, network configuration (VIPs, static networking), installation monitoring, credential retrieval. NOT for: - Listing existing clusters → Use `/cluster-inventory` skill - Modifying running clusters → Out of scope (Day-2 operations require direct cluster access) - Cluster upgrades (not yet supported)

Install

npx vskill@latest install rhecosystemappeng/agentic-collections/cluster-creator

SKILL.md

The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/cluster-creator.

cluster-creator

MCP-First Approach: This skill uses MCP tools from openshift-self-managed server. MCP tools have absolute priority.

CLI Tools Policy:

  • ✅ ALWAYS use MCP tools when available
  • ⚠️ Last resort only: CLI commands (oc, kubectl) may be attempted if no MCP alternative exists
  • ⚠️ Assume unavailable: CLI tools are likely not installed in the execution environment

Prerequisites

Required MCP Servers: openshift-self-managed

MCP Server Architecture: This skill uses openshift-self-managed MCP server exclusively. This server connects to Red Hat Assisted Installer API to create self-managed OpenShift clusters.

MCP ServerUsed By This Skill?Cluster TypesAPI Backend
openshift-self-managed✅ YESOCP, SNOAssisted Installer API (/api/assisted-install/v2)
openshift-ocm-managed❌ NOROSA, ARO, OSDOCM API (/api/clusters_mgmt/v1)

Required MCP Tools (all from openshift-self-managed): list_versions, create_cluster, cluster_info, set_cluster_vips, set_host_role, cluster_iso_download_url, install_cluster, cluster_credentials_download_url, cluster_logs_download_url, list_static_network_config, generate_nmstate_yaml, validate_nmstate_yaml, alter_static_network_config_nmstate_for_host

Environment Variables: OFFLINE_TOKEN (obtain here)

Cluster Types Supported:

  • OCP (OpenShift Container Platform) - Self-managed HA clusters (3+ control plane nodes)
  • Platforms: baremetal, vsphere, nutanix, oci
  • SNO (Single-Node OpenShift) - Self-managed single-node clusters
  • Platform: Always "none" (Red Hat API requirement)

NOT Supported by This Skill (different APIs, different workflows):

  • ROSA (Red Hat OpenShift Service on AWS) - Use openshift-ocm-managed MCP server
  • ARO (Azure Red Hat OpenShift) - Use openshift-ocm-managed MCP server
  • OSD (OpenShift Dedicated) - Use openshift-ocm-managed MCP server

Verification:

  1. Check openshift-self-managed in mcps.json
  2. Verify OFFLINE_TOKEN set: test -n "$OFFLINE_TOKEN"
  3. Test connection: Call list_versions to verify MCP server responsive

On Failure: Stop immediately, display setup instructions, ask "How to proceed? (setup/skip/abort)", wait for user input.

Security: Never expose credential values in output.


When to Use This Skill

Use when:

  • Creating new OpenShift cluster from scratch
  • Deploying SNO for edge/development
  • Setting up production HA cluster
  • Have servers ready for OpenShift installation

Do NOT use when:

  • Listing/inspecting clusters → Use /cluster-inventory skill
  • Managing workloads → Out of scope (use MCP tools or CLI with credentials from this skill)
  • Troubleshooting → Use /cluster-inventory skill
  • Upgrading clusters (not supported)

Workflow

End-to-end cluster creation with interactive guidance and validation.

Step 0: Initialize Task Tracking

Create tasks in logical order:

TaskCreate(subject: "#1 Verify prerequisites", description: "Check MCP servers, OFFLINE_TOKEN")
TaskCreate(subject: "#2 Gather cluster requirements", description: "Type, platform, version, name, domain, arch, SSH, hardware")
TaskCreate(subject: "#3 Configure networking", description: "CIDRs, VIPs, static IPs")
TaskCreate(subject: "#4 Review and confirm", description: "Display summary, get approval")
TaskCreate(subject: "#5 Create cluster definition", description: "Create in Assisted Installer")
TaskCreate(subject: "#6 Apply platform config", description: "VIPs, static configs")
TaskCreate(subject: "#7 Generate cluster ISO", description: "Generate ISO URL")
TaskCreate(subject: "#8 Discover and assign hosts", description: "Check discovery, roles")
TaskCreate(subject: "#9 Validate readiness", description: "Verify cluster ready")
TaskCreate(subject: "#10 Start installation", description: "Confirm, trigger install")
TaskCreate(subject: "#11 Monitor installation", description: "Track progress")
TaskCreate(subject: "#12 Retrieve credentials", description: "Download kubeconfig")

During execution: Update task status to "in_progress" when starting, "completed" when done.

Step 1: Prerequisites Check

TaskUpdate: Mark task #1 as in_progress

Prerequisites Check: Execute verification from Prerequisites section.

On Failure: If prerequisites fail, consult troubleshooting.md for common setup issues, then stop and report error to user.


Step 2: Gather Cluster Requirements

Context: This skill creates SELF-MANAGED clusters (OCP, SNO) via Assisted Installer. NOT for ROSA/ARO/OSD (use cluster-inventory for those).

Use AskUserQuestion to collect configuration:

  1. Cluster Type: SNO (single-node) or HA (multi-node, 3+ control plane)
  2. Platform:
  • SNO: Platform is automatically set to "none" (Red Hat API requirement) - DO NOT ask user
  • HA: Ask user to select: baremetal, vsphere, nutanix, or oci
  1. Version: Call list_versions, show "Full Support" versions
  2. Cluster Name: Ask "Cluster name? (or type your custom name directly)" - Suggest based on context (e.g., "prod-ocp", "edge-site-01", "dev-cluster") OR user types custom name. Validate: 1-54 chars, lowercase/numbers/hyphens, starts with letter (validation)
  3. Base Domain: Ask "Base domain? (e.g., example.com)" - User types domain directly. Validate: valid DNS format (validation)
  4. CPU Arch: x86_64 (default), aarch64, ppc64le, s390x
  5. SSH Key: Ask "How to provide?" Options: Generate new (recommended, save to cluster folder) | Existing file (path) | Paste | ⚠️ None (warn, require "PROCEED WITHOUT SSH" confirmation)
  6. Hardware: Confirm servers meeting host requirements are ready

Create folder: /tmp/{cluster_name}.{base_domain}/ (permissions 700), display location

Store all values for subsequent steps.


Step 3: Network Configuration

Ask: "How to configure networking?" Options: 1) Default (auto CIDRs, DHCP, HA: ask VIPs) | 2) Custom CIDRs (ask each, validate) | 3) Static IPs (Simple/Advanced/Manual modes, use generate_nmstate_yaml) | 4) Describe requirements (AI infers from text like "192.168.1.0/24, 100 pods")

Reference: Networking Guide has detailed examples for all 4 options


Step 4: Configuration Briefing

Display summary: Cluster Name, Type (SNO/HA), Version, Platform, Architecture, Domain, VIPs (if applicable), Networking (DHCP/Static)

Reference: Examples


Step 5: Confirmation Before Creation

CRITICAL CHECKPOINT

Ask: "Review configuration. Ready to create cluster definition?"

Options:

  • Yes: Proceed to Step 6
  • No: Allow parameter modification, re-display, re-ask
  • Abort: Exit gracefully

Step 6: Create Cluster Definition

Tool: create_cluster

Parameters: {name, version, base_domain, single_node, platform, cpu_architecture, ssh_public_key}

Output: Cluster UUID (cluster_id) - CRITICAL for all subsequent operations

Save metadata to /tmp/{cluster_name}.{base_domain}/cluster-info.json: cluster_id, cluster_name, base_domain, openshift_version, cluster_type, platform, cpu_architecture, created_at, api_url, console_url

Error Handling: Display error, allow retry/abort if duplicate name or invalid parameters.


Step 7: Apply Platform Configuration

7a. Set VIPs (HA + baremetal/vsphere/nutanix only):

  • Tool: set_cluster_vips
  • Parameters: {cluster_id, api_vip, ingress_vip}

7b. Apply Static Network (if configured):

  • For each host: Tool: alter_static_network_config_nmstate_for_host
  • Parameters: {cluster_id, nmstate_yaml, mac_address}
  • Verify: Call list_static_network_config

Reference: Providers, Networking


Step 8: Generate Cluster ISO

Tool: cluster_iso_download_url, Parameters: {cluster_id}

Save URL: /tmp/{cluster_name}.{base_domain}/iso-download-url.txt

Download ISO: Read the saved URL and download with safety flags:

bash
iso_url="$(cat /tmp/{cluster_name}.{base_domain}/iso-download-url.txt)"
case "$iso_url" in
https://*.openshiftapps.com/* | \
https://api.openshift.com/* | \
https://mirror.openshift.com/* )
: ;;
*)
echo "ERROR: ISO URL domain not in allowlist: $iso_url" >&2
exit 1
;;
esac
curl --fail --proto "=https" --tlsv1.2 -L -# \
-o /tmp/{cluster_name}.{base_domain}/discovery.iso \
-- "$iso_url"

Verify download: Check file exists and size > 0

Display: ISO ready at /tmp/{cluster_name}.{base_domain}/discovery.iso. Boot {expected_host_count} server(s) from this ISO, wait 5-10 min, say "check for hosts". Static configs applied in boot order.


Step 9: Wait for User to Boot Hosts

Display: "Waiting for you to boot hosts. When ready, say 'check for hosts'."

Wait for user trigger - No automatic polling.


Step 10: Check Host Discovery

Tool: cluster_info Parameters: {cluster_id}

Parse: Extract hosts array, count discovered hosts

Display: Table with Host #, Hostname, CPU, RAM, Disk, Status

Validation:

  • SNO: Requires exactly 1 host
  • HA: Minimum 3 hosts

If insufficient: Ask to wait/proceed/abort.

Reference: Host Requirements


Step 11: Host Role Assignment

SNO: Single host auto-assigned "master"

HA:

  • Suggest first 3 hosts as "master"
  • Additional hosts as "worker"
  • Allow user override

Tool: set_host_role (for each host) Parameters: {cluster_id, host_id, role}


Step 12: Validate Cluster Readiness

Tool: cluster_info

Check: Cluster status should be "ready"

If validation fails:

  1. Display errors from cluster_info
  2. Consult troubleshooting.md for cluster status meanings and validation error diagnosis
  3. Offer options: fix/wait/abort

Step 13: Final Confirmation Before Installation

CRITICAL CHECKPOINT

Display:

Ready to Start Installation
Cluster: {cluster_name}
Hosts: {count}
Expected Duration: 45-60 minutes
WARNING: Starting installation is irreversible!
Cannot pause or cancel once started.

Ask: "Start installation now?"

Options:

  • YES - Start now: Proceed to Step 14
  • Wait - Review first: Display config, re-ask
  • Abort: Exit skill

Step 14: Start Installation

Tool: install_cluster Parameters: {cluster_id}

On Success: Display "Installation started!"

On Error:

  1. Display error message
  2. Consult troubleshooting.md for error diagnosis
  3. If error is new/undocumented, note it for future documentation
  4. Offer retry/abort

Step 15: Monitor Installation

Display:

Installation Phases:
1. Preparing
2. Installing (bootstrapping)
3. Installing control plane
4. Finalizing
5. Completed
How to monitor:
- Say "check status" anytime
- Or use background monitoring
Background monitoring? (yes/no)

If background: Use Task tool with run_in_background=true

If manual: Wait for "check status", then call cluster_info, display progress, repeat until "installed" or "error"

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
48
Repository forks
32
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rhecosystemappeng/agentic-collections/cluster-creator/badge)](https://verified-skill.com/skills/rhecosystemappeng/agentic-collections/cluster-creator)

Something wrong with this skill or its page? Tell us.