Fjsp repair and validate

From XuShuwenn/RedAct · View interactive version

Fjsp repair and validate is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Repair and optimize flexible job shop schedules under downtime and policy budgets, producing validated JSON/CSV outputs.

How to use this skill

Skill file

Flexible Job Shop Repair and Validation

This skill provides a reusable workflow to repair an existing (baseline) schedule for a flexible job shop with machine downtime and policy budgets, and to produce validated outputs. It is intended for tasks where a baseline plan may be infeasible or suboptimal due to machine unavailability and budget rules limiting deviation from baseline decisions.

When to Use

Activate this skill when you must:

Core Workflow

Follow these phases. Each phase ends with concrete checks to catch errors early.

Phase 0: Input ingestion and normalization

Phase 1: Precedence and resource context

Phase 2: Feasibility-first repair

1) Freeze logic (if applicable):

2) Candidate generation:

3) Budget-aware pruning and scoring:

4) Commit the best candidate:

Phase 3: Makespan-focused refinement (optional)

Phase 4: Output generation and consistency

Verification

Perform these verifications before finalizing outputs:

Success criteria:

Common Pitfalls and Concrete Fixes

Pitfall: Preserving a frozen baseline operation that is actually infeasible

Pitfall: Parser mismatches with the instance format

Pitfall: Overweighting baseline machine in scoring, missing earlier feasible alternates

Pitfall: Not evaluating alternates unless a strict condition triggers

Pitfall: Incorrect downtime intersection logic

Pitfall: Output inconsistency between JSON and CSV

Pitfall: Misreported makespan

Optional Script Usage

This repository includes a generic validator script to confirm feasibility and budget compliance of generated schedules and the equality of JSON/CSV outputs.

Example:

Command:

What it checks:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.