Logo: Spc Control Charts

Spc Control Charts

Communautéit
RBraga01
spc-control-charts

Statistical Process Control (SPC) — select the correct control chart, interpret out-of-control signals using Western Electric rules, calculate and interpret Cp, Cpk, Pp, Ppk. Use when setting up SPC for a new characteristic, interpreting control chart signals, responding to special cause variation, or auditing SPC implementation. Covers AIAG SPC 2nd edition and IATF 16949 §8.3.3.

Iwwersiicht

EditeurRBraga01
RepositoryQuality-Engineering-Skills
Skill-Nummspc-control-charts
Stären
45
Forks
19
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    RBraga01 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Spc Control Charts an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/RBraga01/Quality-Engineering-Skills/tree/master/skills/measurement/spc-control-charts
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RBraga01/Quality-Engineering-Skills.git /tmp/Quality-Engineering-Skills
mkdir -p .claude/skills
cp -r /tmp/Quality-Engineering-Skills/skills/measurement/spc-control-charts .claude/skills/spc-control-charts
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Spc Control Charts an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Spc Control Charts automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Spc Control Charts net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Statistical Process Control (SPC)

When to use

Use this skill when:

  • Selecting the correct control chart type for a process characteristic
  • Interpreting control chart signals — is this special cause or common cause?
  • Calculating Cp, Cpk, Pp, Ppk and determining if the process is capable
  • Responding to an out-of-control signal on a production line
  • Setting up SPC for a new special characteristic (PPAP/APQP requirement)
  • Auditing an SPC system for correctness and adequacy
  • Explaining SPC results to a customer or during an audit

Prerequisites

  • The characteristic to monitor (variable or attribute data)
  • Production data (minimum 25 subgroups for control limits, 100+ pieces for capability)
  • MSA study completed and %GRR < 30% for variable charts
  • Process specification (nominal + tolerance) for capability calculations
  • Subgroup size decided based on rational subgrouping principle

Workflow

Step 1 — Select the correct control chart

Variable data (measured values — length, weight, pressure, temperature)
ChartWhen to use
X̄-R (X-bar/Range)Subgroup size 2–9; most common in manufacturing
X̄-S (X-bar/Sigma)Subgroup size ≥ 10; better sensitivity to spread
I-MR (Individuals/Moving Range)Subgroup size = 1; one measurement per inspection (slow processes, destructive tests)
Attribute data (counts, pass/fail, defect rates)
ChartWhen to use
p-chartProportion defective; variable subgroup size
np-chartNumber defective; constant subgroup size
c-chartCount of defects per unit; constant inspection area
u-chartDefects per unit; variable inspection area

Decision rule: If you can measure it with a number, use a variable chart. Variable charts are more sensitive and require smaller samples to detect process shifts.


Step 2 — Calculate control limits

X̄-R chart

From at least 25 subgroups of size n:

  • Centre line (X̄̄): Grand average of all subgroup means
  • UCL_X̄ = X̄̄ + A₂ × R̄
  • LCL_X̄ = X̄̄ − A₂ × R̄
  • Centre line (R̄): Average of all subgroup ranges
  • UCL_R = D₄ × R̄
  • LCL_R = D₃ × R̄ (= 0 for n ≤ 6)

Constants for common subgroup sizes:

nA₂D₃D₄
21.88003.267
31.02302.574
40.72902.282
50.57702.114

Important: Control limits are calculated FROM THE DATA — never set them to match the specification limits. Specification limits and control limits are completely separate concepts.


Step 3 — Apply Western Electric Rules (out-of-control signals)

Divide the control chart into zones: Zone A (2–3σ from centre), Zone B (1–2σ), Zone C (0–1σ).

RuleSignalInterpretation
Rule 11 point beyond 3σ (outside control limits)Large, immediate shift
Rule 29 consecutive points on same side of centre lineProcess mean has shifted
Rule 36 consecutive points steadily increasing or decreasingTrend — tool wear, drift
Rule 414 consecutive points alternating up and downSystematic variation — two alternating distributions
Rule 52 of 3 consecutive points in Zone A or beyond (same side)Large shift signal
Rule 64 of 5 consecutive points in Zone B or beyond (same side)Moderate shift
Rule 715 consecutive points in Zone C (either side of centre line)Stratification — data from two separate distributions
Rule 88 consecutive points beyond Zone C (either side)Mixture — sampling from two processes

Action required for ANY rule violation: Stop and investigate immediately. Do not reset control limits. Do not restart until root cause is identified.

Most commonly applied in automotive: Rules 1, 2, 3 minimum. Rules 1–8 for safety-critical characteristics.


Step 4 — Calculate and interpret process capability

Capability data requirements: Process capability is only valid when calculated on a process that is in statistical control (no out-of-control signals) and with a minimum of 100 consecutive parts from that stable process. Fewer parts produce unreliable Cpk estimates — a Cpk calculated on 30 parts can vary by ±0.3 from the true value. Do not report Cpk based on fewer than 100 parts as a production capability figure; label it "preliminary" and state the sample size.

Short-term capability (within-subgroup variation):

  • Cp = (USL − LSL) / (6σ̂) — capability — process spread vs. tolerance
  • Cpk = min[(USL − X̄̄) / (3σ̂), (X̄̄ − LSL) / (3σ̂)] — centred capability — accounts for process mean location

σ̂ = R̄ / d₂ (for X̄-R chart)

Long-term performance (total variation including between-subgroup):

  • Pp = (USL − LSL) / (6s) — same formula but uses overall standard deviation s
  • Ppk = min[(USL − X̄̄) / (3s), (X̄̄ − LSL) / (3s)]
Acceptance criteria
IndexMinimumTarget
Cpk1.331.67
Ppk1.331.67
CpkInterpretationPPAP action
≥ 1.67Excellent✅ Accepted
1.33 – 1.67Acceptable✅ Accepted — monitor
1.00 – 1.33Marginal⚠️ Customer approval required; add control measures
< 1.00Not capable❌ 100% inspection required; corrective action mandatory
Cp vs. Cpk relationship
  • Cp = Cpk: process is perfectly centred
  • Cp > Cpk: process is off-centre — improve centering before widening control limits
  • Never report only Cp without Cpk — a process can be off-centre and still show a good Cp

Step 5 — Respond to an out-of-control condition

  1. Stop the process (or place affected output on hold) — do not continue producing to an out-of-control process
  2. Contain — identify affected output since last in-control point
  3. Investigate — ask: what changed? (material lot, operator, shift, tooling, environment)
  4. Identify root cause — use 5-Why or Fishbone (is-is-not to scope the problem first)
  5. Correct — implement correction and verify the process returns to control
  6. Document — note the signal, investigation, and action taken on the chart (or in the log)
  7. Update PFMEA and Control Plan if the root cause reveals a new failure mode

Do NOT simply recalculate control limits after a shift to make the chart "look in control."


Step 6 — Audit an SPC implementation

When reviewing SPC in production or at a supplier:

  • Correct chart type selected for data type (variable vs. attribute)
  • Minimum 25 subgroups used to calculate initial control limits
  • Control limits calculated from process data — NOT set to specification limits
  • Western Electric rules applied (minimum Rule 1, 2, 3)
  • Out-of-control signals are annotated on the chart with the action taken
  • Process capability calculated on stable (in-control) process only
  • Cpk ≥ 1.33 minimum; 1.67 for special characteristics
  • MSA study complete and %GRR < 30% for the gauge being used
  • Control chart is used for decision-making — not filled in retroactively

Validation criteria

An SPC implementation is adequate when:

  • Chart type matches data type and subgroup size
  • Control limits calculated from minimum 25 subgroups of production data
  • Process in statistical control before capability is calculated
  • Cpk ≥ 1.33 (minimum) for all monitored characteristics
  • Out-of-control signals trigger documented investigation and corrective action

Common mistakes

  • Setting control limits equal to specification limits (a fundamental SPC error — these are different concepts)
  • Calculating capability on an out-of-control process (meaningless — must be stable first)
  • Reporting Cp but not Cpk — hides off-centre processes
  • Using only n=1 individual charts when subgrouping would reveal more
  • Filling in control charts retroactively at end of shift — defeats the purpose of real-time monitoring
  • Recalculating control limits to eliminate out-of-control points without identifying root cause
  • Reporting Cpk = 1.45 based on 30 parts — too few; minimum 100 pieces for reliable capability

Output Format

At the start of each use, ask the user:

"How would you like to receive the output? A — Structured Markdown (formatted tables and sections, ready to copy) B — Plain tables (simplified structure for Excel or Word) C — Narrative report (flowing text for a formal document or email)

Default: A."

Adapt all output sections to the chosen format. If the platform or session context already defines a format preference, skip this question.

Changelog

VersionDateAuthorChange
1.02026-06-06@RBraga01Initial release
1.12026-06-06@migmccAdded 100-part minimum requirement for valid capability study in Step 4; clarified in-control prerequisite before capability calculation

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Spc Control Charts?

Statistical Process Control (SPC) — select the correct control chart, interpret out-of-control signals using Western Electric rules, calculate and interpret Cp, Cpk, Pp, Ppk. Use when setting up SPC for a new characteristic, interpreting control chart signals, responding to special cause variation, or auditing SPC implementation. Covers AIAG SPC 2nd edition and IATF 16949 §8.3.3.

Firwat Spc Control Charts op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Spc Control Charts besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Spc Control Charts an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/RBraga01/Quality-Engineering-Skills/tree/master/skills/measurement/spc-control-charts an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Spc Control Charts benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Spc Control Charts benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Spc Control Charts domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Spc Control Charts gratis?

Jo. RBraga01 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇