← 开源

32 agent skills for mechanical engineering design, analysis and manufacturing (19 from Barati Farimani Lab papers). Install: npx skills add BaratiLab/mechanical-engineering-skills

Python
增长势头
+724 小时新增 Star+2.6%
274
Star
23
Fork
1
贡献者
创建于 2026-10-31 · 更新于 2026-12-06 · 今日第 1847 名
README

▶ 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.

How it works

① 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

What's inside

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.

Design & CAD

SkillWhat you can ask forPaper · 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-cadPart specification in plain English to a parametric CadQuery script, STEP/STL and a preview.
sketch-to-cadHand sketch, photo or video frames to a dimensioned CAD model.
drawing-gdt-reviewAudit 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-sizingBolts, shafts, bearings, springs, gears and welds, with the work shown and safety factors.

Analysis & simulation

SkillWhat you can ask forPaper · 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-feaLinear static and modal FEA with a required hand-calculation check.
tolerance-stackupWorst-case, RSS and Monte Carlo tolerance stack-ups with contributor charts.
thermal-fluids-calcPipe pressure drop, heat exchangers and fins with real fluid properties.
material-selectionPerformance indices to a ranked material shortlist with Ashby charts.
design-review-packageRequirements, FMEA, bill-of-materials cost roll-up and review checklist.
engineering-calc-reportTurn calculations into a calculation report ready for sign-off.

Manufacturing

SkillWhat you can ask forPaper · Tutorial
agentscad-fdm-dfam 🔬Make a STEP part printable by FDM: reorientation, teardrop holes and chamfers, with verified geometry.AgentsCAD · tutorial
dfm-reviewDesign-for-manufacture review for machining, sheet metal, molding and additive manufacturing.
mechanical-teardownProduct 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

Teaching

SkillWhat you can ask forPaper · Tutorial
worked-problem-generatorTextbook-style problems with code-verified solutions.
mechanics-visualsFree-body diagrams, Mohr's circle, beam diagrams and S–N curves.

Install

# 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 --list

Installing groups of skills

Install 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-rag

Run any skill's tests with python skills/<skill>/tests/*.py.

Dependencies

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 retrieval

External 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).

Repo layout

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

Contributing a new skill

See CONTRIBUTING.md.

Citation

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}
}

License

MIT

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载