root-cause-analysis

root-cause-analysis is a skill for Claude Code from redhat-et/rhdp-rca-plugin. It costs 93 tokens per session (2,563 once invoked), scanned B, original, Apache-2.0.

A troubleshooting workflow for failed Ansible Automation Platform jobs. It analyzes job logs, checks related Splunk and OpenShift records, and retrieves matching configuration files from GitHub.

In plain words
What is it for?
Use it to investigate job failures, analyze logs, correlate errors across systems, and review the AgnosticD or AgnosticV files connected to a job.
Why use it?
It reduces the manual work of collecting evidence from several systems when the cause of a job failure is unclear.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to investigate job failures, analyze logs, correlate errors across systems, and review the AgnosticD or AgnosticV files connected to a job.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redhat-et/rhdp-rca-plugin/v3
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add redhat-et/rhdp-rca-plugin --skill v3
Clone the repo
git clone --depth 1 https://github.com/redhat-et/rhdp-rca-plugin

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for root-cause-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhat-et/rhdp-rca-plugin/v3/github.svg)](https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/v3)
Your own site
<a href="https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/v3"><img src="https://agentmods.dev/badge/skills/redhat-et/rhdp-rca-plugin/v3/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for root-cause-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/v3"><img src="https://agentmods.dev/badge/skills/redhat-et/rhdp-rca-plugin/v3.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,563 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.02563
Opus 5.5 $0.00037 $0.01025
Sonnet 5.5 $0.00019 $0.00513
Haiku 4.5 $0.00009 $0.00256

Measured 3mo ago against content hash f3371ef58a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

root-cause-analysis scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/__init__.py, scripts/cli.py, scripts/config.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

**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.
experiments/combine_rca_context/v3/SKILL.md · 254 lines

How it starts

The opening of the file, as written. The whole thing — 254 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

# 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

# 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)

# 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

Read the full file on GitHub · 254 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 254 lines · 93 tokens per session scan B f3371ef58a62

Subscribe to this mod's changes

root-cause-analysis is a skill published in the GitHub repository redhat-et/rhdp-rca-plugin (16 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 93 tokens to every session and 2,563 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

root-cause-analysis compared with skills from other repositories

root-cause-analysis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
root-cause-analysisredhat-et/rhdp-rca-pluginSkill163mo agoApache-2.0B93Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9ktodayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill343todayApache-2.0A112Claude Code
performance-verificationvalkor-ai/loomSkill1.6k2d agoApache-2.0A45Claude Code, Codex
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex