root-cause-capa

root-cause-capa is a skill for Claude Code from thevibeworks/claude-code-docs. It costs 156 tokens per session (5,201 once invoked), scanned A, a copy of root-cause-capa, MIT.

A manufacturing investigation workflow for finding likely causes of a quality problem and recording corrective action. It combines sensor data, inspection results, maintenance records, and earlier tickets on one time-ordered record.

In plain words
What is it for?
It helps check process drift using statistical process control, find clusters by lot, shift, operator, machine, or tool change, and compare problems with maintenance events. It also supports recurrence checks and corrective-action planning.
Why use it?
It replaces visual guesses with calculated checks and prevents conclusions based on data that is not time-aligned. It ranks possible causes with evidence for and against instead of presenting an unsupported single answer.

Skill for Claude Code

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

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

Good fit It helps check process drift using statistical process control, find clusters by lot, shift, operator, machine, or tool change, and compare problems with maintenance events. It also supports recurrence checks and corrective-action planning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thevibeworks/claude-code-docs/root-cause-capa
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 thevibeworks/claude-code-docs --skill root-cause-capa
Clone the repo
git clone --depth 1 https://github.com/thevibeworks/claude-code-docs

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/thevibeworks/claude-code-docs/root-cause-capa/github.svg)](https://agentmods.dev/skills/thevibeworks/claude-code-docs/root-cause-capa)
Your own site
<a href="https://agentmods.dev/skills/thevibeworks/claude-code-docs/root-cause-capa"><img src="https://agentmods.dev/badge/skills/thevibeworks/claude-code-docs/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/thevibeworks/claude-code-docs/root-cause-capa"><img src="https://agentmods.dev/badge/skills/thevibeworks/claude-code-docs/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 100% copy Near-identical to another mod 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

This is a copy

100% identical to root-cause-capa — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

content/github/claude-plugins-official/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 thevibeworks/claude-code-docs (181 stars, last pushed today), licensed MIT. 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. It is 100% identical to root-cause-capa, differing in 0 lines, and is treated as a copy.

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-capathevibeworks/claude-code-docsSkill181todayMITA156Claude Code
debugging-systematicallydork-labs/dorkosSkill11todayMITA27Claude Code
debugging-test-failuresdork-labs/dorkosSkill11todayMITA38Claude Code
debugging-typescript-errorsdork-labs/dorkosSkill11todayMITA39Claude Code
smart-exploreFlorianBruniaux/claude-code-pluginsSkill475d agoMITA75Claude Code
remote-screenshotshabaraba/vibing.nvimSkill134d agoMITA92Claude Code
ci-log-interpretationshopwareLabs/ai-coding-toolsSkill4813d agoMITA154Claude Code