rhecosystemappeng/agentic-collections/debug-rhel
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
Checking that the SKILL.md file is still in the repository.
Diagnose RHEL system issues including systemd service failures, SELinux denials, firewall blocking, and system resource problems. Automates multi-step diagnosis: journalctl log analysis, SELinux denial detection (ausearch), firewall rule inspection, and systemd unit status. Use this skill when applications fail on standalone RHEL/Fedora/CentOS hosts deployed via /rhel-deploy. Triggers on /debug-rhel command or phrases like "service won't start on RHEL", "SELinux blocking", "systemd failed", "firewall blocking".
Install
npx vskill@latest install rhecosystemappeng/agentic-collections/debug-rhelSKILL.md
The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/debug-rhel.
/debug-rhel Skill
Diagnose RHEL system issues by automatically gathering systemd status, journal logs, SELinux denials, and firewall configuration.
Overview
This skill diagnoses:
- systemd service failures
- SELinux access denials (AVC)
- Firewall port blocking
- Permission issues
- Resource constraints
Prerequisites
- SSH access to target RHEL host
- sudo privileges on the target host
- RHEL 8+, CentOS Stream, Rocky Linux, or Fedora
Critical: Human-in-the-Loop Requirements
See Human-in-the-Loop Requirements for mandatory checkpoint behavior.
Note: SSH/Bash Required
This skill operates on remote RHEL hosts via SSH, not local MCP servers. Unlike OpenShift/Podman skills, direct Bash commands with SSH are the correct approach here since MCP servers run locally and cannot access remote systems.
When to Use This Skill
Use /debug-rhel when applications fail on standalone RHEL, Fedora, or CentOS hosts. This skill automates multi-step diagnosis of systemd service failures, SELinux denials, firewall blocking, and system resource problems via SSH.
Workflow
Phase 1: SSH Connection
WAIT for user to confirm or provide host.
Connection verification:
If connection fails:
Phase 2: Identify Target Service
WAIT for user response.
If user selects "List failed services":
WAIT for user to select a service.
Phase 3: Get Service Status
[systemctl status output - last 10 lines]
WAIT for user confirmation before proceeding.
Phase 4: Analyze Journal Logs
[journalctl output]
WAIT for user confirmation before proceeding.
Phase 5: Check SELinux Denials
WAIT for user confirmation before proceeding.
Phase 6: Check Firewall
sudo firewall-cmd --permanent --add-port=[port]/tcp sudo firewall-cmd --reload
sudo firewall-cmd --permanent --add-service=[service] sudo firewall-cmd --reload
WAIT for user confirmation before proceeding.
Phase 7: Red Hat Insights 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 this phase silently and proceed to Phase 8.
Step 1: Use find_host_by_name with the hostname from RHEL_HOST to look up the system in Red Hat Insights.
Step 2: If system found, use get_system_cves with the system ID to check for known CVEs affecting this system.
Step 3: Use get_active_rules to get advisor configuration recommendations. Optionally use get_rule_by_text_search with error text found in Phase 4 logs to find relevant advisor recommendations.
WAIT for user confirmation before proceeding.
[If system not registered in Insights, just note it:]
Phase 8: Present Diagnosis Summary
Restart service
ssh [user]@[host] "sudo systemctl restart [service]"
Check status
ssh [user]@[host] "systemctl status [service]"
View logs
ssh [user]@[host] "journalctl -u [service] -f"
WAIT for user to select next action.
For common RHEL issues (systemd exit codes, SELinux denials, firewall), see debugging-patterns.md and selinux-troubleshooting.md.
Dependencies
Required MCP Servers
lightspeed-mcp(optional) - Red Hat Insights CVE and advisor checks in Phase 7
Related Skills
/rhel-deploy- redeploy after fixing issues/debug-container- debug Podman containers on the host
Reference Documentation
- references/selinux-troubleshooting.md - SELinux denial analysis
- references/rhel-deployment.md - RHEL deployment patterns
- references/debugging-patterns.md - Common error patterns
- references/prerequisites.md - Required tools and setup
Security
- Security scanPassed, 40 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/debug-rhel/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/debug-rhel)