root-cause-capa
Skill by anthropics
Investigates nonconformances by building one verified timeline from sensor, inspection, maintenance and ticket data. It runs pattern checks in code and drafts an 8D for quality teams.
Install root-cause-capa
Built from the published package, never by AI.
git clone --depth 1 https://github.com/anthropics/claude-plugins-official /tmp/claude-plugins-official && mkdir -p ~/.claude/skills && cp -r /tmp/claude-plugins-official/plugins/claude-for-manufacturing/skills/root-cause-capa ~/.claude/skills/root-cause-capaRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/anthropics/claude-plugins-official /tmp/claude-plugins-official && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-plugins-official/plugins/claude-for-manufacturing/skills/root-cause-capa ~/.gemini/antigravity-cli/skills/root-cause-capaAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The root-cause-capa skill reads sensor history, inspection measurements, maintenance records and prior tickets onto one timeline. It checks time alignment first and refuses to correlate sources whose clocks cannot be aligned. It then runs computed checks for SPC drift, clustering by lot, shift, operator, machine and tool change, and correlation with maintenance events.
It proposes ranked candidate causal chains, each with evidence for, evidence against, and a test to confirm or kill it. It drafts the 8D, leaving D6 and D8 as placeholders for real-world verification and sign-off. Where the leading candidate points at purchased material, it raises a supplier-caused flag. The skill is aimed at quality engineers and managers handling nonconformances, CAPA and corrective action reports.
Written from the project's SKILL.md and checked against it.
What it can do
- Evidence timelineAligns sensor, inspection, production and maintenance data onto one zone-aware timeline around an event.
- SPC drift checkComputes control limits and run rules on the relevant characteristic across runs.
- Clustering checksCompares failures by material lot, shift, operator, machine and tool change against base rates.
- Maintenance correlationChecks whether the event lines up with a maintenance event, once clock alignment is verified.
- Ranked causal chainsProposes candidate causes with supporting and contradicting evidence on each link.
- Discriminating testsNames a confirm test and a kill test for each candidate, plus the cheapest test that separates them.
- 8D draftDrafts D1 to D5 and D7, leaving D6 and D8 as placeholders for verification and signature.
- Supplier-caused flagEmits a flag that starts a sourcing action when the leading candidate points at purchased material.
What you need
- Python 3
- Exports of historian, inspection and quality data from Microsoft 365
- ERP access (Oracle NetSuite or Infor M3) for lots and receipts, if using connectors
Try asking
- Why did this nonconformance happen? Build ranked root cause candidates from the export.
- Write the 8D for this NCR, leaving D6 and D8 as placeholders.
- Run SPC drift and lot clustering checks on this run's inspection data.
Good to know
- Refuses to correlate sources whose clocks cannot be verified as aligned.
- The 8D is blocked when the NCR has no cited requirement or is not approved.
- D6 and D8 are left as empty placeholders that need a human signature.
- The supplier flag is held when the material candidate is tied with another.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/claude-for-manufacturing/skills/root-cause-capa/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md22 KB -
reference/8d-and-candidates.md6 KB -
reference/pattern-checks.md5 KB -
reference/redaction.md4 KB -
reference/time-alignment.md4 KB
Alternatives to root-cause-capa
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
root-cause-capa: common questions
Does root-cause-capa give a single root cause?
No. The skill outputs ranked candidate causal chains, each with evidence for and against, and says it never produces a single unqualified verdict.
Can it fill in the whole 8D?
It fills D1 to D5 and D7 from the evidence. D6 and D8 stay as placeholders because they need a real-world outcome and a human signature.
Does it need a live system connection?
The source says it runs on exports alone with no connector, though it can read ERP and maintenance data through connectors when available.
How do I install root-cause-capa?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is root-cause-capa free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is root-cause-capa safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to root-cause-capa?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
