agentleFS
BaratiLabBaratiLab/mechanical-engineering-skills/skills/mechanics-visuals/SKILL.md

mechanics-visuals

Skill16 starsChanged 16 days agoMITView on GitHub

Produces clean, correct mechanics teaching figures — Mohr's circle, shear/moment/deflection diagrams, S–N curves, stress–strain curves, and free-body diagrams — as PNG/SVG for slides, notes, or exams. Use when the user asks to draw, plot, or visualize a mechanics concept, an FBD, a beam diagram, or a stress state.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use one accent color for loads, one for reactions and grey for geometry.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Mechanics Visuals

The numbers behind every figure come from scripts/mech_plots.py, so the picture and the values always agree.

Workflow

  1. Pin down the scenario: geometry, loads, supports, sign convention, and units. If the user is teaching, ask once which textbook's convention they follow (the default is Shigley/Hibbeler).
  2. Generate the figure:
    python scripts/mech_plots.py mohr --sx 80 --sy -40 --txy 30 --out mohr
    python scripts/mech_plots.py beam --L 2000 --support simply --point 800:5000 --udl 0:2000:2 --I 8.3e6 --out beam
    python scripts/mech_plots.py sn   --Sut 690 --Se 280 --out sn
    python scripts/mech_plots.py ss   --sy 350 --Sut 480 --n 0.18 --out ss
  3. Free-body diagrams: no script. Write a matplotlib or SVG drawing following references/fbd_style.md (body as a light-grey shape, every force as a labelled arrow from its point of application, reactions in a different color, coordinate triad in a corner). Check equilibrium numerically (ΣF = 0, ΣM = 0) and print the residuals before you show the figure.
  4. Verify: compare one value against a closed form, e.g. simply supported center load M_max = PL/4, δ = PL³/48EI. State the comparison.
  5. Deliver: the PNG for viewing, the SVG for slides, and a 2–3 sentence caption with the key numbers.

Style

Use one accent color for loads, one for reactions and grey for geometry. Use SI units, label every axis, and keep titles under about 8 words. Never put more than one concept in a single figure unless the user asks for it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.