Capability answers whether a stable process fits its tolerance. The number is only meaningful if the gauge is
capable, the process is in control, the data are representative and the distribution model fits.
scripts/capability.py computes all the indices and also checks those conditions: normality, the gap between
Cpk and Ppk, off-centring, observed vs expected defects and the confidence interval.
Trigger Conditions
Activate this skill when the user:
- Needs Cpk / Ppk for a PPAP, control plan, customer or capability study
- Has Cpk and Ppk that disagree, or a Cpk near the requirement
- Has skewed or bounded data (flatness, runout, roughness) and asks how to compute capability
- Asks what Cpk 1.33 means in ppm or how much data is needed
Control chart first: manufacturing-spc-chart-builder; gauge first: gage-rr-msa-analyzer.
Workflow
1. PREREQS -> gauge OK (Gage R&R), process stable (control chart), >= 100 representative values
2. RUN -> python scripts/capability.py data.csv --value diameter --lsl 12.000 --usl 12.018 --subgroup hour
3. NORMAL? -> if Anderson-Darling p < 0.05: find why (mixture, drift, bound); --method percentile if natural
4. READ -> Cp vs Cpk (centring), Cpk vs Ppk (stability), CI (enough data?), observed vs expected ppm
5. DECIDE -> compare with the requirement (--target-index 1.33 / 1.67); plan centring or variation reductionOutput
Cp 1.38 Cpk 1.35 (95% CI 1.17 to 1.53)
Pp 1.17 Ppk 1.14
Expected ppm: within 36 overall 470 observed 8,000
Ppk well below Cpk: between-subgroup variation (shifts, drift) - check the control chart.
Observed 1 out-of-spec value(s) - far more than the normal model predicts: special causes or heavy tails.Here Cpk passes 1.33 but the interval reaches 1.17, Ppk is 1.14 and a subgroup shifted: the process is not yet proven capable. Index definitions, ppm table, requirements and how to read patterns: capability-indices.md. Prerequisites, normality causes and non-normal methods: data-requirements-and-non-normal.md.
Output Format
Deliver:
- Data and conditions - n, subgrouping, gauge status, control-chart status, normality result.
- Indices - Cp, Cpk (with CI), Pp, Ppk, Cpm if a target is given; method used.
- Defect rates - expected within / overall and observed ppm.
- Interpretation - centring, stability, data sufficiency.
- Verdict vs the requirement and the improvement action (centre, stabilise, reduce variation).
Scripts
python scripts/capability.py bore.csv --value diameter --lsl 12.000 --usl 12.018 --subgroup hour
python scripts/capability.py flatness.csv --value flatness --usl 0.05 --method percentile
python scripts/capability.py data.csv --value x --lsl 10 --usl 20 --target 15 --target-index 1.67 --jsonExit codes: 0 index meets --target-index (and data normal for the normal method), 1 below target or normality rejected, 2 usage or data error (fewer than 25 values, bad specs).
Additional Resources
| File | Content |
|---|---|
| capability-indices.md | Index formulas, ppm table, typical requirements, reading patterns, Cpk confidence interval |
| data-requirements-and-non-normal.md | Prerequisites, normality check causes, percentile / distribution / Box-Cox methods |
8d-problem-solving-report-writer
Write and review 8D problem-solving reports for customer complaints and serious nonconformities (automotive and aerospace practice: Ford Global 8D, VDA, GM, Stellantis formats): D0 emergency response, D1 cross-functional team and champion, D2 problem description with 5W2H and is / is-not and no cause in the statement, D3 interim containment within 24 hours with verification and clean point, D4 verified occurrence and escape (non-detection) root causes plus systemic cause, D5 permanent corrective actions for each cause verified before implementation, D6 implementation, validation with production data and removal of containment, D7 PFMEA, control plan and read-across to similar products, D8 closure and recognition. Checks an 8D discipline by discipline for missing content, human-error root causes, missing escape cause or action, late containment and dates out of order.
acceptance-sampling-plan-selector
Select and evaluate acceptance sampling plans for incoming, in-process and final inspection: ANSI/ASQ Z1.4 / ISO 2859-1 single sampling under normal inspection (code letter from lot size and inspection level I, II, III, S-1 to S-4; sample size, Ac and Re from AQL, following the table's arrows to the correct plan; 100% when n reaches the lot size; AQLs above 10 per 100 units), operating characteristic curves (Pa at any quality, producer's quality level, indifference point, LTPD, AOQ and AOQL, binomial or hypergeometric), plans designed from producer and consumer risk, and c = 0 zero-acceptance plans. Covers AQL choice by defect class, switching rules between normal, tightened and reduced inspection, when sampling is not appropriate, and random sampling.
approved-supplier-list-manager
Manage and audit an approved supplier list (ASL) / external provider register for ISO 9001 8.4.1, IATF 16949 8.4 and AS9100 8.4.1: supplier status (approved, conditional, probation, pending, disqualified), scope of approval by commodity and process, risk class, certification and expiry, re-evaluation intervals by risk, conditions with end dates, single-source contingency, approver and customer-directed sources. Audits the list for expired or expiring certificates, overdue re-evaluations, conditional or probation status past its decision date, high-risk suppliers without the required certification, single-source suppliers without backup and missing approvers, and checks purchase orders for suppliers that are off-list, disqualified or pending, or buying outside the approved scope. Covers ERP blocks, PO requirements, off-list and emergency purchases.
apqp-phase-planner
Plan and track Advanced Product Quality Planning (AIAG APQP 3rd edition, IATF 16949) for a new or changed automotive part: back-schedule the five phases (plan and define, product design, process design, product and process validation, launch and feedback) from the start-of-production date by program complexity, with overlap, PPAP lead and safe-launch period; list the deliverables and gate for each phase (DFMEA, DVP&R, feasibility, process flow, PFMEA, control plans, MSA, Ppk, run at rate, PPAP, safe launch, lessons learned); adjust for build-to-print suppliers; flag compressed timelines and late or untracked deliverables against a status list. Covers gate reviews, red/yellow/green status reporting, run at rate and safe-launch exit criteria.
as9100-gap-analyzer
Run an AS9100D / EN 9100:2018 gap analysis for aviation, space and defence suppliers on the requirements added to ISO 9001: on-time delivery and conformity focus, management representative, ethics and human-factors awareness, operational planning and operational risk management, configuration management, product safety, counterfeit-part prevention, special requirements, critical items and key characteristics, external provider register and flow-down, FOD prevention, tooling and NC program control, special process validation, first article inspection (AS9102), traceability, in-service data and nonconforming product control. Generates and scores a worksheet, grades missing core controls as major, and checks invalid n/a claims. Covers AS9101/AS9104, OASIS, AS9102 FAI forms, counterfeit standards (AS5553, AS6174, AS6081), NADCAP and the planned IA9100 transition.
audit-report-writer
Write internal, supplier and pre-certification audit reports with the content ISO 19011:2018 6.5 expects: audit objectives, scope, criteria with revisions, dates, team and auditees, method and sampling statement, specific strengths, findings table and three-part finding details (requirement, evidence, statement), conclusion on the degree of fulfilment of criteria, diverging opinions, follow-up deadlines and distribution. Builds a Markdown report from a JSON audit record, generates the conclusion from the findings (major / minor / none) and flags reports missing required content or findings without clause or evidence. Covers conclusion wording, closing meetings, response expectations and verifying corrective actions.