Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Statistical Process Control

ASecurity

Use when you must run statistical process control on an aerospace production process: compute the X-bar and R chart control limits from subgroup data with the A2, D3, and D4 constants, estimate the process standard deviation from the average range with the d2 constant, calculate the Cp and Cpk capability indices against the specification limits, and detect out-of-control conditions with the Western Electric rules. Produces the control limits, the sigma estimate, the capability indices, and th...

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
ai-agentspython

Works with

claude code

Security Analysis

A100/100

Scanned 9/27/2026

Install to Claude Code

$npx -y skills add ashfordeOU/aero-agent-skills --skill statistical-process-control --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Statistical Process Control?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Statistical Process Control
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashfordeou-statistical-process-control/badge)](https://www.skillsdirectory.com/skills/ashfordeou-statistical-process-control)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: statistical-process-control
description: "Use when you must run statistical process control on an aerospace production process: compute the X-bar and R chart control limits from subgroup data with the A2, D3, and D4 constants, estimate the process standard deviation from the average range with the d2 constant, calculate the Cp and Cpk capability indices against the specification limits, and detect out-of-control conditions with the Western Electric rules. Produces the control limits, the sigma estimate, the capability indices, and the violated rule list that gate the production process control review. Trigger: statistical process control, spc, x-bar chart, r chart, control limits, cpk, process capability, out of control, western electric."
license: Apache-2.0
compliance: STANDARDS-REF
standards:
  - id: as9100
    reference-only: true
gated: false
domain: manufacturing-quality
pack: manufacturing-quality
compatibility: "agentskills.io SKILL.md; any SKILL.md host (Claude Code, Hermes, OpenClaw)"
metadata:
  domain: manufacturing-quality
  subdomain: as9100
  tags: [statistical-process-control, x-bar-chart, r-chart, control-limits, process-capability, cpk-index, out-of-control-rules, western-electric-rules]
  version: 0.1.0
  author: Aero Agent Skills
---

# Statistical Process Control (manufacturing-quality/as9100/statistical-process-control)

Use when the task is monitoring an aerospace production process with
variable control charts: subgroup data feeds X-bar and R chart limits,
the average range gives the process sigma, and the capability indices
Cp and Cpk score the process against the specification limits.

## Domain quick reference

- X-bar chart limits from the subgroup average xbar and the average
  range rbar: UCL = xbar + A2 * rbar, LCL = xbar - A2 * rbar.
- R chart limits: UCL = D4 * rbar, LCL = D3 * rbar.
- Process standard deviation estimate from the average range:
  sigma = rbar / d2.
- Capability indices: Cp = (USL - LSL) / (6 * sigma), CPU =
  (USL - xbar) / (3 * sigma), CPL = (xbar - LSL) / (3 * sigma),
  Cpk = min(CPU, CPL).
- Constants A2, D3, D4, d2 depend on the subgroup size n; the module
  table covers n = 2 through 10, the usual aerospace sampling range.
- Out-of-control rules (Western Electric): one point beyond 3 sigma,
  eight consecutive points on one side of the centerline, two of three
  points beyond 2 sigma on one side, four of five points beyond 1
  sigma on one side.
- AS9100 clause 8.5.1 frames production process control; SPC charts
  are the common aerospace evidence that a special process stays in
  statistical control, summarized here without clause text.

## Workflow

1. Collect the subgroup averages, the average range, and the subgroup
   size n (2 through 10).
2. Compute the X-bar and R chart control limits with xbar_r_limits.
3. Estimate the process sigma from the average range with
   process_sigma.
4. Compute Cp, CPU, CPL, and Cpk with capability_indices against the
   specification limits USL and LSL.
5. Detect out-of-control conditions on a point sequence with
   out_of_control_rules.
6. Validate inputs first: a subgroup size outside 2-10, a negative
   range, or inverted specification limits raise ValueError.

## Pitfalls

- Using a subgroup size outside the constants table: sizes 2-10 are
  supported; an unsupported n raises ValueError instead of returning
  bogus limits.
- Confusing the R chart limits with the X-bar limits: R chart limits
  come from D3 and D4, never from A2.
- Computing Cpk without the process sigma estimate: capability
  indices need the range-derived sigma, not the sample standard
  deviation of the subgroup means.
- Inverting the specification limits: USL must exceed LSL or the
  capability indices are meaningless.
- Reading the Western Electric rules as point rules only: the
  consecutive-point rules need the run context, not single points.
- A zero average range with a subgroup of identical parts: sigma
  becomes zero and the capability indices divide by zero.

## Behavior contract (gate 3)

The SPC logic is exercised by the gate 3 contract test:
scripts/test_statistical_process_control.py against
scripts/statistical_process_control_logic.py (stdlib unittest,
offline). Run:
python3 scripts/test_statistical_process_control.py

## Compliance

- Standards referenced, not reproduced: AS9100 clause 8.5.1 frames
  production process control; the chart constants and capability
  formulas are common SPC methodology, summary-only per
  standards-map.yaml.
- compliance: STANDARDS-REF, gated: false.

Attribution

ashfordeOUashfordeOU
View sourceMore from ashfordeOU →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

694821 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →