If the measurement system cannot tell good parts from bad, or one part from another, every downstream number
(SPC, Cpk, inspection results) is noise. scripts/gage_rr_anova.py is the preferred variable study;
scripts/gage_rr_xbar_r.py reproduces the AIAG hand worksheet and checks ranges; scripts/attribute_agreement.py
qualifies inspectors on pass/fail decisions. Shared input checks live in scripts/_msa.py.
Trigger Conditions
Activate this skill when the user:
- Must qualify a gauge for a control plan, PPAP or customer requirement
- Has Gage R&R data to analyse, or results to interpret (%GRR, ndc, %tolerance)
- Wants to check visual inspectors or go/no-go gauges
- Sees SPC or capability results that do not make sense (often the gauge)
Workflow
1. DESIGN -> 10 parts over the process range, 3 appraisers, 2-3 trials, blind random order
2. MEASURE -> CSV: part, operator, trial, value
3. ANALYSE -> python scripts/gage_rr_anova.py grr.csv --tolerance 0.018
4. CHECK -> python scripts/gage_rr_xbar_r.py grr.csv --tolerance 0.018 (range-chart check, worksheet values)
5. ATTRIBUTE-> python scripts/attribute_agreement.py attribute.csv --bad reject
6. DECIDE -> < 10% acceptable; 10-30% conditional; > 30% not; ndc >= 5
7. IMPROVE -> fix the dominant component and re-runResults
Source Variance %Contrib %StudyVar %Tolerance
Total Gage R&R 3.063e-07 1.0% 10.1% 18.4%
Repeatability 2.504e-07 0.8% 9.1% 16.7%
Number of distinct categories (ndc): 13
Verdict on %Tolerance 18.4% and ndc 13: CONDITIONALLY ACCEPTABLE (depends on application, cost, customer approval)
Repeatability dominates: the gauge itself (fixture, resolution, wear, method) needs attention.Appraiser Within Effective Miss False al. Kappa Grade
Ana 95% 98% 0.0% 3.6% 0.94 acceptable
Cleo 75% 78% 25.0% 21.4% 0.50 unacceptableStudy design, acceptance criteria, %tolerance vs %study variation, ANOVA vs Average and Range, bias, linearity, stability and attribute study design: study-design-and-criteria.md. Causes and fixes by dominant component, resolution rule, attribute inspection fixes: improving-measurement-systems.md.
Output Format
Deliver:
- Study design - parts, appraisers, trials, randomisation, gauge resolution.
- Results table - components with %contribution, %study variation, %tolerance; ndc; interaction test.
- Verdict against the criteria and the basis used (%tolerance for inspection, %study variation for SPC).
- Diagnosis - dominant component and its likely causes.
- Actions and the re-study plan.
Scripts
python scripts/gage_rr_anova.py grr.csv --tolerance 0.018 [--k 5.15] [--alpha-interaction 0.25] [--json]
python scripts/gage_rr_xbar_r.py grr.csv --tolerance 0.018
python scripts/attribute_agreement.py attribute.csv --bad rejectVariable studies: columns part, operator, value (balanced). Attribute studies: part, appraiser, trial, result, reference. Exit codes: 0 acceptable, 1 conditional / not acceptable (or ranges out of control), 2 usage or data error.
Additional Resources
| File | Content |
|---|---|
| study-design-and-criteria.md | Study design, criteria, %tolerance vs %study variation, methods compared, bias/linearity/stability, attribute design |
| improving-measurement-systems.md | Diagnosing repeatability vs reproducibility, resolution rule, attribute fixes, re-study |
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.