Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

algo-mfg-cpk阿尔戈制造 cpk

Agent Skill

algo-mfg-cpk 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

125

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algo-mfg-cpk(阿尔戈制造 cpk)
来源仓库:https://github.com/asgard-ai-platform/skills
仓库路径:skills/algo-mfg-cpk
安装命令:
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-mfg-cpk
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-mfg-cpk

简介

algo-mfg-cpk 计算过程能力指数 Cpk,衡量制造过程在规格限内的变异与中心偏移情况。

  • 适用于评估生产线能否满足客户质量要求,常用于工艺验证与持续改进。
  • Cpk ≥ 1.33 表示基本合格,≥1.67 为高可靠性标准,优于仅关注变异的 Cp 指标。
  • 安装方式:GitHub 仓库;要求过程处于统计受控状态且有足够样本量。
  • 注意:若过程不稳定或数据不足,应先实施 SPC 控制后再评估能力。

SKILL.md

Cpk Process Capability Index

Overview

Cpk measures how well a process fits within specification limits, accounting for both variation (spread) and centering. Cpk = min((USL - μ) / 3σ, (μ - LSL) / 3σ). Cpk ≥ 1.33 is typically required; Cpk ≥ 1.67 for critical characteristics. Unlike Cp, Cpk penalizes off-center processes.

When to Use

Trigger conditions:

  • Assessing whether a manufacturing process can meet customer specifications
  • Comparing capability across processes, machines, or time periods
  • Qualifying a process for production readiness

When NOT to use:

  • When the process is not in statistical control (stabilize first with SPC)
  • For non-normal distributions without transformation

Algorithm

IRON LAW: Cpk Is Only Valid for a STABLE, IN-CONTROL Process
Computing Cpk on an unstable process gives a meaningless number.
The process MUST be in statistical control (per SPC charts) before
capability analysis. An unstable process with Cpk=2.0 today may
produce defects tomorrow when it shifts.

Phase 1: Input Validation

Collect: 100+ measurements from a stable process. Determine: USL, LSL (customer specifications). Verify process is in control (SPC charts show stability). Gate: Process in control, specifications defined, 100+ data points.

Phase 2: Core Algorithm

  1. Compute process mean: μ = Σxᵢ / n
  2. Compute process standard deviation: σ = estimated from R-bar/d₂ or S-bar/c₄ (within-subgroup) — NOT overall std dev
  3. Cp = (USL - LSL) / 6σ (potential capability, ignoring centering)
  4. Cpk = min((USL - μ) / 3σ, (μ - LSL) / 3σ) (actual capability)
  5. Estimate PPM defective from Cpk (e.g., Cpk=1.33 → ~63 PPM)

Phase 3: Verification

Check: Cp vs Cpk difference indicates centering issue (Cp >> Cpk = off-center). Distribution is approximately normal (histogram, normality test). Gate: Capability computed, centering assessed, normality verified.

Phase 4: Output

Return capability indices with defect rate estimates.

Output Format

{
  "capability": {"cp": 1.8, "cpk": 1.45, "ppm_defective": 27},
  "centering": {"mean": 50.2, "target": 50.0, "offset_pct": 0.4},
  "specs": {"usl": 55, "lsl": 45, "target": 50},
  "metadata": {"samples": 200, "sigma_method": "rbar_d2", "normality_p": 0.35}
}

Examples

Sample I/O

Input: USL=55, LSL=45, μ=50.2, σ=1.5 Expected: Cp = (55-45)/(6×1.5) = 1.11. Cpk = min((55-50.2)/4.5, (50.2-45)/4.5) = min(1.07, 1.16) = 1.07. Below 1.33 target.

Edge Cases

InputExpectedWhy
μ exactly at targetCp = CpkPerfectly centered
μ outside specsCpk < 0Process mean beyond specification limit
One-sided spec onlyUse Cpk for that side onlye.g., surface finish has only USL

Gotchas

  • σ estimation method: Use within-subgroup σ (R̄/d₂), NOT overall σ. Overall σ includes between-subgroup variation that inflates σ and understates Cpk.
  • Non-normal data: Cpk assumes normality. For skewed data (surface finish, concentricity), use Box-Cox transformation or non-parametric capability indices.
  • Short-term vs long-term: Cp/Cpk are short-term (within subgroup variation). Pp/Ppk use overall variation (long-term). Customers often want Ppk.
  • Sample size confidence: Cpk from 30 samples has wide confidence intervals. Report confidence intervals alongside point estimates.
  • Cpk ≠ defect-free: Even Cpk=2.0 has a theoretical defect rate (~0.002 PPM). For ultra-critical applications, higher Cpk or process validation is required.

Scripts

ScriptDescriptionUsage
scripts/cpk.pyCompute Cp, Cpk, Cpm, and PPM defective from process datapython scripts/cpk.py --help

Run python scripts/cpk.py --verify to execute built-in sanity tests.

References

  • For Cp/Cpk/Pp/Ppk comparison, see references/capability-indices.md
  • For non-normal capability analysis, see references/non-normal-capability.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.95%
按下载量换算45

Claude

28.93%
按下载量换算37

Cursor

18.39%
按下载量换算24

Gemini CLI

7.93%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills