six-sigma-r

six-sigma-r is a skill for Claude Code, Codex from robustagile/six-sigma-in-r-skill. It costs 339 tokens per session (1,921 once invoked), scanned A, original, Apache-2.0.

A guide for writing R code for Six Sigma and statistical process control. Six Sigma is a method for reducing defects; statistical process control uses data to monitor whether a process is stable and meeting requirements.

In plain words
What is it for?
Use it to create control charts, process-capability measures, defect-rate and sigma calculations, Pareto charts, distributions, regressions, correlations, and hypothesis tests in R.
Why use it?
It maps practical quality questions to suitable analyses and produces runnable code. It also helps choose between a one-off script or reusable function and between saved or inline plots.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create control charts, process-capability measures, defect-rate and sigma calculations, Pareto charts, distributions, regressions, correlations, and hypothesis tests in R.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robustagile/six-sigma-in-r-skill/six-sigma-r
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add robustagile/six-sigma-in-r-skill --skill six-sigma-r
Clone the repo
git clone --depth 1 https://github.com/robustagile/six-sigma-in-r-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for six-sigma-r

README.md
[![agentmods](https://agentmods.dev/badge/skills/robustagile/six-sigma-in-r-skill/six-sigma-r/github.svg)](https://agentmods.dev/skills/robustagile/six-sigma-in-r-skill/six-sigma-r)
Your own site
<a href="https://agentmods.dev/skills/robustagile/six-sigma-in-r-skill/six-sigma-r"><img src="https://agentmods.dev/badge/skills/robustagile/six-sigma-in-r-skill/six-sigma-r/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for six-sigma-r

Your own site · 80×15
<a href="https://agentmods.dev/skills/robustagile/six-sigma-in-r-skill/six-sigma-r"><img src="https://agentmods.dev/badge/skills/robustagile/six-sigma-in-r-skill/six-sigma-r.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 339 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,921 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00339 $0.01921
Opus 5 $0.00169 $0.00960
Sonnet 5 $0.00068 $0.00384
Haiku 4.5 $0.00034 $0.00192

Measured 12d ago against content hash 14d6406dfcbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

six-sigma-r scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/six-sigma-r/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Six Sigma in R

Produce correct, runnable R code for Six Sigma and statistical-process-control problems. The skill is organized by task, not by statistical method — a user rarely asks for "a chi-square test", they ask "is my defect rate different from the target?". Map the request to the right technique, then emit code.

Before writing code: confirm two choices

Different users want different output shapes. Before producing code, ask the user once per session (skip if the request already makes it obvious, or if the user has answered previously):

  1. Script or function?
    • Script: a self-contained, top-to-bottom .R file with the user's data (or a clearly marked placeholder) baked in. Run-it-and-see.
    • Function: a reusable my_cpk(x, lsl, usl)-style definition the user can drop into their project and call on arbitrary data.
  2. Plot output: file or inline?
    • File: wrap plot calls in png(filename="...") / dev.off() — good for scripts run from the terminal.
    • Inline: no device wrapper — plot renders in the user's RStudio / Quarto / notebook session.

If the user phrases the request as "write me a function that…", default to function + inline and don't ask. If they say "a script to analyze this CSV", default to script + file. Ask only when ambiguous.

Plotting: base R by default

Use base R graphics (plot, barplot, boxplot, hist, pie, abline, lines, points, segments) as the default. Base R covers every chart this skill produces — including horizontal bars (barplot(..., horiz=TRUE)), stacked bars (pass a matrix), and Pareto overlays. Base R has no external dependency and keeps scripts short.

Use ggplot2 only when the user explicitly asks for it, when they mention tidyverse / ggplot, or when a visualization genuinely benefits (e.g. grouped scatter with color aesthetics). When you do use ggplot2, load it explicitly with library(ggplot2) at the top.

Map: what the user wants → which reference to read

The references below contain the working code templates. Read the one that matches the task before emitting code — don't guess formulas from memory, especially for control-chart limits and capability indices, where the constants matter.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 72 lines · 339 tokens per session scan A 14d6406dfcbe

Subscribe to this mod's changes

six-sigma-r is a skill published in the GitHub repository robustagile/six-sigma-in-r-skill (12 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 339 tokens to every session and 1,921 once invoked, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

add-yardstick-metric

Guide for creating new yardstick metrics. Use when a developer needs to extend yardstick with a custom performance metric, including numeric, class, probability, ordered probability, survival (static, dynamic, integrated, linear predictor), and quantile metrics.

tidymodels/skills · 55 tokens

imaging-data-commons

Query and download public cancer imaging data from NCI Imaging Data Commons. Invoke for any question about IDC collections, cancer imaging datasets, DICOM data access, radiology (CT, MR, PET) or pathology AI training sets, metadata queries, visualization, or license checks — even when the user doesn't explicitly…

K-Dense-AI/scientific-agent-skills · 75 tokens

lab-hardware-cad

Design custom laboratory hardware as parametric build123d models and export fabrication-ready STEP, STL, and DXF files - microfluidic chips and molds, optomechanical mounts and breadboard adapters, cuvette and microplate holders, tube racks, animal-behavior rigs, and 3D-printed instrument fixtures. Use when a research…

K-Dense-AI/scientific-agent-skills · 106 tokens

onekgpd

Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants. Use when a question is about individuals or variants in the 1000 Genomes Project cohort: which individuals carry variants matching specific criteria in a gene or region, which individuals…

K-Dense-AI/scientific-agent-skills · 143 tokens

pkpd-modeling

Pharmacokinetic and pharmacodynamic modelling and simulation - non-compartmental analysis, compartmental and population PK, PK/PD and exposure-response, TMDD, PBPK orientation, bioequivalence, allometric scaling and first-in-human dose, drug interaction prediction, and Bayesian therapeutic drug monitoring. Use when…

K-Dense-AI/scientific-agent-skills · 273 tokens

statistical-analysis

Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required…

K-Dense-AI/scientific-agent-skills · 111 tokens