rhecosystemappeng/agentic-collections/rhel-deploy
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
CRITICAL: When user types /rhel-deploy, use THIS skill immediately. This skill deploys applications to standalone RHEL/Fedora/CentOS systems (NOT OpenShift) using Podman containers with systemd, or native dnf builds. Handles SSH connectivity, SELinux, firewall-cmd, and systemd unit creation. Triggers: /rhel-deploy command, 'deploy to RHEL', 'deploy to Fedora', 'deploy to my server via SSH'.
Install
npx vskill@latest install rhecosystemappeng/agentic-collections/rhel-deploySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/rhel-deploy.
/rhel-deploy Skill
IMPORTANT: This skill is for deploying to standalone RHEL/Fedora/CentOS systems via SSH. If user invoked /rhel-deploy, skip any OpenShift-related steps and proceed directly with SSH-based deployment.
Deploy applications to standalone RHEL systems using Podman containers or native builds with systemd service management.
Overview
Deployment Strategies (user chooses one):
- Container - Build/pull container image, run with Podman, manage with systemd
- Native - Install dependencies with dnf, run application directly, manage with systemd
Prerequisites
- SSH access to target RHEL host with sudo privileges
- RHEL 8+, CentOS Stream, Rocky Linux, or Fedora
- For container deployments: Podman installed on target
- For native deployments: Required development tools available via dnf
When to Use This Skill
Use /rhel-deploy when deploying applications to standalone RHEL, Fedora, or CentOS systems via SSH. This skill handles Podman container or native dnf deployments with systemd service management, SELinux, and firewall configuration.
Critical: Human-in-the-Loop Requirements
See Human-in-the-Loop Requirements for mandatory checkpoint behavior.
Workflow
Phase 0: Introduction
Present the workflow overview: Connect → Analyze → Strategy → Build/Deploy → Verify. Describe Container (Podman + systemd) vs Native (dnf + systemd) strategies. Ask: Ready to begin? (yes/no)
WAIT for user confirmation before proceeding.
Phase 1: SSH Connection
Connection verification:
If connection fails, troubleshoot: host reachability, SSH key configuration, firewall port 22.
Store RHEL_HOST, RHEL_USER, RHEL_PORT in session state.
Phase 2: Target Host Analysis
WAIT for user confirmation before proceeding.
Commands to gather information:
Store RHEL_VERSION, PODMAN_AVAILABLE, SELINUX_STATUS, FIREWALL_STATUS in session state.
Phase 2b: Red Hat Insights Pre-Deploy Check (Optional)
This phase runs only if the `lightspeed-mcp` server is available. Use ToolSearch to check for Lightspeed MCP tools. If not available, skip silently and proceed to Phase 3.
Step 1: Use find_host_by_name with the target hostname to look up the system in Red Hat Insights.
Step 2: If found, use get_system_cves to check for critical/important CVEs on the target.
Step 3: Use get_rhel_lifecycle to verify the target RHEL version is still supported.
Append to Phase 2 output:
These are informational warnings only — they do not block deployment.
Phase 3: Strategy Selection
WAIT for user confirmation before proceeding.
If Podman not installed and user selects Container:
sudo dnf install -y podman
WAIT for user confirmation before proceeding.
Store DEPLOYMENT_STRATEGY in session state.
CONTAINER PATH (If DEPLOYMENT_STRATEGY is "Container")
Phase 4a-1: Image Selection
WAIT for user confirmation before proceeding.
For options 1 and 2 (building an image):
If no Containerfile/Dockerfile exists in the project, delegate to /recommend-image:
Use the BUILDER_IMAGE output from /recommend-image as the base image in the Containerfile.
For build on target:
For existing image:
Phase 4a-2: Container Configuration
WAIT for user confirmation before proceeding.
Phase 4a-3: Systemd Unit Creation
WAIT for user confirmation before proceeding.
Steps to execute:
- Read the appropriate template from
templates/systemd/ - Substitute
${APP_NAME},${PORT},${IMAGE}with session state values - Transfer the generated unit file to the target host
- Enable and start the service
Phase 4a-4: Firewall Configuration
Open port permanently
sudo firewall-cmd --permanent --add-port=[port]/tcp
Reload firewall
sudo firewall-cmd --reload
Verify
sudo firewall-cmd --list-ports
WAIT for user confirmation before proceeding.
NATIVE PATH (If DEPLOYMENT_STRATEGY is "Native")
Phase 4b-1: Dependency Installation
ssh [target] "sudo dnf install -y [packages]"
WAIT for user confirmation before proceeding.
Phase 4b-2: Application Deployment
ssh [target] "sudo mkdir -p /opt/[app-name]" rsync -avz --exclude node_modules --exclude .git --exclude __pycache__ ./ [target]:/tmp/[app-name]-deploy/ ssh [target] "sudo cp -r /tmp/[app-name]-deploy/ /opt/[app-name]/" ssh [target] "cd /opt/[app-name] && npm install --production" # language-specific ssh [target] "sudo chown -R [service-user]:[service-user] /opt/[app-name]" ssh [target] "sudo semanage fcontext -a -t bin_t '/opt/[app-name](/.)?'" ssh [target] "sudo restorecon -Rv /opt/[app-name]"
WAIT for user confirmation before proceeding.
Phase 4b-3: Native Systemd Unit
WAIT for user confirmation before proceeding.
Steps to execute:
- Read the template from
templates/systemd/systemd-native.service - Substitute all variables with session state values
- Transfer the generated unit file to the target host
- Enable and start the service
Phase 4b-4: Firewall Configuration
Same as container path - open required port with firewall-cmd.
COMPLETION (Both paths converge here)
Phase 5: Completion
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrh-developer/skills/rhel-deploy/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.
Extension points
hookPre/post lifecycle hooks
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/rhel-deploy)