| name | garment-ready-check |
| description | Run the pattern gate on a garment marker (pieces placed on fabric): valid pieces + grain, fabric fit, seam allowance, marker efficiency (zero-waste as a number), human-fit tables. Trigger: "is this pattern cuttable", "check my marker", "validate this sewing pattern". NOT a drape simulator and NOT a grading service (yet).
|
| kind | skill |
| license | MIT |
| runtimes | ["claude-code","codex","hermes"] |
garment-ready-check
When to use
Any sewing-pattern marker claiming to be cut-and-sew ready — generated by
brief-to-blueprint or transcribed from an existing pattern.
What it does
- F1 pieces: valid polygons, unique names, grain angle declared (0/45/90).
- F2 fabric-fit: every piece inside the fabric width, no bbox overlaps.
- F3 seam allowance ≥
data/garment.yml minimum.
- F4 marker efficiency ≥ the zero-waste floor.
- F5 human-fit: declared dimensions inside the garment's fit table; unknown
garment types are not measured ⇒ fail.
- F6 seam/symmetry pairs: declared pairs match in length within tolerance
(grading breaks symmetric pieces first).
- Factory export on request:
python3 pipeline/dxf_aama.py marker.json out.dxf
— the AAMA subset every pattern CAD imports, round-trip verified.
Example
python3 examples/apron/generate.py marker.json
python3 pipeline/pattern_gate.py marker.json --json
Verification (eval-with-teeth)
Success may be declared ONLY when the gate exits 0. The gate is held by tests
that mutate the golden apron eight known-bad ways and assert each fails:
python3 -m pytest tests/test_pattern_gate.py -q
Safety
A READY marker cuts; it does not guarantee drape, sewability order, or fit
beyond the declared dimensions — make a muslin (the garment world's prototype).
Overlap check is bbox-level, not exact nesting; stated in every report.
Cross-runtime
Python + PyYAML; exit codes gate any CI.