root-cause-analysis
Perform root cause analysis and log analysis for failed jobs.Investigate AAP job failures using Splunk correlation and AgnosticD/AgnosticV configuration…
Skill by redhat-et
Chalk Labs
Need help deploying root-cause-analysis?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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
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
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
root-cause-analysis- Description
- Perform root cause analysis and log analysis for failed jobs.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
- 436 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "root-cause-analysis" does not match folder "v1"
- allowed-tools: must be a space-separated string
- body: contains an absolute path from the author's machine
Files (11)
- README.md
- SKILL.md
- 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/
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: Read outputs and analyze with AgnosticD/V context
After running the CLI, read the generated files from the `.analysis/` folder in this skill directory:
```
.analysis/<job-id>/step1_job_context.json
.analysis/<job-id>/step2_splunk_logs.json
.analysis/<job-id>/step3_correlation.json
```
Then perform enhanced analysis:
1. Parse job metadata to identify platform/demo/env from job_name pattern
2. Fetch AgnosticV configuration hierarchy from rhpds/agnosticv
3. Fetch AgnosticD workload code from redhat-cop/agnosticd
4. Apply investigation rules to identify root cause
5. Generate summary with actionable recommendations
Provide a summary to the user with:
1. **Job Details**: ID, status, GUID, namespace, platform, demo
2. **Failed Task(s)**: **IMPORTANT** - Preserve ALL fields from step1 failed_tasks:
- Task: task name
- Play: play name
- Role: role name
- Task Action: task_action (Ansible module)
- Error: error_message
- Task Duration: duration seconds
- Location: Both original task_path AND derived GitHub path
* Original: `/home/runner/.ansible/collections/...` (from task_path field)
* GitHub: `repository:file_path:line` (parsed from original)
* Example: `agnosticd/core_workloads:roles/ocp4_workload_gitops_bootstrap/tasks/workload.yml:74`
3. **Configuration Context**: Relevant variables, missing vars, secrets references
4. **Correlation**: How AAP logs link to Splunk pod logs (GUID, namespace, time overlap)
5. **Correlated Pods**: Pods found in Splunk during the job window
6. **Root Cause**: Analysis of why the job failed (configuration vs. infrastructure vs. workload bug)
7. **Recommendations**: Specific file changes with paths and suggested values
---
## 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
Create a `.env` file (see `.env.example`):
```bash
# Default directory to search for job log files
# The skill will look for files matching job_<ID>.* in this directory
JOB_LOGS_DIR=/path/to/extracted_logs
```
---
## Step 1: Parse Local Job Log
The script extracts key identifiers from the local AAP job log:
- **Job ID**: The AAP job number
- **GUID**: Unique deployment identifier
- **Namespace**: OCP namespace
- **Time Window**: Job start/end times for Splunk query filtering
- **Failed Tasks**: Tasks that failed with error messages
- **Pod References**: Any pod names mentioned in the job output
**Output**: `.analysis/<job-id>/step1_job_context.json`
---
## Step 2: Query Splunk for Pod Logs
Using the identifiers from Step 1, query Splunk for:
1. **OCP Application Logs**: Pod logs from the namespace
2. **Error Events**: Filtered for errors, failures, exceptions
3. **Time-Bounded**: Only logs within the job execution window
**Queries used**:
```splFrom 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.543score
root-cause-analysis
redhat-et
Perform root cause analysis and log analysis for failed jobs.
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.543score
root-cause-analysis
redhat-et
Perform root cause analysis and log analysis for failed jobs.
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
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get root-cause-analysis running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
root-cause-analysis skill. Agent Mart. https://agentmart.dev/skills/redhat-et-root-cause-analysis (last updated 2026-10-24)