work/shoppin-pattern-engine.md
year: 2026 role: Senior Product Engineer · Shoppin status: live stack: Pythonstack: Computer Visionstack: LLMsstack: CAD / ASTM DXF

Pattern engine

Turns a garment image + spec into a factory-ready ASTM sewing pattern in minutes.
Pattern engine cover

An agent-based pattern-making engine that turns a garment image and its spec into a production-ready, fully-graded ASTM sewing pattern (CAD-level DXF), collapsing what is normally days of expert manual work into minutes.

Pattern-making is the quiet bottleneck in fashion. A master pattern-maker is expensive and, on a good day, drafts maybe two to four patterns. Shoppin is built on custom garments, and almost every order is a different item, and you can't run a made-to-order supply chain when each new design waits days for a hand-drafted pattern. This engine came straight out of that pain.

Because the garment is our own generated design, our data already carries the context of what needs to be made. I feed the image and that spec into the engine and it produces a proper CAD-software-level DXF for the pattern: panels, seam allowances, grading, the works. Under the hood it's deliberately hybrid: an LLM reads the garment and picks operators, but deterministic geometry owns every coordinate, ease, and grade, so the output is repeatable rather than hallucinated. I calibrated and validated it against a real industry CAD oracle.

There's no single "correct" pattern: a garment can be drafted many valid ways; it has to make sense. The goal was to hand the master a near-perfect starting draft, not replace them. From internal benchmarks and a lot of consulting with the pattern masters, it landed in a good state: the master's throughput went from a few patterns a day to nine or ten, applying years of expertise to finish drafts instead of starting from a blank table.

metrics

last updated Jul 15, 2026 · view rendered →