root-cause-analysis
Perform root cause analysis and log analysis for failed jobs.
Skill by redhat-et
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/redhat-et-root-cause-analysis-df3baf
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/root-cause-analysis
What's inside
- Skill name
root-cause-analysis- Description
- Perform root cause analysis and log analysis for failed jobs. Use when user wants to investigate job failures, analyze logs, find root causes, debug errors, troubleshoot infrastructure issues, or understand why a job failed. Investigate AAP job failures using Splunk correlation and AgnosticD/AgnosticV configuration analysis. Correlates local Ansible/AAP job logs with Splunk OCP pod logs and retrieves relevant configuration from GitHub repositories.
- License
- Apache-2.0
- Instructions
- 244 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "root-cause-analysis" does not match folder "v3"
- allowed-tools: must be a space-separated string
Files (13)
- README.md
- SKILL.md
- requirements.txt
- correlation.schema.json · schemas/
- job_context.schema.json · schemas/
- summary.schema.json · schemas/
- __init__.py · scripts/
- cli.py · scripts/
- config.py · scripts/
- correlator.py · scripts/
- job_parser.py · scripts/
- splunk_client.py · scripts/
- step4_fetch_github.py · scripts/
SKILL.md (first lines)
# Root Cause Analysis
Investigate failed jobs by correlating Ansible Automation Platform (AAP) job logs with Splunk OCP pod logs and analyzing AgnosticD/AgnosticV configuration to identify root causes.
## Automatic Execution
When a user asks to analyze a failed job, execute these steps automatically.
The skill's base path is provided when this skill is invoked. Run scripts relative to this folder.
### Setup (run once per session if .venv doesn't exist)
```bash
# Create virtual environment and install dependencies
python3 -m venv .venv && .venv/bin/pip install -q -r requirements.txt
```
### Step 1-3: Run the analysis CLI
```bash
# Option 1: By job ID (searches JOB_LOGS_DIR automatically)
.venv/bin/python scripts/cli.py analyze --job-id <JOB_ID>
# Option 2: By explicit path
.venv/bin/python scripts/cli.py analyze --job-log <path-to-job-log>
```
The skill automatically searches for job logs in the configured `JOB_LOGS_DIR` (set in `.env`).
### Step 4: Fetch GitHub Data (Automated)
```bash
# Fetch all GitHub files automatically via GitHub API
.venv/bin/python scripts/step4_fetch_github.py --job-id <JOB_ID>
```
This script automatically parses job metadata, fetches AgnosticV configs and AgnosticD workload code, and reports success/404 status.
**Output**: `.analysis/<job-id>/step4_github_fetch_history.json`
**MANDATORY: GitHub MCP Tools for 404 Verification**:
- **ALWAYS check 404 files via MCP server** when step4 reports `"error": "all_paths_failed"` or any `"status": "404"` in `paths_tried`
- **DO NOT skip 404 verification** - the script may have incorrect path parsing
- **Process**:
1. Check parent directory first using `mcp__github__get_file_contents` to list actual folder/file names (reveals case sensitivity, hyphens vs underscores)
2. If parent check fails, use `mcp__github__search_code` to locate files by filename or partial path
3. Document findings: wrong format → parser bug, missing → truly missing, empty → rare
4. **No assumptions**: "empty", "test", "demo" in names are just labels - always verify 404s
### Step 5: Analyze and Generate Summary
Read outputs from `.analysis/<job-id>/` and perform root cause analysis. See Step 5 section below for detailed requirements.
## Manual Usage
From this skill's directory:
```bash
# Setup virtual environment (one time)
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
# Analyze by job ID (uses JOB_LOGS_DIR to find the file)
.venv/bin/python scripts/cli.py analyze --job-id 1234567
# Or analyze with explicit path
.venv/bin/python scripts/cli.py analyze --job-log /path/to/job_123.json.gz
```
## Configuration
**IMPORTANT**: All credentials (GitHub token and Splunk credentials) should be set in `.claude/settings.json` (project-level) or `~/.claude/settings.json` (global), NOT in `.env` files.
Add the following environment variables to your Claude Code settings file:
**Project-level**: `.claude/settings.local.json` in your project root
**Or global**: `~/.claude/settings.json`
```json
{
"env": {
"JOB_LOGS_DIR": "/path/to/your/extracted_logs",
"GITHUB_TOKEN": "your-github-token",
"SPLUNK_HOST": "host-url",
"SPLUNK_USERNAME": "your-username",
"SPLUNK_PASSWORD": "your-password",
"SPLUNK_INDEX": "your_aap_index",
"SPLUNK_OCP_APP_INDEX": "your_ocp_app_index",
"SPLUNK_OCP_INFRA_INDEX": "your_ocp_infra_index",
"SPLUNK_VERIFY_SSL": "false"
}
}
```
---
## Steps 1-3: Automated Analysis (Python Scripts)
**Step 1**: Parse job log → Extract job ID, GUID, namespace, failed tasks, time window
**Step 2**: Query Splunk → Fetch pod logs from namespace within job time window
**Step 3**: Correlate → Merge AAP and Splunk events into unified timeline
**Outputs**: `.analysis/<job-id>/step1_job_context.json`, `step2_splunk_logs.json`, `step3_correlation.json`
---
## Step 4: Fetch GitHub Files (Automated)
Script `step4_fetch_github.py` automatically parses job metadata, fetches AgnosticV configs and AgnosticD workload code, and reports success/404 status.
**Output**: `.analysis/<job-id>/step4_github_fetch_history.json`
**GitHub MCP Verification for 404 Errors**:
When step4 reports `"error": "all_paths_failed"` or any `"status": "404"` in `paths_tried`, you **MUST** verify using MCP tools:
2. **If parent check fails**: Use `mcp__github__search_code` to locate files by filename or partial path. Use `mcp__github__search_repositories` only if task_path parsing failed.
4. **No assumptions**: "empty", "test", "demo" in names are just labels - always verify 404s before concluding files are missing.From redhat-et/rhdp-rca-plugin, Apache-2.0.
More from redhat-et/rhdp-rca-plugin
- 0.544score
rca-annotator
redhat-et
Structured annotation tool that walks users through reviewing and labeling root-cause-analysis outputs, with evidence traceability, difficulty calibration…
SkillCFreshness: C★ 13Claude Code +9 - 0.542score
incident-investigator
redhat-et
End-to-end incident investigation workflow that fetches logs and performs root cause analysis.
SkillCFreshness: C★ 13Claude Code +9 - 0.542score
context-fetcher
redhat-et
Retrieve configuration and documentation context from GitHub, Atlassian Confluence and Slack for job investigation.
SkillCFreshness: C★ 13Claude Code +9 - 0.541score
feedback-capture
redhat-et
Ask user if they would like to provide feedback.
SkillCFreshness: C★ 13Claude Code +9 - 0.540score
log-fetcher
redhat-et
The log fetcher skills allow to fetch logs via a SSH connection.
SkillCFreshness: C★ 13Claude Code +9 - 0.536score
root_cause_analysis
redhat-et
Perform root cause analysis and log analysis for failed jobs.
SkillCFreshness: C★ 13Claude Code +9 - 0.535score
template-skill
redhat-et
A minimal template for creating new AIOps skills.
SkillCFreshness: C★ 13Claude Code +9
Signals
- Stars
- 13
- Forks
- 11
- Open issues
- 5
- Last commit (this folder)
- Mar 24, 2026 (7 months ago)
- Last release
- Apr 30, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/redhat-et/rhdp-rca-plugin
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from redhat-et
- 0.544score
rca-annotator
redhat-et
Structured annotation tool that walks users through reviewing and labeling root-cause-analysis outputs, with evidence traceability, difficulty calibration…
SkillCFreshness: C★ 13Claude Code +9 - 0.542score
incident-investigator
redhat-et
End-to-end incident investigation workflow that fetches logs and performs root cause analysis.
SkillCFreshness: C★ 13Claude Code +9 - 0.542score
context-fetcher
redhat-et
Retrieve configuration and documentation context from GitHub, Atlassian Confluence and Slack for job investigation.
SkillCFreshness: C★ 13Claude Code +9 - 0.541score
feedback-capture
redhat-et
Ask user if they would like to provide feedback.
SkillCFreshness: C★ 13Claude Code +9 - 0.540score
log-fetcher
redhat-et
The log fetcher skills allow to fetch logs via a SSH connection.
SkillCFreshness: C★ 13Claude Code +9 - 0.536score
root_cause_analysis
redhat-et
Perform root cause analysis and log analysis for failed jobs.
SkillCFreshness: C★ 13Claude Code +9
Cite this page
root-cause-analysis skill. Agent Mart. https://agentmart.dev/skills/redhat-et-root-cause-analysis-df3baf (last updated 2026-10-24)