spc-assistant
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "spc-assistant" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7735f8be8f78f2c038871819634991723d1730cf4b7cbbb04b7d5b25e0ed233b. Verify the upstream source and version against https://skillhub.cn/skills/user_2241deda/spc-assistant before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
SPC statistical analysis and anomaly-detection assistant supporting Xbar‑R and X‑MR control charts, the eight standard rule checks, and Cpk calculation; includes MES-linked real-time monitoring with a three-tier warning architecture and supports automatic line stop and SMS alerts.
Introduction source: third_party · user_2241deda · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "spc-assistant"
description: "SPC统计分析与判异助手,支持Xbar-R/X-MR控制图、八大判异规则检测、Cpk计算;含MES联动实时监控+三级预警架构,支持自动停线和短信报警"SPC判异助手
任务目标
- 本 Skill 用于:Xbar-R管制图分析、八大判异原则检测、过程能力Cpk评估
- 能力包含:自动计算统计量、管制界限、判异检测、能力指数计算、改进建议生成
- 触发条件:用户提供过程数据并请求SPC分析或Cpk计算时
操作步骤
1. 数据准备与引导
- 引导用户提供以下信息:
- 过程数据文件(CSV/Excel格式,至少20组子组)
- 规格上限(USL)
- 规格下限(LSL)
- 数据格式要求参见 references/data_format.md
- 验证数据完整性:子组数量≥20,数据格式正确
2. 执行SPC分析
- 调用脚本计算:
scripts/spc_analyzer.py --data-file <文件路径> --usl <USL值> --lsl <LSL值> --format raw - 脚本返回JSON格式结果,包含:
- 基础统计量(Xdbar、Rbar、标准差估计)
- 管制界限(Xbar图和R图的UCL/LCL/CL)
- 判异检测结果(违反的规则及具体点位)
- Cpk值及能力等级判定
3. 结果分析与报告生成
- 智能体根据脚本输出生成结构化报告:
- 基础统计汇总:展示关键统计量
- 管制界限表:列出Xbar图和R图的控制限
- 判异结果列表:详细说明违反的规则和点位
- 过程能力评估:Cpk值 + 能力等级(充足/尚可/不足)
- 改进建议:根据Cpk等级和判异结果生成针对性建议
4. 异常处理
- 若子组数量不足20组:提示用户补充数据
- 若数据格式错误:引导用户参考数据格式规范
- 若无规格限:可跳过Cpk计算,仅进行判异分析
资源索引
- 核心脚本:scripts/spc_analyzer.py(用途:SPC计算引擎,参数:data-file、usl、lsl、format)
- 数据格式规范:references/data_format.md(何时读取:数据准备阶段)
注意事项
- 确保输入数据质量,避免异常值影响分析结果
- Cpk计算需要完整的双向规格限(USL和LSL)
- 八大判异原则基于Nelson Rules标准
- 报告输出可直接用于质量月报、8D报告等正式文档
使用示例
示例1:标准分析流程
用户:帮我分析这个生产过程的控制图数据,USL=100,LSL=90
流程:
1. 获取数据文件(CSV格式)
2. 执行:scripts/spc_analyzer.py --data-file ./process_data.csv --usl 100 --lsl 90 --format raw
3. 解析JSON结果,生成包含统计量、管制限、判异点、Cpk的完整报告
示例2:仅判异检测(无规格限)
用户:检查这组数据有没有异常点
流程:
1. 获取数据文件
2. 执行:scripts/spc_analyzer.py --data-file ./data.csv --format raw(不传usl/lsl)
3. 展示判异结果和管制界限Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供SPC统计分析与判异助手功能,支持Xbar-R/X-MR控制图、八大判异规则检测、Cpk计算
- 具有明确的工业质量管理应用场景,受众为质量工程师、生产管理人员等
- 实用价值较高,属于明确场景的通用工具
Areas to improve
-
触发条件描述较为笼统 Reported severity: Minor
skill_body中触发条件描述为'用户提供过程数据并请求SPC分析或Cpk计算时',缺少更具体的触发关键词示例,存在一定歧义风险。
Recommendation: 建议在触发条件中补充更具体的关键词示例,如'分析控制图'、'计算Cpk'、'SPC判异'等,以提升触发精准度。
Highlights
- 结构完整,包含任务目标、操作步骤、资源索引、注意事项、使用示例
- Phase划分合理,有出口条件(数据验证、异常处理),含端到端示例
- frontmatter完整,单文件未超过500行
Areas to improve
-
未明确说明脚本的错误返回码处理机制 Reported severity: Minor
操作步骤中提到调用spc_analyzer.py脚本,但未明确说明脚本的错误返回码处理机制,以及文件路径不存在等IO异常的处理。
Recommendation: 建议在异常处理部分补充对脚本执行失败的详细处理逻辑,包括错误返回码解析和IO异常处理。
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.