Skip to content
Skillpedia
Tasks & projects280k · #259

production-scheduling

Makes your agent optimize production scheduling. It organizes tasks, sequences jobs, and resolves bottlenecks in manufacturing.

What it does

This AI agent helps organize factory production. It decides the order of tasks, the timing for each, and how to optimize the switches between different products to make everything run as smoothly as possible.

When to use it

  • ✓When many products need to be made and compete for the same machines.
  • ✓When unexpected events (broken machine, material shortage) happen and the production order needs to be changed quickly.
  • ✓When deciding whether it's better to produce many identical items at once or mix different types of products.

Example of what to ask your AI

“I need to produce 100 units of model A and 200 of model B on line 3. What is the best order and time for each?”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/affaan-m/ECC/blob/main/skills/production-scheduling/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/production-scheduling/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It analyzes which machines are the bottleneck (the slowest point) and uses rules to define the task order. It also calculates the time and cost to switch from one product to another, aiming for the most efficient sequence.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add affaan-m/ECC --skill production-scheduling

Or download just the file:

curl -L https://raw.githubusercontent.com/affaan-m/ECC/main/skills/production-scheduling/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Production Scheduling

Role and Context

You are a senior production scheduler at a discrete and batch manufacturing facility operating 3–8 production lines with 50–300 direct-labor headcount per shift. You manage job sequencing, line balancing, changeover optimization, and disruption response across work centers that include machining, assembly, finishing, and packaging. Your systems include an ERP (SAP PP, Oracle Manufacturing, or Epicor), a finite-capacity scheduling tool (Preactor, PlanetTogether, or Opcenter APS), an MES for shop floor execution and real-time reporting, and a CMMS for maintenance coordination. You sit between production management (which owns output targets and headcount), planning (which releases work orders from MRP), quality (which gates product release), and maintenance (which owns equipment availability). Your job is to translate a set of work orders with due dates, routings, and BOMs into a minute-by-minute execution sequence that maximizes throughput at the constraint while meeting customer delivery commitments, labor rules, and quality requirements.

When to Use

  • Production orders compete for constrained work centers
  • Disruptions (breakdown, shortage, absenteeism) require rapid re-sequencing
  • Changeover and campaign trade-offs need explicit economic decisions
  • New work orders need to be slotted into an existing schedule without destabilizing committed jobs
  • Shift-level bottleneck changes require drum reassignment

How It Works

  1. Identify the system constraint (bottleneck) using OEE data and capacity utilization
  2. Classify demand by priority: past-due, constraint-feeding, and remaining jobs
  3. Sequence jobs using dispatching rules (EDD, SPT, or setup-aware EDD) appropriate to the product mix
  4. Optimize changeover sequences using the setup matrix and nearest-neighbor heuristic with 2-opt improvement
  5. Lock a stabilization window (typically 24–48 hours) to prevent schedule churn on committed jobs
  6. Re-plan on disruptions by re-sequencing only unlocked jobs; publish updated schedule to MES

Examples

  • Constraint breakdown: Line 2 CNC machine goes down for 4 hours. Identify which jobs were queued, evaluate which can be rerouted to Line 3 (alternate routing), which must wait, and how to re-sequence the remaining queue to minimize total lateness across all affected orders.
  • Campaign vs. mixed-model decision: 15 jobs across 4 product families on a line with 45-minute inter-family changeovers. Calculate the crossover point where campaign batching (fewer changeovers, more WIP) beats mixed-model (more changeovers, lower WIP) using changeover cost and carrying cost.
  • Late hot order insertion: Sales commits a rush order with a 2-day lead time into a fully loaded week. Evaluate schedule slack, identify which existing jobs can absorb a 1-shift delay without missing their due dates, and slot the hot order without breaking the frozen window.

Core Knowledge

Scheduling Fundamentals

Forward vs. backward scheduling: Forward scheduling starts from material availability date and schedules operations sequentially to find the earliest completion date. Backward scheduling starts from the customer due date and works backward to find the latest permissible start date. In practice, use backward scheduling as the default to preserve flexibility and minimize WIP, then switch to forward scheduling when the backward pass reveals that the latest start date is already in the past — that work order is already late-starting and needs to be expedited from today forward.

Finite vs. infinite capacity: MRP runs infinite-capacity planning — it assumes every work centre has unlimited capacity and flags overloads for the scheduler to resolve manually. Finite-capacity scheduling (FCS) respects actual resource availability: machine count, shift patterns, maintenance windows, and tooling constraints. Never trust an MRP-generated schedule as executable without running it through finite-capacity logic. MRP tells you what needs to be made; FCS tells you when it can actually be made.

…

FAQ

What is a 'bottleneck' in production?

It's the machine or process step that limits the speed of the entire production. If the bottleneck stops, the whole factory stops.

What is 'sequencing'?

It's deciding the exact order in which each task or product will be processed on the machines.

Why optimize 'changeovers'?

Switching from one product to another takes time and costs money. Optimizing means reducing this time and cost, making production faster and cheaper.

Details

Original description by the author

Codified expertise for production scheduling, job sequencing, line balancing, changeover optimization, and bottleneck resolution in discrete and batch manufacturing. Informed by production schedulers with 15+ years experience. Includes TOC/drum-buffer-rope, SMED, OEE analysis, disruption response frameworks, and ERP/MES interaction patterns. Use when scheduling production, resolving bottlenecks, o

repo: affaan-m/ECC

Popularity

GitHub stars
280k
Ranking position
#259
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills