Statistical Process Control
暂无简介
- License 许可
- MIT
- 所属仓库
- rhCat/skillChip
- 最近更新
- 2026-07-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- Statistical Process Control
- perks
- [ "chart", "drilldrift" ]
- skill
- cws-spc
02 资源文件 21
- 参考文档blueprint.json2.3 KB
- 参考文档index.json2.3 KB
- 参考文档ledger.json397 B
- 参考文档perks.json555 B
- 参考文档perks/chart/manifesto.json345 B
- 参考文档perks/chart/metadata.json934 B
- 参考文档perks/chart/src/contracts.json444 B
- 脚本perks/chart/src/cws_spc_chart.py3.7 KB
- 脚本perks/chart/src/cws_spc_chart.sh243 B
- 参考文档perks/chart/test/case.json280 B
- 参考文档perks/chart/test/fixture/envelope.json52 B
- 参考文档perks/chart/test/fixture/series.json78 B
- 参考文档perks/drilldrift/manifesto.json329 B
- 参考文档perks/drilldrift/metadata.json717 B
- 参考文档perks/drilldrift/src/contracts.json462 B
- 脚本perks/drilldrift/src/cws_spc_drilldrift.py2.8 KB
- 脚本perks/drilldrift/src/cws_spc_drilldrift.sh258 B
- 参考文档perks/drilldrift/test/case.json241 B
- 参考文档perks/drilldrift/test/fixture/benign.json78 B
- 参考文档perks/drilldrift/test/fixture/envelope.json52 B
- 参考文档perks/drilldrift/test/fixture/seeded.json80 B
03 SKILL.md 正文
cws-spc — instruments under SPC (P0.5)
An instrument is only trustworthy while it stays inside its calibrated envelope. This skill puts the
chip's detectors (and any measured process) under statistical process control: chart draws the control
chart — per-detector center line + UCL/LCL at SIGMA_K sigma — over a time-series of measurements
(e.g. FA/kfn per detector per run) against a calibrated envelope, and raises a 3-sigma-style drift
alarm on any breach. drilldrift is the falsifiability drill: the alarm must fire on a seeded
regression and stay silent on a benign series — both poles, or the instrument is either blind or noise.
What to look out for
spc.json carries {status: ok|drift, alarms[], charts:{<detector>: {mean, sigma, ucl, lcl, breaches[], in_control, envelope_source}}}. envelope_source: baseline means no calibrated envelope was supplied and
the first BASELINE_N points self-calibrated one — honest, but weaker than a calibrated reference.
drilldrift.json carries {ok, legs: {seeded, benign}}. A nonzero exit IS the drift/drill verdict.
LOGS TO CHECK: the per-tool JSON line + the executor run-ledger.
Perks
| perk | tool | nature |
|---|---|---|
chart |
cws_spc_chart |
control chart + drift alarm over a series vs its envelope — read-only, the exit code is the verdict |
drilldrift |
cws_spc_drilldrift |
the oracle drill: seeded regression must alarm, benign must stay clean (bundled fixtures; vars-free) |
chart— setSERIES({detector: [values]}JSON). OptionalENVELOPE({detector: {mean, sigma}}),SIGMA_K(default 3),BASELINE_N(default 8, self-calibration window when no envelope).drilldrift— claim with no vars for the bundled drill;SEEDED/BENIGN/ENVELOPEoverride for a custom corpus.
How to use it
Pick a perk, copy ledger.json → task-ledger.json, fill its vars + record_store, then
validate → compose → compile → oversight → executor.
04 同仓库更多 Skills
Vercel Deploy
暂无简介
Audio Transcribe
暂无简介
Speech (OpenAI TTS)
暂无简介
Skill Installer
暂无简介
demo-skill
A demo skill used as a test fixture for the validate perk. Use when checking that quick_validate.py accepts a well-formed SKILL.md.
demo-skill
A demo skill used as a test fixture for generating agents/openai.yaml. Use when validating the gen_openai_yaml perk.