▶ Watch the 2-minute video: an engineer's morning with the skills, then a tour of the library
Preview runs at 4× speed. Download the full MP4, or the two parts: the cartoon and the library tour.
Tutorials & use cases · Videos · Install · Full skill list · Which skill do I need?
Mechanical Engineering Skills gives an AI agent the working habits of a mechanical engineer. It covers design, analysis and manufacturing:
- sizing a shaft;
- setting up a CFD case;
- finding a lattice for a target stiffness;
- choosing laser settings for a new alloy;
- watching a 3D print layer by layer.
Each skill is a folder with instructions the agent follows and tested scripts that do the numbers. The agent orchestrates, the tools compute, and every result comes with the check that backs it.
19 of the 33 skills (🔬) package peer-reviewed or preprint research from the Barati Farimani Lab at Carnegie Mellon University. Each comes with a step-by-step tutorial that reproduces the paper's key results. The skills work with Claude Code, Claude.ai, Cursor, Codex, Gemini CLI and any agent that reads the open Agent Skills format.
| ① Install | ② Ask by text or voice | ③ Get checked results |
|---|---|---|
npx skills add BaratiLab/mechanical-engineering-skills --all |
"Find a printable lattice with E₃ = 2.5 E₁ at under 30% density" | The agent runs the skill's scripts, checks the answer (hand calc, exact case, re-simulation) and hands you files: STEP/STL, G-code, reports, plots |
33 skills; 🔬 marks the 19 that package a Barati Farimani Lab paper (each with a tested workflow and a step-by-step tutorial). Not sure which one you need? See docs/use-cases.md, or just describe the job to your agent.
| Skill | What you can ask for | Paper · Tutorial | |
|---|---|---|---|
cadsmith-text-to-cad 🔬 | Describe a part in words; get a CadQuery model checked by exact geometry measurements and a three-view review, exported as STEP/STL. | CADSmith · tutorial | |
query2cad-freecad 🔬 | Plain-language request to a FreeCAD macro, with automatic error repair and a visual self-check. | Query2CAD · tutorial | |
parametric-part-cad | Part specification in plain English to a parametric CadQuery script, STEP/STL and a preview. | ||
sketch-to-cad | Hand sketch, photo or video frames to a dimensioned CAD model. | ||
drawing-gdt-review | Audit an engineering drawing for missing dimensions and GD&T errors. | ||
linkage-synthesis 🔬 | Target motion path to a four- or six-bar linkage, built joint by joint and checked kinematically. | LinkD · tutorial | |
rocketsmith 🔬 | Hobby high-power rocket: stability, fin sizing, flight prediction, drag calibration and printable parts. | RocketSmith · tutorial | |
llm-mechanical-designer 🔬 | Truss design loop: the model proposes, exact FEM evaluates, the best designs are ranked. | LLM Mechanical Designer · tutorial | |
machine-element-sizing | Bolts, shafts, bearings, springs, gears and welds, with the work shown and safety factors. |
| Skill | What you can ask for | Paper · Tutorial | |
|---|---|---|---|
cfd-simulation-setup 🔬 | Flow problem to an OpenFOAM case, run and diagnosis; results accepted only against physics checks. | CFD Forge · tutorial | |
stress-field-surrogate 🔬 | Geometry, supports and loads to a full stress field in milliseconds, with its own FEM data generator. | StressD · tutorial | |
lattice-inverse-design 🔬 | Target stiffness to a printable TPMS or hybrid lattice cell with its full stiffness matrix and a tiled STL. | GLU3D · tutorial | |
equation-discovery 🔬 | Test data to an interpretable equation that extrapolates beyond the data. | LLM-SR · tutorial | |
quick-fea | Linear static and modal FEA with a required hand-calculation check. | ||
tolerance-stackup | Worst-case, RSS and Monte Carlo tolerance stack-ups with contributor charts. | ||
thermal-fluids-calc | Pipe pressure drop, heat exchangers and fins with real fluid properties. | ||
material-selection | Performance indices to a ranked material shortlist with Ashby charts. | ||
design-review-package | Requirements, FMEA, bill-of-materials cost roll-up and review checklist. | ||
engineering-calc-report | Turn calculations into a calculation report ready for sign-off. |
| Skill | What you can ask for | Paper · Tutorial | |
|---|---|---|---|
agentscad-fdm-dfam 🔬 | Make a STEP part printable by FDM: reorientation, teardrop holes and chamfers, with verified geometry. | AgentsCAD · tutorial | |
dfm-review | Design-for-manufacture review for machining, sheet metal, molding and additive manufacturing. | ||
mechanical-teardown | Product teardown: costed BOM, DFA index, should-cost, repairability and FMEA in an HTML report. | examples: drill · watch | |
image2gcode 🔬 | Photo or sketch to printer-ready G-code for 2D and 2.5D parts. | Image2Gcode · tutorial | |
lpbf-defect-prediction 🔬 | Laser power and speed to keyholing, lack of fusion or balling, with process maps. | AdditiveLLM · tutorial | |
am-alloy-screening 🔬 | Known or new alloy to properties, a lack-of-fusion process map and a printability ranking. | Agentic alloy evaluation · tutorial | |
sls-process-optimization 🔬 | Polymer SLS test results to the next batch's settings, batch by batch. | Agentic SLS · tutorial | |
meltpool-geometry 🔬 | Melt-pool depth, width, length and mode from laser power, speed and alloy. | MeltpoolNet · tutorial | |
llm-3d-print-monitor 🔬 | Camera inspection of every layer and bounded in-print corrections on Klipper printers. | LLM-3D Print · tutorial | |
thermal-porosity 🔬 | Thermal images recorded during printing to pore count and location for each layer. | ThermoPore · tutorial | |
lpbf-superres 🔬 | Low-cost webcam images to high-resolution layer images and edge roughness. | LPBF super-resolution · tutorial | |
am-literature-rag 🔬 | Page-cited answers from your own additive-manufacturing paper library. | AMGPT · tutorial |
| Skill | What you can ask for | Paper · Tutorial | |
|---|---|---|---|
worked-problem-generator | Textbook-style problems with code-verified solutions. | ||
mechanics-visuals | Free-body diagrams, Mohr's circle, beam diagrams and S–N curves. |
# Install every skill in this repo
npx skills add BaratiLab/mechanical-engineering-skills --all
# Pick skills interactively
npx skills add BaratiLab/mechanical-engineering-skills
# Install one skill
npx skills add BaratiLab/mechanical-engineering-skills --skill machine-element-sizing
# Install globally for Claude Code only
npx skills add BaratiLab/mechanical-engineering-skills --all -g -a claude-code
# See what's inside without installing
npx skills add BaratiLab/mechanical-engineering-skills --listInstall a whole group by naming its skills, for example manufacturing:
npx skills add BaratiLab/mechanical-engineering-skills --skill agentscad-fdm-dfam --skill dfm-review --skill mechanical-teardown --skill image2gcode \
--skill lpbf-defect-prediction --skill meltpool-geometry --skill am-alloy-screening --skill sls-process-optimization \
--skill llm-3d-print-monitor --skill thermal-porosity --skill lpbf-superres --skill am-literature-ragRun any skill's tests with python skills/<skill>/tests/*.py.
Skills install Python packages on demand. The full set:
pip install numpy scipy matplotlib pint CoolProp cadquery pypdf
# research skills
pip install trimesh rtree pyvista opencv-python-headless shapely gmsh scikit-fem
pip install pandas scikit-learn pyarrow joblib pillow PyWavelets scikit-image pypdf rank_bm25 # AM skills
pip install pyamg # optional: faster lattice homogenisation
pip install torch sentence-transformers # optional: deep models (thermal-porosity, lpbf-superres), dense retrievalExternal tools: OpenFOAM v11+ (cfd-simulation-setup solves), FreeCAD (query2cad-freecad; micromamba create -p ./fc -c conda-forge freecad), a Klipper + Moonraker printer with cameras (llm-3d-print-monitor live mode; its mock printer needs nothing). lpbf-defect-prediction and meltpool-geometry download the MeltpoolNet data from GitHub on first use. thermal-porosity and lpbf-superres ship synthetic rehearsal data because the papers' datasets are not public; bring your own builds for real numbers.
quick-fea uses gmsh and scikit-fem. cfd-simulation-setup needs OpenFOAM Foundation v11+ (v14 tested in the paper) for the solve; its validators, evidence extraction and builders run without it (python skills/cfd-simulation-setup/tests/test_paper_cases.py).
skills/<skill-name>/
├── SKILL.md # frontmatter (name, description) + instructions
├── scripts/ # deterministic code the agent runs
└── references/ # tables, rules, formulas loaded on demand
_template/ # starter skill (ignored by the installer)
docs/ # website: use cases, tutorials, icons (GitHub Pages)
paper/ # "Mechanical Engineering Skills: An Open Library of Agent Skills for Design, Analysis and Manufacturing" (LaTeX source, PDF, Overleaf bundle)
tools/make_icons.py # regenerates the vector skill icons and banner
See CONTRIBUTING.md.
If you use this library, please cite:
@misc{chandrasekhar2026mechskills,
title = {Mechanical Engineering Skills: An Open Library of Agent Skills for Design, Analysis and Manufacturing},
author = {Chandrasekhar, Achuth and Barkley, Jesse and Pak, Peter and Loghmani, Rumi and Badrinarayanan, Srivathsan and Oza, Aakash and Barati Farimani, Amir},
year = {2026},
url = {https://github.com/BaratiLab/mechanical-engineering-skills}
}MIT
