root-cause-analysis

root-cause-analysis is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/redhat-et/rhdp-rca-plugin/v3
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00046 $0.01282
Sonnet 5 $0.00019 $0.00513
Haiku 4.5 $0.00009 $0.00256

Measured 5d ago against content hash f3371ef58a62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (10 stars, last pushed 10d ago), licensed Apache-2.0. It adds 93 tokens to every session and 2,563 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens