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.
npx agentmods add skills/redhat-et/rhdp-rca-plugin/root-cause-analysisnpx skills add redhat-et/rhdp-rca-plugin --skill root-cause-analysisgit clone --depth 1 https://github.com/redhat-et/rhdp-rca-pluginWrote 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.
[](https://agentmods.dev/skills/redhat-et/rhdp-rca-plugin/root-cause-analysis)<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
--fetchflag 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:
- List the missing configurable items grouped by check name
- Ask: "Would you like me to help configure these? I'll walk you through each one."
- If yes, for each missing check with
"configurable": true:- Show the check name and each
env_vars[].promptto 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 asREMOTE_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 newHostblock, and write it back - Then set
REMOTE_HOSTto the alias name
- Show the check name and each
- After collecting all values, read the project's
.claude/settings.jsonfile - Merge the new values into the
"env"block (create it if it doesn't exist) - 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()\"" } ] } ] } - Write the updated settings file
- Tell the user to restart the Claude Code session for env vars and hooks to take effect
- Important: Write secrets (tokens, passwords) to
.claude/settings.json-- ensure this file is in.gitignore
What ships with it
29 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- github_mcp_verification.md 1.3 KB
- README.md 13 KB
- requirements.txt 73 B
- schemas/correlation.schema.json 2.6 KB
- schemas/github_context.schema.json 7.3 KB
- schemas/job_context.schema.json 2.4 KB
- schemas/summary.schema.json 3.5 KB
- scripts/__init__.py 30 B runs code
- scripts/bastion_resolver.py 8.5 KB runs code
- scripts/cli.py 21 KB runs code
- scripts/config.py 6.1 KB runs code
- scripts/correlator.py 10 KB runs code
- scripts/github_fetcher.py 16 KB runs code
- scripts/job_parser.py 6.4 KB runs code
- scripts/jumpbox_io.py 3.8 KB runs code
- scripts/log_fetcher.py 2.1 KB runs code
- scripts/setup.py 20 KB runs code
- scripts/splunk_client.py 5.5 KB runs code
- scripts/tracing.py 473 B runs code
- tests/__init__.py 0 B runs code
- tests/conftest.py 668 B runs code
- tests/data/correlator_fixtures.json 4.1 KB
- tests/data/sample_job.json 1.1 KB
- tests/scripts/test_config.py 5.7 KB runs code
- tests/scripts/test_correlator.py 7.3 KB runs code
- tests/scripts/test_fetch_correlator.py 1.3 KB runs code
- tests/scripts/test_job_parser.py 7.9 KB runs code
- tests/scripts/test_splunk_client.py 4.7 KB runs code
- tests/scripts/test_splunk_request.py 3.6 KB runs code
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.
- 5d ago First seen · 271 lines · 93 tokens per session scan A 1ea2d442c40f
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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.
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…
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…