rhecosystemappeng/agentic-collections/cluster-creator
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
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-creatorSKILL.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 Server | Used By This Skill? | Cluster Types | API Backend | |
|---|---|---|---|---|
openshift-self-managed | ✅ YES | OCP, SNO | Assisted Installer API (/api/assisted-install/v2) | |
openshift-ocm-managed | ❌ NO | ROSA, ARO, OSD | OCM 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-managedMCP server - ARO (Azure Red Hat OpenShift) - Use
openshift-ocm-managedMCP server - OSD (OpenShift Dedicated) - Use
openshift-ocm-managedMCP server
Verification:
- Check
openshift-self-managedinmcps.json - Verify
OFFLINE_TOKENset:test -n "$OFFLINE_TOKEN" - Test connection: Call
list_versionsto 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-inventoryskill - Managing workloads → Out of scope (use MCP tools or CLI with credentials from this skill)
- Troubleshooting → Use
/cluster-inventoryskill - 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:
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:
- Cluster Type: SNO (single-node) or HA (multi-node, 3+ control plane)
- 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
- Version: Call
list_versions, show "Full Support" versions - 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)
- Base Domain: Ask "Base domain? (e.g., example.com)" - User types domain directly. Validate: valid DNS format (validation)
- CPU Arch: x86_64 (default), aarch64, ppc64le, s390x
- 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)
- 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:
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:
- Display errors from cluster_info
- Consult troubleshooting.md for cluster status meanings and validation error diagnosis
- Offer options: fix/wait/abort
Step 13: Final Confirmation Before Installation
CRITICAL CHECKPOINT
Display:
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:
- Display error message
- Consult troubleshooting.md for error diagnosis
- If error is new/undocumented, note it for future documentation
- Offer retry/abort
Step 15: Monitor Installation
Display:
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
- SKILL.md in the repositoryCheckingocp-admin/skills/cluster-creator/SKILL.md
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
[](https://verified-skill.com/skills/rhecosystemappeng/agentic-collections/cluster-creator)