beam-mechanics
Skill38 starsChanged 5 months agoApache-2.0View on GitHub
Run simple dimensionless 1D Euler-Bernoulli beam mechanics with selectable boundary conditions, point forces, distributed loads, point moments, springs, plots, CSV/JSON results, and deformation GIFs. Use when asked to analyze a simple beam, cantilever, fixed-fixed beam, overhang, support reactions, shear/moment/deflection plots, or a small educational beam mechanics movie/artifact.
In this repository9 other files it gives its agents.
- chladni-platesSkill
- d3-vizSkill
- fracture-mechanicsSkill
- hierarchical-topoptSkill
- networkxSkill
- pymatgenSkill
- rdkitSkill
- seabornSkill
- torchsimSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run a simple dimensionless beam mechanics calculation.
- Distinctive: line 19
Do not use units. Do not write YAML.
- Very specific: line 25
Create or use the requested output directory, usually skill_output_<timestamp>_beam-mechanics.
- Very specific: line 30
Verify artifacts with find <output_dir> -maxdepth 2 -type f -print.
- Distinctive: line 31
If files are missing, fix the command and rerun.
- Very specific: line 32
Read <output_dir>/manifest.json and <output_dir>/summary.json.
- Very specific: line 59
Use --preset for common setups:
- Distinctive: line 86
Prefer these positive-down helpers:
- Distinctive: line 102
Use negative signed vertical values for downward loads.
- Distinctive: line 108
Use these examples to convert user language into flags.
- Very specific: line 195
Do not claim success unless find lists these files or manifest.json exists and names them.
- Very specific: line 198
If deformation.gif is missing because GIF writing is unavailable, report the frames/ directory when it exists and still report the static …
- Very specific: line 204
Use default --elements 80 --frames 32 --fps 12 for final artifacts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Beam Mechanics
Run a simple dimensionless beam mechanics calculation. This skill is intentionally low freedom: always run the bundled script instead of writing a new solver or a custom input schema.
The model is a 1D Euler-Bernoulli beam with vertical displacement w and
rotation theta at each node. Inputs are dimensionless. Sign convention:
positive vertical force/displacement is upward, negative is downward. Prefer the
positive-down helper flags when the user says a load acts downward.
Do not use units. Do not write YAML. Do not write JSON input files unless the user explicitly asks for a separate record. Translate the user's text directly into command-line flags.
Required Workflow
- Create or use the requested output directory, usually
skill_output_<timestamp>_beam-mechanics. - Select a preset or translate the user's boundary conditions and loads into flags.
- Run
scripts/simple_beam_lab.py. - Verify artifacts with
find <output_dir> -maxdepth 2 -type f -print. If files are missing, fix the command and rerun. - Read
<output_dir>/manifest.jsonand<output_dir>/summary.json. - Final answer must list exact artifact paths and report reactions, maximum
absolute deflection, maximum absolute moment, maximum absolute shear, and
vertical equilibrium residual from
summary.jsonandreactions.json.
Default Command
From the session root where the skill is mounted as skills/beam-mechanics:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Simple Beam Mechanics" \
--preset simply-supported \
--length 10 \
--point-down 5,1 \
--quietVerify:
find skill_output_<timestamp>_beam-mechanics -maxdepth 2 -type f -printBoundary Conditions
Use --preset for common setups:
simply-supported: left pin, right roller.cantilever: left fixed, right free.fixed-fixed: both ends fixed.overhang: left pin, internal roller at0.7 * length, right end free.custom: use--left,--right,--support, and--spring.
Support flags:
--left fixed
--right roller
--support 6,pin
--support 8,fixed
--spring 5,20Support types are pin, roller, fixed, clamped, and free. For this
simple 1D beam, pin and roller both constrain vertical displacement only.
fixed and clamped constrain vertical displacement and rotation.
The script automatically inserts mesh nodes at support, load, moment, UDL end,
and spring positions, so locations such as x=3.25 are valid.
Loads
Prefer these positive-down helpers:
--point-down X,MAGNITUDE
--udl-down START,END,MAGNITUDE
--moment-clockwise X,MAGNITUDESigned alternatives are available:
--point X,VALUE
--udl START,END,VALUE
--moment X,VALUEUse negative signed vertical values for downward loads.
Repeat load and support flags for multiple loads/supports.
Text-To-Flag Translation
Use these examples to convert user language into flags.
Simply supported beam:
--preset simply-supportedCantilever fixed on the left, free on the right:
--preset cantileverCustom left pin and right roller:
--preset custom --left pin --right rollerFixed support at x=3:
--support 3,fixedRoller support at 70 percent of a length-10 beam:
--support 7,rollerVertical spring at midspan with stiffness 20 on a length-10 beam:
--spring 5,20Downward point load of magnitude 1 at midspan of a length-10 beam:
--point-down 5,1Two downward point loads:
--point-down 4,1 --point-down 9,0.6Downward uniform load of magnitude 0.2 across the middle 20 percent of a
length-10 beam:
--udl-down 4,6,0.2Downward uniform load across the full length:
--udl-down 0,10,0.2Clockwise point moment of magnitude 0.5 at x=6:
--moment-clockwise 6,0.5Outputs
The script writes:
manifest.json: file map and summary.summary.json: key values and equilibrium check.reactions.json: support reactions.field_data.csv: sampledx,w,theta,moment,shear.structure.png: supports and loads.deformed_shape.png: scaled deformation.deflection.png: deflection curve.moment.png: bending moment curve.shear.png: shear curve.dashboard.png: combined figure.deformation.gif: deformation movie when GIF support is available.frames/frame_*.png: movie frames when GIF support is available.README.md: short run explanation.
Do not claim success unless find lists these files or manifest.json exists
and names them.
If deformation.gif is missing because GIF writing is unavailable, report the
frames/ directory when it exists and still report the static plots, CSV, JSON,
and README.
Runtime Guidance
Use default --elements 80 --frames 32 --fps 12 for final artifacts. Add
--quick only for smoke tests or timeout recovery. Do not present --quick
outputs as final high-quality artifacts unless the user asked for a fast test.
Copyable Recipes
Simply supported beam, center point load:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Simply Supported Center Load" \
--preset simply-supported \
--length 10 \
--point-down 5,1 \
--quietCantilever, tip load plus uniform load:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Cantilever With Tip Load And UDL" \
--preset cantilever \
--length 8 \
--point-down 8,1 \
--udl-down 0,8,0.2 \
--quietFixed-fixed beam with a uniform load:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Fixed Fixed Uniform Load" \
--preset fixed-fixed \
--length 10 \
--udl-down 0,10,0.3 \
--quietCustom beam with an internal spring and two point loads:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Beam With Internal Spring" \
--preset custom \
--length 12 \
--left pin \
--right roller \
--spring 6,20 \
--point-down 4,1 \
--point-down 9,0.6 \
--quietOverhanging beam with an end load:
python3 skills/beam-mechanics/scripts/simple_beam_lab.py \
--out skill_output_<timestamp>_beam-mechanics \
--title "Overhanging Beam End Load" \
--preset overhang \
--length 10 \
--point-down 10,1 \
--udl-down 0,10,0.1 \
--quietFor fast tests, add --quick. For final visible artifacts, omit --quick.
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
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.

