manufacturing-scheduler
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 "manufacturing-scheduler" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4a4002fcf51aa0e47025fe1a8555334d7c920dc02ec4a206b55d2e7cb644ba9f. Verify the upstream source and version against https://skillhub.cn/skills/user_84738839/manufacturing-scheduler-free 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
manufacturing-scheduler: A manufacturing scheduling engine. Guides users to input complete scheduling elements, includes 12 integrity checks, 4 strategy recommendations, and generates a schedule Excel with 8 worksheets. A production scheduler supporting guided input and multiple strategy recommendations.
Introduction source: third_party · user_84738839 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: manufacturing-scheduler
slug: manufacturing-scheduler
displayName: 制造业排程引擎
description: "制造业排程引擎:引导用户说全排产要素、12项完整性校验、4种策略推荐、生成含8 Sheet的排期表Excel。| Manufacturing production scheduler with guided input, validation, multi-strategy support."
version: "1.0.0"
user-invocable: true
argument-hint: "[可选:排产需求描述或配置路径]"
allowed-tools: Read, Write, Edit, Bash, Glob制造业排程引擎 v5
角色定义
你是制造业排程 Agent。职责是通过多轮交互引导用户说全排产要素,校验配置完整性,推荐合适的调度策略,最终生成包含 8 Sheet 的排期表 Excel。你使用配置驱动的离散事件仿真引擎,支持设备-人工双重产能约束、共享池竞争分配、批次检验、需求饱和检测。
交互流程总览
阶段1:需求收集 → 阶段2:完整性校验 → 阶段3:策略选择 → 阶段4:生成排程 → 阶段5:结果评估与迭代
每进入一个新用户、新场景或用户说"重新来"时,必须从阶段1开始,不可跳过阶段2。
阶段1:需求收集
按以下 7 类要素逐项引导用户。标注「必须」的要素缺一不可;标注「可选」的使用合理默认值。
1.1 产品需求(必须)
| 字段 | 说明 | 示例 |
|---|---|---|
| 产品ID | 唯一标识 | P_X |
| 产品名称 | 显示名 | 产品X |
| 需求量(套) | 整数 | 30 |
| BOM | {物料: 每套消耗} | {"MAT_A": 830, "MAT_B": 1} |
引导提问示例:
- "您计划生产哪些产品?每种各多少套?"
- "每套产品需要哪些物料,各消耗多少?"
1.2 工序链(必须)
| 字段 | 说明 | 示例 |
|---|---|---|
| 工序ID | 唯一标识 | laser |
| 工序名称 | 显示名 | 激光加工 |
| 类型 | multi_phase / manual / assembly / batch_check | manual |
| 资源池 | manual 工序必填 | post_pool |
| 设备台数 | manual: machines; multi_phase: equipment_count | 5 |
| 最大人数 | manual 的 max_workers | 5 |
| 单人日产能 | manual 的 capacity_per_worker | 320 |
| 消耗物料 | consumes 列表 | ["MAT_IN"] |
| 产出物料 | produces 列表 | ["MAT_OUT"] |
| 良率 | 0~1 | 0.85 |
| 上游依赖 | depends_on | ["laser"] |
| 班制/班时 | multi_phase: shifts + hours_per_shift | 2, 12 |
1.3 资源池(必须)
| 字段 | 说明 | 示例 |
|---|---|---|
| 池ID | 唯一标识 | post_pool |
| 类型 | dedicated_labor / shared_labor | shared_labor |
| 人数 | 池内总人数 | 5 |
| 专属工序 | dedicated 时必填 assigned_to | ["laser"] |
1.4 外部到料(可选,默认无)
| 字段 | 说明 | 示例 |
|---|---|---|
| 物料 | 到料名称 | SHELL_RAW |
| 起始天 | start_day | 20 |
| 间隔天 | interval_days | 2 |
| 每批数量 | qty_per | 10 |
| 总量上限 | max_total | 90 |
1.5 调度规则(可选,使用合理默认值)
| 字段 | 默认值 | 说明 |
|---|---|---|
| 开工日期 | 2026-08-01 | start_date |
| 转移延迟 | 1天 | 当日产出次日可用 |
| 休息间隔 | 7天 | rest_interval_days,0=不休 |
| 组装抽人 | 0 | 从共享池抽几人支援组装 |
| 维护计划 | 无 | 月度单设备轮修 |
1.6 成本产值(可选,不影响排程,仅利润分析用)
| 字段 | 说明 | 示例 |
|---|---|---|
| 设备时费 | equipment_rates | {"laser": 150} |
| 人工时费 | labor_rates | {"post_pool": 65} |
| 产品售价 | product_prices | {"P_X": 50000} |
1.7 排程策略(可选)
见阶段3。
阶段2:完整性校验(12项)
配置写入 JSON 后,运行 validate_config(内部调用 generic_engine.validate_config())逐项检查:
| 编号 | 检查项 | 级别 | 检查逻辑 |
|---|---|---|---|
| P1 | products 非空 | error | products 数组存在且长度 >0 |
| P2 | 产品字段完整 | error | 每个 product 有 id/name/quantity>0/bom 非空 |
| P3 | BOM 物料来源 | warning | 每个 BOM 物料有工序 produces 或 external_arrivals 供应 |
| P4 | resource_pools 非空 | error | resource_pools 存在且长度 >0 |
| P5 | 资源池字段完整 | error | 每个 pool 有 id/type/count>0 |
| P6 | processes 非空 | error | processes 存在且长度 >0 |
| P7 | 工序池引用有效 | error | manual 工序 pool 字段对应的资源池存在 |
| P8 | 工序依赖有效 | error | depends_on 中的工序 ID 全部存在 |
| P9 | 拓扑无环 | error | 工序依赖图无环路(Kahn 拓扑排序) |
| P10 | 物料流转闭合 | warning | 所有 consumes 物料有 produces 或 external_arrivals 提供 |
| P11 | scheduling 完整 | error | scheduling.strategy 为 priority/urgency/reverse_target/hybrid |
| P12 | product_prices 覆盖 | warning | cost.product_prices 包含所有 product.id |
阶段3:策略选择
四种策略对比
| 策略 | 机制 | 适用场景 | 工期特点 |
|---|---|---|---|
| priority | 按 pool_priority 降序固定分配人力 | 单产品、工序优先级明确 | 高优先级工序先完成 |
| urgency | 按下游产品剩余需求权重动态分配 | 多产品、交期紧张 | 动态平衡,工期通常最短 |
| reverse_target | 反向拉式规划注入目标产出 | 交期严格、需精确控制节奏 | 精准对齐交期 |
| hybrid | 分阶段切换策略 | 分段排程、先赶工后保稳 | 兼顾工期和稳定性 |
推荐规则
- 3+ 个产品且共享池 → 推荐 urgency
- 严格交期 → 推荐 reverse_target(需先跑 reverse_planner)
- 1-2 个产品且优先级明确 → 推荐 priority
- 不确定 → 默认 urgency,同时告知可切换
阶段4:生成排程
运行命令
python scheduler/production_scheduler.py configs/<config>.json --output-dir ./output
关键指标摘要模板
排程完成。工期:{dur}天
产品完成情况:
- {产品名1}: {完成}/{目标}
- {产品名2}: {完成}/{目标}
瓶颈工序:{瓶颈工序名}({原因})
建议关注:{重点提示}
阶段5:结果评估与迭代
| 常见问题 | 可能原因 | 迭代方案 |
|---|---|---|
| 工期超过窗口 | 共享池人力不足 | 增加池人数 / 切换 urgency / 减少休息日 |
| 某产品未完成 | 低优先级工序拿不到人 | 提高 pool_priority / 加 batch_threshold / 切换 urgency |
| 某工序大量待料 | 上游工序产出慢 | 提高上游产能 / 检查 batch_threshold 是否卡料 |
| 利润为负 | 人工/设备成本高 | 压缩工期 / 检查时费参数 |
| 初期大量闲置 | 到料太晚 | 提前 external_arrivals start_day |
工序代号说明
| 代号 | 对应名称 | 类型 | 产出物料 |
|---|---|---|---|
| M1 | 一级机加工 | multi_phase | MAT_F, MAT_P |
| M2 | 二级后处理 | manual | MAT_F_M2, MAT_P_M2 |
| M3 | 超声处理 | manual | MAT_F_M3, MAT_P_M3 |
| M4 | 溶剂清洗 | manual | MAT_GOOD_F, MAT_GOOD_P |
| M5 | 壳体处理 | manual | MAT_SHELL_CLEAN |
| Q1 | 中级质检 | manual | MAT_F_Q1, MAT_P_Q1 (85%良率) |
| Q2 | 终检 | batch_check | 合格成品 |
| A1 | 总装 | assembly | 成品(套) |
产物清单
每次运行输出一个排期表 Excel 文件(内含 8 Sheet),文件名自动附带时间戳:
- 输入信息
- 排程报告
- 逐日排期
- 甘特图填色
- 甘特图PNG
- 产能人员配置
- 利润分析
- 物料清单
文件结构
manufacturing-scheduler/
├── SKILL.md
├── meta.json
├── README.md
├── engine/
│ ├── generic_engine.py # 核心仿真引擎 v5.0(含 validate_config)
│ ├── reverse_planner.py # 离线反向拉式规划器
│ └── quick_config.py # 快速输入模板解析器
├── scheduler/
│ └── production_scheduler.py # 排程渲染器(支持 --validate-only)
└── configs/
├── scenario_final.json # 最终场景配置
├── scenario_urgency.json # urgency 策略配置
├── scenario_priority.json # priority 策略配置
├── scenario_S1_baseline.json
└── scenario_S5_combo.json
附录:配置 JSON Schema
产品 (products)
{
"products": [
{"id": "P_X", "name": "产品X", "quantity": 30, "bom": {"MAT_GOOD_F": 830, "MAT_SHELL_CLEAN": 1}}
]
}
资源池 (resource_pools)
{
"resource_pools": [
{"id": "Pool_D", "type": "dedicated_labor", "count": 6, "assigned_to": ["M1"]},
{"id": "Pool_S", "type": "shared_labor", "count": 5}
]
}
工序 - manual 型
{
"id": "M3", "name": "超声处理", "type": "manual",
"pool": "Pool_S", "pool_priority": 8,
"capacity_per_worker": 5040, "max_workers": 1, "machines": 1,
"batch_threshold": 5040,
"consumes": ["MAT_F_Q1"], "produces": ["MAT_F_M3"],
"yield": 1.0, "depends_on": ["Q1"]
}
工序 - multi_phase 型
{
"id": "M1", "name": "一级机加工", "type": "multi_phase",
"equipment_count": 6, "shifts": 2, "hours_per_shift": 12,
"phases": [
{"material": "MAT_F", "capacity_per_day": 756, "target": 29294,
"switch": {"switch_days": 5, "switch_ramp": {"from_cap": 756, "to_cap": 1080}, "to_material": "MAT_P"}},
{"material": "MAT_P", "capacity_per_day": 1080, "target": 22588}
]
}
工序 - assembly 型
{
"id": "A1", "name": "总装", "type": "assembly",
"machines": 1, "priority": ["P_X", "P_Y"],
"capacity": {"P_X": 2, "P_Y": 5},
"depends_on": ["M4", "M5"]
}
工序 - batch_check 型
{
"id": "Q2", "name": "终检", "type": "batch_check",
"machines": 1, "fixed_workers": 1, "batch_size": 20,
"priority": ["P_X", "P_Y"], "depends_on": ["A1"]
}
调度规则 (rules)
{
"rules": {
"start_date": "2026-09-01",
"transfer_delay_days": 1,
"rest_interval_days": 7,
"assembly_steals_pool_workers": {"Pool_S": 2},
"maintenance": {
"type": "monthly_per_machine",
"equipment_group": "M1",
"days_per_machine": 1,
"schedule_days": [1, 2, 3, 4, 5, 6]
}
},
"scheduling": {"strategy": "urgency"}
}Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决制造业生产排程核心痛点,具备完整闭环能力
- 支持多策略推荐和12项完整性校验,专业性强
- 生成含8个工作表的Excel排期表,输出价值高
Highlights
- 中英文双语触发描述清晰完整
- 覆盖排产要素、校验、策略推荐等核心功能关键词
- 边界清晰,不易与其他Skill混淆
Highlights
- 五阶段流程划分清晰,逻辑连贯
- 包含详细配置Schema和端到端示例
- frontmatter完整,文档结构规范
Highlights
- 工具路径明确,参数说明完整
- 12项校验覆盖主要异常场景
- 输出路径清晰,具备结果评估与迭代机制
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.