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 (3,146 once invoked), scanned A, original, Apache-2.0.

A workflow for finding why an automated job failed by comparing its Ansible logs with related Splunk and OpenShift pod logs. Ansible runs automation, Splunk searches logs, and OpenShift runs containerised applications.

In plain words
What is it for?
Use it to investigate failed jobs, correlate logs, inspect deployment configuration, and troubleshoot infrastructure problems.
Why use it?
It connects evidence from several systems so the investigation can identify a likely root cause instead of only reporting the final error.

Skill for Claude CodeCodex

Part of the aiops-plugin plugin — 5 skills shipped together

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/root-cause-analysis
Any agent
npx skills add redhat-et/rhdp-rca-plugin --skill root-cause-analysis
Clone the repo
git clone --depth 1 https://github.com/redhat-et/rhdp-rca-plugin

Made for: Claude Code, Codex.

Or install aiops-plugin, the plugin that ships this one along with the rest of its 5 skills.

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/root-cause-analysis.svg)](https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/root-cause-analysis)
Your own site
<a href="https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/root-cause-analysis"><img src="https://agentmods.dev/badge/skills/redhat-et/rhdp-rca-plugin/root-cause-analysis.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 3,146 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00093 $0.03146
Opus 5 $0.00046 $0.01573
Sonnet 5 $0.00019 $0.00629
Haiku 4.5 $0.00009 $0.00315

Measured 5d ago against content hash 1ea2d442c40f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

root-cause-analysis scanned grade A with 0 findings 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 20 executable files (scripts/__init__.py, scripts/bastion_resolver.py, scripts/cli.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/root-cause-analysis/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 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.

Preflight Check (run before first analysis)

# Create virtual environment and install dependencies (if .venv doesn't exist)
python3 -m venv .venv && .venv/bin/pip install -q -r requirements.txt

# Check all prerequisites (use --json for structured output)
.venv/bin/python scripts/cli.py setup --json

Review the JSON output. Some settings are required, others are optional:

Required (skill will not proceed without these):

  • JOB_LOGS_DIR -- Local directory for job log files
  • JUMPBOX_URI -- SSH jumpbox connection for uploading analysis results and feedback

Recommended (analysis works without these but functionality is reduced):

  • MLFlow -- Tracing configuration for recording analysis runs (MLFLOW_TRACKING_URI, MLFLOW_EXPERIMENT_NAME, MLFLOW_TAG_USER)

Optional (skill runs with reduced functionality when missing):

  • SSH / REMOTE_HOST not configured: --fetch flag won't work (user must provide logs in JOB_LOGS_DIR manually)
  • Splunk not configured: Steps 2-3 (log correlation) will be skipped
  • GitHub token not configured: Step 4 (config fetching) will be skipped
Interactive Setup for Missing Configs

If any checks have "status": "missing" and "configurable": true, offer to help the user configure them:

  1. List the missing configurable items grouped by check name
  2. Ask: "Would you like me to help configure these? I'll walk you through each one."
  3. If yes, for each missing check with "configurable": true:
    • Show the check name and each env_vars[].prompt to explain what's needed
    • If the env var has a "default", mention it (user can press enter to accept)
    • If the env var has "optional": true, let the user know they can skip it
    • Ask the user for the value
    • SSH special handling: If the SSH check has "ssh_setup_needed": true:
      • Ask the user for their SSH host alias name
      • Check if that alias already exists in ~/.ssh/config -- if so, use it as REMOTE_HOST
      • If it doesn't exist, ask: do you want to create a new SSH config entry? If yes, ask for: hostname, username, port (default 22), and optional identity file path
      • Read ~/.ssh/config, append the new Host block, and write it back
      • Then set REMOTE_HOST to the alias name
  4. After collecting all values, read the project's .claude/settings.json file
  5. Merge the new values into the "env" block (create it if it doesn't exist)
  6. If MLflow env vars were configured (MLFLOW_TRACKING_URI, MLFLOW_EXPERIMENT_NAME), also add the required MLflow hooks to the "hooks" block (create it if it doesn't exist):
    "hooks": {
      "SessionStart": [
       {
         "hooks": [
           {
             "type": "command",
             "command": "INPUT=$(cat); SESSION_ID=$(echo \"$INPUT\" | jq -r '.session_id'); echo \"export CLAUDE_SESSION_ID='$SESSION_ID'\" >> \"$CLAUDE_ENV_FILE\""
           },
           {
             "type": "command",
             "command": "if [ \"$MLFLOW_CLAUDE_TRACING_ENABLED\" = \"true\" ]; then if ! pip show mlflow >/dev/null 2>&1; then pip install mlflow; fi; fi"
           }
         ]
       }
     ],
     "Stop": [
       {
         "hooks": [
           {
             "type": "command",
             "command": "python -c \"from mlflow.claude_code.hooks import stop_hook_handler; stop_hook_handler()\""
           }
         ]
       }
     ]
    }
    
  7. Write the updated settings file
  8. Tell the user to restart the Claude Code session for env vars and hooks to take effect
  9. Important: Write secrets (tokens, passwords) to .claude/settings.json -- ensure this file is in .gitignore

Read the full file on GitHub · 271 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 · 271 lines · 93 tokens per session scan A 1ea2d442c40f

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 3,146 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. 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

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens