Skip to content
v0.1.3latest release121 skills4 categories6 sub-categories247 tested scripts397 reference docsContact us

manufacturing-spc-chart-builder

Build statistical process control charts for manufacturing: choose the chart from the data (I-MR, X-bar/R, X-bar/S for measurements; p, np, c, u for defectives and defects with constant or varying sample size), compute centre lines and control limits with the standard constants, flag points beyond the limits, recompute Phase I limits after special causes are removed, report the within-subgroup sigma for capability, and render the chart as a standalone SVG with optional specification lines. Covers rational subgrouping, Phase I vs Phase II, prerequisites (MSA, sampling frequency, reaction plan), reading the chart, control vs capability and common mistakes such as spec limits used as control limits, mixed-cavity subgroups and tampering. Use when setting up SPC on a characteristic, calculating control limits, building a control chart from production data, or reviewing a chart for a control plan or PPAP.

Manufacturing & Industrial Operations / Quality Management & ISO 9001v1.0.0Updated OCT 25 20262 references3 scripts

A control chart separates common-cause variation (the process as it is) from special causes (something changed). It only works with the right chart for the data, limits calculated from the process (never from the specification) and a reaction plan. scripts/control_limits.py selects the chart and computes the limits; scripts/plot_chart.py draws it as SVG. Both share the calculations in scripts/_spc.py.

Trigger Conditions

Activate this skill when the user:

  • Wants to start SPC on a characteristic or asks which control chart to use
  • Has measurement or defect data and needs control limits or a chart
  • Needs Phase I limits for a control plan, PPAP or customer requirement
  • Asks why a chart shows no signals although parts are bad (often spec limits used as control limits)

Run rules beyond the limits: western-electric-rules-checker; capability from the same data: manufacturing-cpk-capability-calculator.

Workflow

text
1. MSA       -> confirm the gauge is capable (gage-rr-msa-analyzer)
2. SUBGROUP  -> rational subgroups (consecutive parts, one cavity/spindle), 20-25 subgroups
3. LIMITS    -> python scripts/control_limits.py data.csv --value diameter --subgroup hour
4. SIGNALS   -> investigate every point beyond limits; check run rules
5. PHASE I   -> after removing special causes: --exclude-ooc and freeze the limits
6. CHART     -> python scripts/plot_chart.py data.csv --value diameter --subgroup hour --usl 12.018 --lsl 12.000 > chart.svg
7. PHASE II  -> plot new subgroups against frozen limits; react per the control plan

Chart Selection

DataChart
Measurements, n = 1I-MR
Measurements, n = 2-9X-bar / R
Measurements, n >= 10X-bar / S
Defectives, constant / varying nnp / p
Defects, constant / varying unitsc / u
text
Chart: XBAR-R  (25 subgroups, n = 5)
  X-bar                    CL 12.00921   UCL 12.01212   LCL 12.00629
    beyond limits at: 17
  Within-subgroup sigma estimate: 0.0021702

Selection table, formulas and the constants for n = 2-10: chart-selection-and-constants.md. Phase I vs II, prerequisites, reading the chart, control vs capability and common mistakes: running-spc.md.

Output Format

Deliver:

  1. Chart choice and why (data type, subgroup size, sample size behaviour).
  2. Limits - CL, UCL, LCL for each panel, and the within sigma.
  3. Signals - subgroups beyond limits with the investigation needed; Phase I exclusions with their causes.
  4. Chart - SVG from plot_chart.py.
  5. Next steps - run rules check, capability, sampling frequency and reaction plan for the control plan.

Scripts

bash
python scripts/control_limits.py bore.csv --value diameter --size 5
python scripts/control_limits.py bore.csv --value diameter --subgroup hour [--chart xbar-s] [--exclude-ooc] [--json]
python scripts/control_limits.py rejects.csv --defectives rejects --n inspected      # p or np
python scripts/control_limits.py audits.csv --defects defects --n units               # c or u

Exit codes: 0 no points beyond limits, 1 points beyond limits, 2 usage or data error.

bash
python scripts/plot_chart.py bore.csv --value diameter --subgroup hour --usl 12.018 --lsl 12.000 --title "OP20 bore" > bore.svg

Exit codes: 0 SVG written, 2 usage or data error.

Additional Resources

FileContent
chart-selection-and-constants.mdChart selection, rational subgroups, formulas, constants table
running-spc.mdPhase I vs II, prerequisites, reading charts, control vs capability, mistakes
More in Quality Management & ISO 9001

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.