Install
openclaw skills install @duding-engicool/skill-inspection-sampling提供检验抽样全流程支持;当你需要设计抽样方案、处理待检数据、生成抽样计划、追踪抽样记录或分析抽样结果时使用;覆盖GB/T2828等标准抽样方法
openclaw skills install @duding-engicool/skill-inspection-sampling./sampling_schemes/(相对于用户工作目录)./sampling_records/(相对于用户工作目录)scheme_manager.py 创建抽样方案python scripts/scheme_manager.py create --name <方案名> --type <simple|stratified|systematic|cluster> --params <JSON参数>sample_size: 样本量(整数)sample_rate: 采样比例(浮点数,0-1之间,与sample_size二选一)strata_field: 分层字段(分层抽样必需)interval: 抽样间隔(系统抽样必需)cluster_field: 整群字段(整群抽样必需)python scripts/scheme_manager.py listpython scripts/scheme_manager.py get --name <方案名>python scripts/scheme_manager.py update --name <方案名> --params <JSON参数>python scripts/scheme_manager.py delete --name <方案名>data_parser.py 解析原始数据python scripts/data_parser.py --input <数据文件路径> --format <csv|excel|json> --output <解析结果JSON路径>sampler.py 执行抽样python scripts/sampler.py generate --data <解析后数据JSON路径> --scheme <方案名> --output <抽样结果JSON路径> --record| 类型 | 适用场景 | 算法特点 |
|---|---|---|
| 简单随机抽样 | 数据均匀、无特殊结构 | 完全随机、等概率 |
| 分层抽样 | 需要按类别均匀覆盖 | 先分层、层内随机 |
| 系统抽样 | 大批量、规律性数据 | 等间隔选取 |
| 整群抽样 | 群体为单位抽样 | 整群抽中、群内全检 |
./sampling_records/ 目录python scripts/scheme_manager.py record --id <记录ID> 查看历史记录analyzer.py 进行统计分析python scripts/analyzer.py --samples <抽样结果JSON路径> --original <原始数据路径> --output <报告JSON路径>| 维度 | 评分 | 说明 |
|---|---|---|
| T — 可信任度 | 9/10 | 纯文档/脚本技能,无外部依赖风险,支持中文交互 |
| R — 可靠性 | 9/10 | 有异常处理说明; 输出格式明确 |
| A — 适用性 | 9/10 | 有适用范围声明; 触发条件明确 |
| C — 规范性 | 10/10 | frontmatter 完整; 文档结构清晰; 内容充分 |
| E — 有效性 | 10/10 | 输出明确; 含使用示例; 文档详尽 |
| 总分 | 47/50 | 通过 |