Agent skill

Algo Mfg Cpk

by asgard-ai-platform in asgard-ai-platform/skills

Calculate Cpk process capability index to assess whether a process meets specification requirements.

MITAuto-check passed

Install Algo Mfg Cpk

skills CLI
$ npx skills add asgard-ai-platform/skills --skill algo-mfg-cpk -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install asgard-ai-platform/skills algo-mfg-cpk --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/asgard-ai-platform/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/algo-mfg-cpk .claude/skills/algo-mfg-cpk && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
algo-mfg-cpk
GitHub stars
242
Token cost
~1.1k tokens
SKILL.md length
419 words
Files
5 (incl. scripts, references)
Skills in repo
207
Repo updated
First seen
Licence
MIT

At a glance

Calculate Cpk process capability index to assess whether a process meets specification requirements.

  • Works in 4 steps: Input Validation → Core Algorithm → Verification → …
  • The user needs to evaluate process capability
  • SKILL.md covers Overview, When to Use, Algorithm and Output Format, plus 4 more sections
  • Runs Python scripts from its folder; calls python

What it does

Algo Mfg Cpk is an agent skill from asgard-ai-platform/skills. Calculate Cpk process capability index to assess whether a process meets specification requirements. Use this skill when the user needs to evaluate process capability, compare processes, or determine if quality targets are achievable — even if they say 'can our process meet spec', 'process capability', or 'Cpk calculation'.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `examples/sample_input.json`, `references/capability-indices.md` and `references/non-normal-capability.md`).

The repository describes itself as: 301 open-source coding agent skills across 22 domains — methodology, judgment & gotchas packaged as Claude Agent Skills for the Asgard AI Platform. The licence is MIT.

When your agent uses it

  • The user needs to evaluate process capability
  • Compare processes
  • Determine if quality targets are achievable — even if they say can our process meet spec
  • Process capability

Example prompts

  • “can our process meet spec”
  • “process capability”
  • “Cpk calculation”
  • “/algo-mfg-cpk”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Input Validation
  2. Core Algorithm
  3. Verification
  4. Output

What it can do on your machine

Read from SKILL.md and the folder at commit 4e7f4f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Algo Mfg Cpk loads about 1.1k tokens when it runs, and up to ~6.8k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 419 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from asgard-ai-platform/skills at commit 4e7f4f8, republished under its MIT licence (© asgard-ai-platform). 419 words, ~1,113 tokens.

Download SKILL.mdSave it as .claude/skills/algo-mfg-cpk/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
algo-mfg-cpk
description
Calculate Cpk process capability index to assess whether a process meets specification requirements. Use this skill when the user needs to evaluate process capability, compare processes, or determine if quality targets are achievable — even if they say 'can our process meet spec', 'process capability', or 'Cpk calculation'.
metadata.category
WP-48 製造演算法
metadata.tags
manufacturing, cpk, process-capability, quality

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

json
{
  "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.

Show full SKILL.md (173 more words)Show less
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

© asgard-ai-platform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references) in algo-mfg-cpk of asgard-ai-platform/skills.

  • SKILL.md
  • examples/sample_input.json
  • references/capability-indices.md
  • references/non-normal-capability.md
  • scripts/cpk.py

Open the folder on GitHubat commit 4e7f4f8

Compare with similar skills

Algo Mfg Cpk next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Algo Mfg Cpk compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Algo Mfg Cpk this skillasgard-ai-platform/skills242—~1.1kAutomated safety check: PassMIT
Meetingsalirezarezvani/claude-skills28k—~1.5kAutomated safety check: PassMIT
Indexabilitythedaviddias/Front-End-Checklist74k—~814Automated safety check: PassMIT
Meeting Minutesgithub/awesome-copilot40k2 repos~2kAutomated safety check: PassMIT
Meeting Action ItemsNousResearch/hermes-agent252k—~950Automated safety check: PassMIT
Meeting Notesoutline/outline41k—~551Automated safety check: PassCustom licence

Similar skills

  • Meetings

    alirezarezvani/claude-skills

    A skill your agent uses when someone wants to decide whether a meeting is worth calling, price a meeting in dollars, build a timeboxed agenda with desired outcomes, or turn messy meeting notes into…

    28k GitHub stars~1.5k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Indexability

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing a site for accidental noindex directives, investigating why important pages are not appearing in Google Search, or reviewing CMS settings that control indexing…

    74k GitHub stars~814 tokensUpdated 5 days ago
    Marketing & SEOAuto-check passed
  • Meeting Minutes

    github/awesome-copilot

    Official

    Generate concise, actionable meeting minutes for internal meetings.

    40k GitHub starsUsed in 2 repos~2k tokens
    Productivity & AutomationAuto-check passed
  • Meeting Action Items

    NousResearch/hermes-agent

    Turn meeting notes into cited decisions, owners, tickets. An agent skill from NousResearch/hermes-agent.

    252k GitHub stars~950 tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Meeting Notes

    outline/outline

    Create meeting notes in Outline from a template; use when the user wants an agenda, notes, or a follow-up document for a meeting.

    41k GitHub stars~551 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Meeting Cost Calculator

    microsoft/work-iq

    Official

    Calculate time spent in meetings per week or month — total hours, percentage of work time, attendee‑hours, and identify your most expensive recurring meetings.

    1k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

More from asgard-ai-platform/skills

All 207 skills in this repo
  • Algo Ecom Bm25

    asgard-ai-platform/skills

    Implement BM25 ranking function for e-commerce product search relevance scoring.

    242 GitHub stars~1.4k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Price Elasticity

    asgard-ai-platform/skills

    Calculate price elasticity of demand to quantify how price changes affect sales volume.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Bayesian

    asgard-ai-platform/skills

    Apply Bayesian averaging to rank items by combining observed ratings with prior expectations.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Elo

    asgard-ai-platform/skills

    Implement Elo rating system to rank items or players from pairwise comparison outcomes.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Rank Wilson

    asgard-ai-platform/skills

    Calculate Wilson Score confidence intervals for ranking items by positive proportion with sample size correction.

    242 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Algo Risk Altman Z

    asgard-ai-platform/skills

    Calculate Altman Z-Score to predict corporate bankruptcy probability from financial ratios.

    242 GitHub stars~1.5k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Algo Mfg Cpk

What does Algo Mfg Cpk do?

Calculate Cpk process capability index to assess whether a process meets specification requirements. Algo Mfg Cpk is an agent skill from asgard-ai-platform/skills. Calculate Cpk process capability index to assess whether a process meets specification requirements.

When should I use Algo Mfg Cpk?

Algo Mfg Cpk fits situations like: the user needs to evaluate process capability; compare processes; determine if quality targets are achievable — even if they say can our process meet spec; process capability.

How do I install Algo Mfg Cpk in Claude Code?

Run `npx skills add asgard-ai-platform/skills --skill algo-mfg-cpk -a claude-code`. Or copy the skill folder (algo-mfg-cpk in asgard-ai-platform/skills) into .claude/skills/algo-mfg-cpk in your project. Claude Code loads it when a task matches its description.

How do I install Algo Mfg Cpk in Codex?

Run `npx skills add asgard-ai-platform/skills --skill algo-mfg-cpk -a codex`. Or copy the skill folder (algo-mfg-cpk in asgard-ai-platform/skills) into .agents/skills/algo-mfg-cpk in your project. Codex loads it when a task matches its description.

Can I use Algo Mfg Cpk in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add asgard-ai-platform/skills --skill algo-mfg-cpk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/algo-mfg-cpk, .gemini/skills/algo-mfg-cpk, .github/skills/algo-mfg-cpk and .opencode/skills/algo-mfg-cpk in your project.

What does Algo Mfg Cpk need to run?

Going by SKILL.md and its folder, Algo Mfg Cpk needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Algo Mfg Cpk access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Algo Mfg Cpk safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Algo Mfg Cpk use?

Algo Mfg Cpk is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Algo Mfg Cpk use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.7k tokens, read only when the agent opens those files.

What are the alternatives to Algo Mfg Cpk?

Skills that share tags, products or a category with Algo Mfg Cpk: Meetings (alirezarezvani/claude-skills, 28k stars), Indexability (thedaviddias/Front-End-Checklist, 74k stars), Meeting Minutes (github/awesome-copilot, 40k stars) and Meeting Action Items (NousResearch/hermes-agent, 252k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Algo Mfg Cpk?

asgard-ai-platform (a GitHub organization) maintains it in asgard-ai-platform/skills, which has 242 GitHub stars. The repository holds 207 skills in this directory. The repository was last updated on June 6, 2026.

Source: asgard-ai-platform/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.