root-cause-capa

root-cause-capa is a skill for Claude Code from anthropics/claude-plugins-official. It costs 156 tokens per session (5,201 once invoked), scanned A, original, Apache-2.0.

A data-analysis workflow for investigating why a manufacturing problem occurred and proposing ranked possible causes. It combines sensor, inspection, maintenance, and ticket records on a checked timeline rather than treating a visual pattern as proof.

In plain words
What is it for?
Use it to check process drift, group failures by lot or shift, compare machines and tools, relate failures to maintenance events, and rank candidate causes for corrective action.
Why use it?
It reduces the risk of choosing a confident but wrong root cause. Computed process checks and evidence for and against each candidate make the investigation easier to review.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-for-manufacturing plugin — 17 skills shipped together

Good fit Use it to check process drift, group failures by lot or shift, compare machines and tools, relate failures to maintenance events, and rank candidate causes for corrective action.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthropics/claude-plugins-official/root-cause-capa
About the project

Claude Code Plugins Directory is a marketplace containing plugins for Claude Code, including tools, commands, skills, agents, hooks, and model context servers. Claude Code users browse it to install Anthropic-maintained or approved third-party extensions.

anthropics/claude-plugins-official · 48,685 stars · on GitHub · code.claude.com

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 anthropics/claude-plugins-official --skill root-cause-capa
Clone the repo
git clone --depth 1 https://github.com/anthropics/claude-plugins-official

Made for: Claude Code.

Or install claude-for-manufacturing, the plugin that ships this one along with the rest of its 17 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-capa

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthropics/claude-plugins-official/root-cause-capa/github.svg)](https://agentmods.dev/skills/anthropics/claude-plugins-official/root-cause-capa)
Your own site
<a href="https://agentmods.dev/skills/anthropics/claude-plugins-official/root-cause-capa"><img src="https://agentmods.dev/badge/skills/anthropics/claude-plugins-official/root-cause-capa/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-capa

Your own site · 80×15
<a href="https://agentmods.dev/skills/anthropics/claude-plugins-official/root-cause-capa"><img src="https://agentmods.dev/badge/skills/anthropics/claude-plugins-official/root-cause-capa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00156 $0.05201
Opus 5.5 $0.00062 $0.02080
Sonnet 5.5 $0.00031 $0.01040
Haiku 4.5 $0.00016 $0.00520

Measured 17d ago against content hash 49fd42fda8b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

root-cause-capa 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 17d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/claude-for-manufacturing/skills/root-cause-capa/SKILL.md · 406 lines

How it starts

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

Root Cause and CAPA

The step between "we found a bad part" and "we fixed the reason." It is slow, expert work, and the reason it is slow is that the evidence sits in four systems that nobody looks at together.

Two rules govern everything below, and they are the whole character of the skill:

Compute, do not eyeball. Control limits, run rules and group comparisons are calculated in code and the skill interprets the computed result. A claim that a process "was drifting," asserted from looking at a data file, is the first thing a quality manager will test and the fastest way to lose the room.

Rank, do not conclude. The output is candidate causal chains with supporting and contradicting evidence. A confident wrong root cause is worse than a ranked list, because it closes the investigation and the fix fails.

Quick start

→ Assemble the evidence window; VERIFY time alignment first
→ Misaligned? Refuse to correlate. Say which conclusions still survive
→ Run the computed checks: SPC drift, clustering, maintenance correlation, recurrence
→ Build candidate chains, each link carrying its own evidence for and against
→ Rank by evidential strength; name what would confirm and what would kill each
→ Draft the 8D: D1-D5 and D7 populated, D6 and D8 left as placeholders
→ Material implicated? Raise the supplier-caused flag for Chain 5
→ Customer pack: redact as a reviewable diff, approved before anything leaves

Inputs

First, find the plant setup: from the task's own folder (never cd into the plugin), run python3 -I <this skill's folder>/../../shared/scripts/plant_setup.py find, do its setup_page_first step, then read the profile at profile_path and any rate at rates_path, per ../../shared/replies.md.

Input Source Form
The NCR ncr-writeup ../../shared/contracts/ncr.md
Sensor and process history for the window Historian export to M365 CSV
Inspection measurements across the run Quality system export to M365 CSV/XLSX
Prior NCRs and CAPAs M365 quality library Documents
Maintenance history on the asset CMMS, via data-consolidate's consolidated dataset Structured — connector-sourced when a CMMS connector is live, export-sourced otherwise
Work order, lot, material receipts The ERP. Infor M3 receipts carry no lot (../../shared/erp-connectors.md): the lot-to-receipt link is asked, and unverified until confirmed Connector
Supplier and PO for the material lot The ERP Connector
Process documents and work instructions M365 Documents
Source clocks, shift boundary, skew self-check ## Plant context Config

Read the full file on GitHub · 406 lines

Files

What ships with it

4 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.

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. 17d ago First seen · 406 lines · 156 tokens per session scan A 49fd42fda8b8

Subscribe to this mod's changes

root-cause-capa is a skill published in the GitHub repository anthropics/claude-plugins-official (48,685 stars, last pushed yesterday), licensed Apache-2.0. It adds 156 tokens to every session and 5,201 once invoked, about $0.0006 per session on Opus 5.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-11-13.

Related

root-cause-capa compared with skills from other repositories

root-cause-capa next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
root-cause-capaanthropics/claude-plugins-officialSkill49kyesterdayApache-2.0A156Claude Code
pathways-workloadgoogle/skillsSkill25ktodayApache-2.0A178Claude Code, Codex
gke-workload-scaling-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A170Claude Code, Codex
api-gateway-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A196Claude Code, Codex
gke-node-notreadygoogle/skillsSkill25ktodayApache-2.0A112Claude Code, Codex
gke-ai-troubleshooting-jobset-interruptiongoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
bigquery-troubleshootinggoogle/skillsSkill25ktodayApache-2.0A140Claude Code, Codex