Skill: sls-process-optimization · Paper: P. Pak, V. Alvarado, A. Barati Farimani, AI Agentic Selective Laser Sintering Process Optimization, arXiv:2608.25928 (2026)
On an open-source SLS4All Inova Mk1 (10 W blue diode laser), the paper’s agent had three resources: memory of every build, ASTM D638/D790 results, and tools for print profiles. Each batch, it proposed the next fill energy density, hotspot overlap and surface temperature, and a human approved it.
The skill keeps the paper’s 21 batches as a starting history. It reduces raw test curves and suggests bounded next steps, and the agent explains every change.
npx skills add BaratiLab/mechanical-engineering-skills --skill sls-process-optimization
pip install numpy scipy scikit-learn matplotlib
cd skills/sls-process-optimization
python scripts/sls.py --db builds.sqlite init --seed-paper
python scripts/sls.py --db builds.sqlite history --material "PA11 Onyx" --plot onyx.png

Batch scores (mean fraction of datasheet properties reached): O 0.42, P 0.36, Q 0.61, R 0.81.
python scripts/sls.py astm --test d638 --type 4 --csv t1.csv t2.csv t3.csv t4.csv t5.csv > tensile.json
python scripts/sls.py astm --test d790 --csv f1.csv f2.csv f3.csv > flex.json
python scripts/sls.py --db builds.sqlite result --batch R2 --from tensile.json
examples/ recover E = 1500 and Ef = 1100 MPa exactly.python scripts/sls.py --db builds.sqlite suggest --material "PA11 Onyx" --objective score
The suggester uses Gaussian-process expected improvement with these bounds:
It returns ranked candidates, the levers each one changes, and the warnings from past batches (here, batch O’s warping). The agent picks one or two levers and explains the physics, and the user approves before printing.
Replay check on the manual PA12 GF history. At each point the suggester saw only the batches up to that point:
| Batches seen | One lever in the suggestions | What actually happened |
|---|---|---|
| A–C | Overlap 25 → 50% | Batch D also moved to 50% overlap |
| A–E | Fill 28 mJ/mm | Used later, in batch I (not the next batch, F) |
| A–G | Fill 30 mJ/mm | Between I and J, the best reproducible region |
Read this as directional agreement on single levers, not reproduction of the operators’ choices. Over 11 chronological decisions (A–C through A–M), none of the top-3 suggestions matched the next batch on all three settings (fill, overlap and surface temperature). The replay is also retrospective: suggested batches that were never printed have no outcome, so it can’t show that following the suggester would have been better. Use it to propose the next step, and judge that step by the printed result.
batch refuses a surface temperature within 3 °C of the melt peak, to avoid caking the bed.Cite: Pak, Alvarado & Barati Farimani, arXiv:2608.25928 (2026).