Update to text-to-cad
Snapshot Nov 24, 2026 · 00:47 UTC · version 0.11.17
Collection source: downloaded plugin package.
Instructions updated for fea
Skill instructions — Now says: Written for `cad==0.11.17`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than
Observed in instructions or declared skills. Runtime behavior has not been tested.
Up to 3 plugins free · no card required.
All fields and original values.
Skill instructions
Nov 23, 2026 · 12:10 UTC
Written for `cad==0.11.16`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than
Nov 24, 2026 · 00:47 UTC
Written for `cad==0.11.17`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -35,7 +35,7 @@ ## Setup -Written for `cad==0.11.16`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than +Written for `cad==0.11.17`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than 0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists. If cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:
Full technical diff · 1 changed fields
changed /skill_md_contents
"---\nname: fea\ndescription: Checks whether a part, or an assembly of bonded parts, is strong enough under its loads, as a linear static stress study (FEA). Use when the person asks whether a part will hold, break or bend too much, where it is most stressed, how much load it takes, how to make it stronger or lighter, or for FEA, a stress analysis or a strength simulation. Reports peak stress, safety factor against yield and deflection. Static loads only, not vibration, buckling, heat, fatigue or impact.\nlicense: MIT\nmetadata:\n repository: earthtojake/text-to-cad\n---\n\n# FEA: will it hold, and how far does it move\n\nA study holds some faces of a part, loads others, and solves the linear elastic response: stress and\ndisplacement under forces, pressures, the part's own weight and steady accelerations, with an\nisotropic material below yield, rigid fixtures and loads that do not move. An assembly's parts are\nbonded where they touch. It is a first-pass engineering check, not a certification: say so in the\nreport. Vibration, buckling, heat, fatigue, impact and sliding contact are outside it, and a static\nsafety factor is no answer to them (a drop or a braking load can be estimated as a steady g-load:\n[body loads](references/linear-static.md#body-loads-gravity-and-acceleration)).\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| Check a part under a load | `cad step solve part.step` lists its faces; write the study; solve into a folder | [Workflow](#workflow), [linear static](references/linear-static.md) |\n| Check an assembly | `cad step solve assembly.step` lists the parts and the pairs that touch | [Assemblies](#assemblies) |\n| Write or edit a study | One JSON object: fixtures and loads, then material, mesh, margin and checks | [Study file](references/study-file.md) |\n| Choose a material | The model's own, or the E, ν and yield the person gives | [Materials](references/materials.md) |\n| Judge the answer | `result.json` and its findings, against a hand estimate | [Findings](#findings), [judging the answer](references/linear-static.md#judging-the-answer) |\n| Find the load a part takes | Solve at any load: the model is linear, so yield comes at the loads applied, all scaled by the safety factor | [`checks`](references/study-file.md#checks) |\n| Answer what the summary does not | `result.vtu`, read with meshio | [Your own questions](#your-own-questions) |\n| Compare design variants | The same study on each, faces mapped, mesh size held | [Compare variants](#compare-variants) |\n\nThe study reads a saved `.step` or `.xbf`, or a model the server holds by its id\n(`cad model solve <id>`), and solves the whole document: to study one part of an assembly alone,\nexport it as a document of its own.\n\n## Setup\n\nWritten for `cad==0.11.16`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than\n0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nThe mesher and the solver are fetched by `cad` the first time a study needs them, nothing to install:\nthe `netgen` integration (`cad[netgen]`, about 11 MB; macOS, Linux x86_64 and Windows x86_64 only, and\na solve elsewhere refuses, naming the platform) and the `calculix` integration (`cad[calculix]`,\nCalculiX 2.23, about 13 MB). The solve runs headless on one thread, so the same study gives the same\nnumbers on every run. `cad run ccx ARGS` runs the same `ccx` on a deck of your own. A `ccx` on PATH is\nnever run; where the fetched one does not run on a computer, `CAD_CCX` names another (2.20 or newer).\n\nUnits are fixed: mm, N, MPa (pressure, modulus and stress), t/mm³ for density (steel 7.85e-9) and g\n(9.81 m/s²) for gravity and acceleration. Restate every load in them before writing it down.\n\n## Workflow\n\n1. **List the faces.** With no study, `solve` prints the setup and writes nothing: the parts, the\n pairs that touch, then each face with its ref, area, centre, surface type and a hint such as\n `plane, normal -Z, largest`.\n\n ```bash\n cad step solve part.step\n ```\n\n Match the person's words (\"the mounting face\") to a ref by the hint and the centre; a hole is a\n `cylinder`. A face they picked in the viewer arrives as a ref already\n (`/work/bracket.step#bracket/face 17`). A document of several parts lists faces once one is named\n (`--occurrence post`). A face number is a position in the saved document, so list again after the\n part is edited.\n\n2. **Write the study** ([study file](references/study-file.md)):\n\n ```json\n {\n \"fixtures\": [{\"faces\": [\"bracket/face 17\"], \"type\": \"fixed\"}],\n \"loads\": [{\"faces\": [\"bracket/face 22\"], \"type\": \"force\", \"vector_N\": [0, -500, 0]}]\n }\n ```\n\n `fixed` holds a face still; `roller` lets it slide in its plane (a frictionless support, a symmetry\n cut). A `force` is the total over its faces; a `pressure` is in MPa, positive into the surface;\n `gravity` and `acceleration` take `vector_g` and no faces, and need the material's density.\n `margin` is the safety factor the part should keep (default 2). `checks` adds a `displacement`\n limit when the person gave one. Leave `mesh` out on the first run.\n\n3. **Solve into a folder**, one per study:\n\n ```bash\n cad step solve part.step --study study.json --out /tmp/bracket-load --json\n ```\n\n | File | What it is for |\n | --- | --- |\n | `result.json` | The answer, which `--json` also prints. Read this first |\n | `stress.png`, `displacement.png` | The deformed part coloured by each field, the deformation exaggerated by `deformation_scale`. They show whether the load points the way you meant and which faces are held |\n | `result.glb` | The same coloured surface, for `cad viewer` or any glTF viewer |\n | `result.vtu` | The volume mesh with `displacement` (mm) and `von_mises` (MPa) at its corner nodes |\n | `ccx.inp` | With `--deck`: the input CalculiX solved, to run or edit yourself (`cad run ccx -i ccx`, in that folder) |\n\n `result.json` holds `ok`, `findings` and `measurements`: the peak stress and where\n (`max_von_mises_MPa`, `max_von_mises_at_mm`), `yield_MPa`, `safety_factor`,\n `max_displacement_mm`, the applied force against the reactions, the mesh, and `refined` when the\n run solved twice ([what comes out](references/study-file.md#what-comes-out)).\n\n - A safety factor under 3 makes the run mesh finer and solve again by itself; the finer result is\n the one written ([mesh](references/linear-static.md#mesh)).\n - A malformed study is refused before meshing, naming the field. A part free to move, a load that\n reaches nothing, or reactions that do not balance the load are refused by the solve.\n - The exit status is 1 when a finding is an error (the part yields or misses a check, results\n written all the same; or `not_connected`, nothing written). Warnings leave it at 0.\n - Where the server cannot draw (Linux with no display) the pictures are left out and a\n `solver_note` says so.\n\n4. **Report with units**: the peak von Mises and the feature it is near, the safety factor and the\n yield it is against, the largest displacement and where, the applied load against the reaction,\n the mesh size and whether a finer solve ran; then the findings, what the model assumes and what\n would change the answer most. Show `stress.png`, saying its deformation is exaggerated.\n\n## Your own questions\n\nFor what the summary does not answer (the stress at the mounting holes, the sag along an edge, how\nmuch of the part is above some stress), read `result.vtu` rather than solving again:\n\n```python\n# cad run --with meshio read-stress.py\nimport meshio, numpy as np\n\nmesh = meshio.read(\"/tmp/bracket-load/result.vtu\")\nxyz, stress = mesh.points, mesh.point_data[\"von_mises\"] # mm, MPa\nmoved = np.linalg.norm(mesh.point_data[\"displacement\"], axis=1) # mm\nnear = np.linalg.norm(xyz - [42, 12, 3], axis=1) < 5 # within 5 mm of a point\nprint(stress[near].max(), moved[xyz[:, 2] > 49].max())\n```\n\nIt holds the tetrahedra's corner nodes, inside the part as well as on its skin. The reported peak\nalso counts mid-edge nodes, so it can be a little above the VTU's maximum. An assembly's cells carry\ntheir `part`, the index into the summary's `parts`.\n\n## Assemblies\n\nA document of several parts is solved as one: parts that touch are bonded into one mesh, each keeps\nits own material, and each is judged against its own yield. Every part must reach a fixed part\nthrough bonded neighbours ([study file](references/study-file.md#assemblies)).\n\n- **Read the setup against the design.** It lists each pair as `bonded` (with its contact area and\n gap), `not connected` (a near miss, up to 1 mm), or `overlapping` (never bonded, unless the overlap\n is within the tolerance: an interference, bonded and closed like a gap). Is each detected joint\n real, and is an expected one missing? A wider gap is bonded by setting `contact_tolerance_mm`\n (default 0.1).\n- **Materials**: each part uses its model's own; `parts` in the study gives one the person's numbers;\n a part with neither is refused by name.\n- **`connections`** only overrides a detection (`free` for a pair that must not be glued). Parts that\n press, slide or are bolted are not modelled.\n- **Faces** are named on any part (`post/face 23`), by its ref where names repeat (`frame/bar.2`). A\n face wholly covered by a bonded joint cannot be held or loaded.\n- **Reading the result**: `yield_MPa` and `safety_factor` are the weakest part's (`weakest_part`),\n while `max_von_mises_MPa` and `max_displacement_mm` span the assembly, so never divide one by the\n other; each part's own numbers are in `parts`. Each finding names its part: fix that part.\n\n## Compare variants\n\nEach version of a design is its own document: run the same study on each into its own folder and\ncompare the `result.json`s. Face numbers are not stable between versions, and a ref reused unchecked\nlands on a different face with no error, so list each variant's faces and map the baseline's by\nsurface type, normal, centre and area. Hold `mesh.size_mm` at the baseline's so a difference is the\ndesign's and not the mesh's, and give the mapping with the table so the person can check it.\n\n## Findings\n\nTwo von Mises peaks are reported. The **nodal** peak (`max_von_mises_MPa`, the one the safety factor\nuses) is extrapolated from each element's integration points to its nodes and averaged; it is usually\nthe higher of the two. The **integration-point** peak (`max_von_mises_gauss_MPa`) is the raw element\nvalue: more than 50 % above the nodal one, it means a concentration the mesh has not resolved. The\nedge of a rigid fixture or bonded joint and a sharp inside corner are singularities, where the peak\ngrows with every refinement and never converges: read the stress a little away from them.\n\nAn error makes the part unfit as modelled; a warning is a judgment to weigh and explain. Most carry\nthe face and the point in mm.\n\n| Finding | Severity | Means | Do |\n| --- | --- | --- | --- |\n| `yields` | error | The nodal peak is above yield | Strengthen where the peak is, change the material, or confirm the load. A `peak_at_fixture` or `peak_concentration` beside it comes first: the peak may be the model's, not the part's |\n| `low_margin` | warning | It holds, but under the study's `margin` | As for `yields`, or report the margin it has. Never lower `margin` to clear it |\n| `displacement_over_limit` | error | A `displacement` check is past its `limit_mm` | Stiffen the part, or confirm the limit |\n| `peak_at_fixture` | warning | The peak sits on a fixed face or its edge, and a finer solve did not settle it | Read the stress a little away from the face before redesigning |\n| `peak_concentration` | warning | The integration-point peak is well above the nodal one: a sharp corner or concentrated load | Fillet the corner or spread the load. Under a safety factor of 3 the run already refined once; above it (a high `margin`), refine once yourself and compare |\n| `mesh_not_converged` | warning | The finer solve moved the peak by more than 10 % | A peak that keeps rising is a singularity: fillet it or judge away from it. Otherwise set a smaller `mesh.size_mm` |\n| `large_displacement` | warning | It moves more than 1 % of its size: the small-displacement model is stretched | Check the fit against mating parts; stiffen if the deflection matters |\n| `not_connected` | error | A part has no bonded chain to a fixed part; nothing was solved | Make the parts touch, fix a face on the group, or raise `contact_tolerance_mm` |\n| `overlapping_parts` | warning | Two solids overlap beyond the tolerance and are not bonded | Fix the geometry, or mark the pair `free` when the overlap is an accepted shortcut |\n| `gap_closed` | warning | Two parts within the tolerance were bonded by moving geometry that far | Confirm it is a modelling clearance; the stress at that joint is the closing's, not the part's |\n| `bonded_edge_peak` | warning | The peak sits on the edge of a bonded joint | Read the stress a little away; a bolted or welded joint is softer than this model |\n| `solver_note` | warning | About the run: a slow solve, a finer solve skipped, pictures not drawn | Mention it when it bears on the answer |\n\n`peak_at_fixture` and `peak_concentration` appear only when the safety factor is under the `margin`\nand no finer solve settled the peak.\n""---\nname: fea\ndescription: Checks whether a part, or an assembly of bonded parts, is strong enough under its loads, as a linear static stress study (FEA). Use when the person asks whether a part will hold, break or bend too much, where it is most stressed, how much load it takes, how to make it stronger or lighter, or for FEA, a stress analysis or a strength simulation. Reports peak stress, safety factor against yield and deflection. Static loads only, not vibration, buckling, heat, fatigue or impact.\nlicense: MIT\nmetadata:\n repository: earthtojake/text-to-cad\n---\n\n# FEA: will it hold, and how far does it move\n\nA study holds some faces of a part, loads others, and solves the linear elastic response: stress and\ndisplacement under forces, pressures, the part's own weight and steady accelerations, with an\nisotropic material below yield, rigid fixtures and loads that do not move. An assembly's parts are\nbonded where they touch. It is a first-pass engineering check, not a certification: say so in the\nreport. Vibration, buckling, heat, fatigue, impact and sliding contact are outside it, and a static\nsafety factor is no answer to them (a drop or a braking load can be estimated as a steady g-load:\n[body loads](references/linear-static.md#body-loads-gravity-and-acceleration)).\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| Check a part under a load | `cad step solve part.step` lists its faces; write the study; solve into a folder | [Workflow](#workflow), [linear static](references/linear-static.md) |\n| Check an assembly | `cad step solve assembly.step` lists the parts and the pairs that touch | [Assemblies](#assemblies) |\n| Write or edit a study | One JSON object: fixtures and loads, then material, mesh, margin and checks | [Study file](references/study-file.md) |\n| Choose a material | The model's own, or the E, ν and yield the person gives | [Materials](references/materials.md) |\n| Judge the answer | `result.json` and its findings, against a hand estimate | [Findings](#findings), [judging the answer](references/linear-static.md#judging-the-answer) |\n| Find the load a part takes | Solve at any load: the model is linear, so yield comes at the loads applied, all scaled by the safety factor | [`checks`](references/study-file.md#checks) |\n| Answer what the summary does not | `result.vtu`, read with meshio | [Your own questions](#your-own-questions) |\n| Compare design variants | The same study on each, faces mapped, mesh size held | [Compare variants](#compare-variants) |\n\nThe study reads a saved `.step` or `.xbf`, or a model the server holds by its id\n(`cad model solve <id>`), and solves the whole document: to study one part of an assembly alone,\nexport it as a document of its own.\n\n## Setup\n\nWritten for `cad==0.11.17`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than\n0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nThe mesher and the solver are fetched by `cad` the first time a study needs them, nothing to install:\nthe `netgen` integration (`cad[netgen]`, about 11 MB; macOS, Linux x86_64 and Windows x86_64 only, and\na solve elsewhere refuses, naming the platform) and the `calculix` integration (`cad[calculix]`,\nCalculiX 2.23, about 13 MB). The solve runs headless on one thread, so the same study gives the same\nnumbers on every run. `cad run ccx ARGS` runs the same `ccx` on a deck of your own. A `ccx` on PATH is\nnever run; where the fetched one does not run on a computer, `CAD_CCX` names another (2.20 or newer).\n\nUnits are fixed: mm, N, MPa (pressure, modulus and stress), t/mm³ for density (steel 7.85e-9) and g\n(9.81 m/s²) for gravity and acceleration. Restate every load in them before writing it down.\n\n## Workflow\n\n1. **List the faces.** With no study, `solve` prints the setup and writes nothing: the parts, the\n pairs that touch, then each face with its ref, area, centre, surface type and a hint such as\n `plane, normal -Z, largest`.\n\n ```bash\n cad step solve part.step\n ```\n\n Match the person's words (\"the mounting face\") to a ref by the hint and the centre; a hole is a\n `cylinder`. A face they picked in the viewer arrives as a ref already\n (`/work/bracket.step#bracket/face 17`). A document of several parts lists faces once one is named\n (`--occurrence post`). A face number is a position in the saved document, so list again after the\n part is edited.\n\n2. **Write the study** ([study file](references/study-file.md)):\n\n ```json\n {\n \"fixtures\": [{\"faces\": [\"bracket/face 17\"], \"type\": \"fixed\"}],\n \"loads\": [{\"faces\": [\"bracket/face 22\"], \"type\": \"force\", \"vector_N\": [0, -500, 0]}]\n }\n ```\n\n `fixed` holds a face still; `roller` lets it slide in its plane (a frictionless support, a symmetry\n cut). A `force` is the total over its faces; a `pressure` is in MPa, positive into the surface;\n `gravity` and `acceleration` take `vector_g` and no faces, and need the material's density.\n `margin` is the safety factor the part should keep (default 2). `checks` adds a `displacement`\n limit when the person gave one. Leave `mesh` out on the first run.\n\n3. **Solve into a folder**, one per study:\n\n ```bash\n cad step solve part.step --study study.json --out /tmp/bracket-load --json\n ```\n\n | File | What it is for |\n | --- | --- |\n | `result.json` | The answer, which `--json` also prints. Read this first |\n | `stress.png`, `displacement.png` | The deformed part coloured by each field, the deformation exaggerated by `deformation_scale`. They show whether the load points the way you meant and which faces are held |\n | `result.glb` | The same coloured surface, for `cad viewer` or any glTF viewer |\n | `result.vtu` | The volume mesh with `displacement` (mm) and `von_mises` (MPa) at its corner nodes |\n | `ccx.inp` | With `--deck`: the input CalculiX solved, to run or edit yourself (`cad run ccx -i ccx`, in that folder) |\n\n `result.json` holds `ok`, `findings` and `measurements`: the peak stress and where\n (`max_von_mises_MPa`, `max_von_mises_at_mm`), `yield_MPa`, `safety_factor`,\n `max_displacement_mm`, the applied force against the reactions, the mesh, and `refined` when the\n run solved twice ([what comes out](references/study-file.md#what-comes-out)).\n\n - A safety factor under 3 makes the run mesh finer and solve again by itself; the finer result is\n the one written ([mesh](references/linear-static.md#mesh)).\n - A malformed study is refused before meshing, naming the field. A part free to move, a load that\n reaches nothing, or reactions that do not balance the load are refused by the solve.\n - The exit status is 1 when a finding is an error (the part yields or misses a check, results\n written all the same; or `not_connected`, nothing written). Warnings leave it at 0.\n - Where the server cannot draw (Linux with no display) the pictures are left out and a\n `solver_note` says so.\n\n4. **Report with units**: the peak von Mises and the feature it is near, the safety factor and the\n yield it is against, the largest displacement and where, the applied load against the reaction,\n the mesh size and whether a finer solve ran; then the findings, what the model assumes and what\n would change the answer most. Show `stress.png`, saying its deformation is exaggerated.\n\n## Your own questions\n\nFor what the summary does not answer (the stress at the mounting holes, the sag along an edge, how\nmuch of the part is above some stress), read `result.vtu` rather than solving again:\n\n```python\n# cad run --with meshio read-stress.py\nimport meshio, numpy as np\n\nmesh = meshio.read(\"/tmp/bracket-load/result.vtu\")\nxyz, stress = mesh.points, mesh.point_data[\"von_mises\"] # mm, MPa\nmoved = np.linalg.norm(mesh.point_data[\"displacement\"], axis=1) # mm\nnear = np.linalg.norm(xyz - [42, 12, 3], axis=1) < 5 # within 5 mm of a point\nprint(stress[near].max(), moved[xyz[:, 2] > 49].max())\n```\n\nIt holds the tetrahedra's corner nodes, inside the part as well as on its skin. The reported peak\nalso counts mid-edge nodes, so it can be a little above the VTU's maximum. An assembly's cells carry\ntheir `part`, the index into the summary's `parts`.\n\n## Assemblies\n\nA document of several parts is solved as one: parts that touch are bonded into one mesh, each keeps\nits own material, and each is judged against its own yield. Every part must reach a fixed part\nthrough bonded neighbours ([study file](references/study-file.md#assemblies)).\n\n- **Read the setup against the design.** It lists each pair as `bonded` (with its contact area and\n gap), `not connected` (a near miss, up to 1 mm), or `overlapping` (never bonded, unless the overlap\n is within the tolerance: an interference, bonded and closed like a gap). Is each detected joint\n real, and is an expected one missing? A wider gap is bonded by setting `contact_tolerance_mm`\n (default 0.1).\n- **Materials**: each part uses its model's own; `parts` in the study gives one the person's numbers;\n a part with neither is refused by name.\n- **`connections`** only overrides a detection (`free` for a pair that must not be glued). Parts that\n press, slide or are bolted are not modelled.\n- **Faces** are named on any part (`post/face 23`), by its ref where names repeat (`frame/bar.2`). A\n face wholly covered by a bonded joint cannot be held or loaded.\n- **Reading the result**: `yield_MPa` and `safety_factor` are the weakest part's (`weakest_part`),\n while `max_von_mises_MPa` and `max_displacement_mm` span the assembly, so never divide one by the\n other; each part's own numbers are in `parts`. Each finding names its part: fix that part.\n\n## Compare variants\n\nEach version of a design is its own document: run the same study on each into its own folder and\ncompare the `result.json`s. Face numbers are not stable between versions, and a ref reused unchecked\nlands on a different face with no error, so list each variant's faces and map the baseline's by\nsurface type, normal, centre and area. Hold `mesh.size_mm` at the baseline's so a difference is the\ndesign's and not the mesh's, and give the mapping with the table so the person can check it.\n\n## Findings\n\nTwo von Mises peaks are reported. The **nodal** peak (`max_von_mises_MPa`, the one the safety factor\nuses) is extrapolated from each element's integration points to its nodes and averaged; it is usually\nthe higher of the two. The **integration-point** peak (`max_von_mises_gauss_MPa`) is the raw element\nvalue: more than 50 % above the nodal one, it means a concentration the mesh has not resolved. The\nedge of a rigid fixture or bonded joint and a sharp inside corner are singularities, where the peak\ngrows with every refinement and never converges: read the stress a little away from them.\n\nAn error makes the part unfit as modelled; a warning is a judgment to weigh and explain. Most carry\nthe face and the point in mm.\n\n| Finding | Severity | Means | Do |\n| --- | --- | --- | --- |\n| `yields` | error | The nodal peak is above yield | Strengthen where the peak is, change the material, or confirm the load. A `peak_at_fixture` or `peak_concentration` beside it comes first: the peak may be the model's, not the part's |\n| `low_margin` | warning | It holds, but under the study's `margin` | As for `yields`, or report the margin it has. Never lower `margin` to clear it |\n| `displacement_over_limit` | error | A `displacement` check is past its `limit_mm` | Stiffen the part, or confirm the limit |\n| `peak_at_fixture` | warning | The peak sits on a fixed face or its edge, and a finer solve did not settle it | Read the stress a little away from the face before redesigning |\n| `peak_concentration` | warning | The integration-point peak is well above the nodal one: a sharp corner or concentrated load | Fillet the corner or spread the load. Under a safety factor of 3 the run already refined once; above it (a high `margin`), refine once yourself and compare |\n| `mesh_not_converged` | warning | The finer solve moved the peak by more than 10 % | A peak that keeps rising is a singularity: fillet it or judge away from it. Otherwise set a smaller `mesh.size_mm` |\n| `large_displacement` | warning | It moves more than 1 % of its size: the small-displacement model is stretched | Check the fit against mating parts; stiffen if the deflection matters |\n| `not_connected` | error | A part has no bonded chain to a fixed part; nothing was solved | Make the parts touch, fix a face on the group, or raise `contact_tolerance_mm` |\n| `overlapping_parts` | warning | Two solids overlap beyond the tolerance and are not bonded | Fix the geometry, or mark the pair `free` when the overlap is an accepted shortcut |\n| `gap_closed` | warning | Two parts within the tolerance were bonded by moving geometry that far | Confirm it is a modelling clearance; the stress at that joint is the closing's, not the part's |\n| `bonded_edge_peak` | warning | The peak sits on the edge of a bonded joint | Read the stress a little away; a bolted or welded joint is softer than this model |\n| `solver_note` | warning | About the run: a slow solve, a finer solve skipped, pictures not drawn | Mention it when it bears on the answer |\n\n`peak_at_fixture` and `peak_concentration` appear only when the safety factor is under the `margin`\nand no finer solve settled the peak.\n"Full snapshot data
{
"description": "Checks whether a part, or an assembly of bonded parts, is strong enough under its loads, as a linear static stress study (FEA). Use when the person asks whether a part will hold, break or bend too much, where it is most stressed, how much load it takes, how to make it stronger or lighter, or for FEA, a stress analysis or a strength simulation. Reports peak stress, safety factor against yield and deflection. Static loads only, not vibration, buckling, heat, fatigue or impact.",
"included_files": [
{
"relative_path": "LICENSE",
"size_in_bytes": 1074
},
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 237
},
{
"relative_path": "references/linear-static.md",
"size_in_bytes": 4180
},
{
"relative_path": "references/materials.md",
"size_in_bytes": 1990
},
{
"relative_path": "references/study-file.md",
"size_in_bytes": 11727
}
],
"name": "fea",
"skill_md_contents": "---\nname: fea\ndescription: Checks whether a part, or an assembly of bonded parts, is strong enough under its loads, as a linear static stress study (FEA). Use when the person asks whether a part will hold, break or bend too much, where it is most stressed, how much load it takes, how to make it stronger or lighter, or for FEA, a stress analysis or a strength simulation. Reports peak stress, safety factor against yield and deflection. Static loads only, not vibration, buckling, heat, fatigue or impact.\nlicense: MIT\nmetadata:\n repository: earthtojake/text-to-cad\n---\n\n# FEA: will it hold, and how far does it move\n\nA study holds some faces of a part, loads others, and solves the linear elastic response: stress and\ndisplacement under forces, pressures, the part's own weight and steady accelerations, with an\nisotropic material below yield, rigid fixtures and loads that do not move. An assembly's parts are\nbonded where they touch. It is a first-pass engineering check, not a certification: say so in the\nreport. Vibration, buckling, heat, fatigue, impact and sliding contact are outside it, and a static\nsafety factor is no answer to them (a drop or a braking load can be estimated as a steady g-load:\n[body loads](references/linear-static.md#body-loads-gravity-and-acceleration)).\n\n## Start with the task\n\n| Task | Start with | Reference |\n| --- | --- | --- |\n| Check a part under a load | `cad step solve part.step` lists its faces; write the study; solve into a folder | [Workflow](#workflow), [linear static](references/linear-static.md) |\n| Check an assembly | `cad step solve assembly.step` lists the parts and the pairs that touch | [Assemblies](#assemblies) |\n| Write or edit a study | One JSON object: fixtures and loads, then material, mesh, margin and checks | [Study file](references/study-file.md) |\n| Choose a material | The model's own, or the E, ν and yield the person gives | [Materials](references/materials.md) |\n| Judge the answer | `result.json` and its findings, against a hand estimate | [Findings](#findings), [judging the answer](references/linear-static.md#judging-the-answer) |\n| Find the load a part takes | Solve at any load: the model is linear, so yield comes at the loads applied, all scaled by the safety factor | [`checks`](references/study-file.md#checks) |\n| Answer what the summary does not | `result.vtu`, read with meshio | [Your own questions](#your-own-questions) |\n| Compare design variants | The same study on each, faces mapped, mesh size held | [Compare variants](#compare-variants) |\n\nThe study reads a saved `.step` or `.xbf`, or a model the server holds by its id\n(`cad model solve <id>`), and solves the whole document: to study one part of an assembly alone,\nexport it as a document of its own.\n\n## Setup\n\nWritten for `cad==0.11.17`. Before first use in a chat, run `cad --version`. If `cad` is missing or older than\n0.11.12, run `uv tool install cad`, adding `--force` if uv says `cad` already exists.\n\nIf cad is a major or minor version newer than this skill, tell the person to update the text-to-cad plugin:\nhttps://github.com/earthtojake/text-to-cad\nA project written for an earlier version may need changes; the migration guides say what:\nhttps://github.com/earthtojake/text-to-cad/tree/main/docs/migrations\n\nThe mesher and the solver are fetched by `cad` the first time a study needs them, nothing to install:\nthe `netgen` integration (`cad[netgen]`, about 11 MB; macOS, Linux x86_64 and Windows x86_64 only, and\na solve elsewhere refuses, naming the platform) and the `calculix` integration (`cad[calculix]`,\nCalculiX 2.23, about 13 MB). The solve runs headless on one thread, so the same study gives the same\nnumbers on every run. `cad run ccx ARGS` runs the same `ccx` on a deck of your own. A `ccx` on PATH is\nnever run; where the fetched one does not run on a computer, `CAD_CCX` names another (2.20 or newer).\n\nUnits are fixed: mm, N, MPa (pressure, modulus and stress), t/mm³ for density (steel 7.85e-9) and g\n(9.81 m/s²) for gravity and acceleration. Restate every load in them before writing it down.\n\n## Workflow\n\n1. **List the faces.** With no study, `solve` prints the setup and writes nothing: the parts, the\n pairs that touch, then each face with its ref, area, centre, surface type and a hint such as\n `plane, normal -Z, largest`.\n\n ```bash\n cad step solve part.step\n ```\n\n Match the person's words (\"the mounting face\") to a ref by the hint and the centre; a hole is a\n `cylinder`. A face they picked in the viewer arrives as a ref already\n (`/work/bracket.step#bracket/face 17`). A document of several parts lists faces once one is named\n (`--occurrence post`). A face number is a position in the saved document, so list again after the\n part is edited.\n\n2. **Write the study** ([study file](references/study-file.md)):\n\n ```json\n {\n \"fixtures\": [{\"faces\": [\"bracket/face 17\"], \"type\": \"fixed\"}],\n \"loads\": [{\"faces\": [\"bracket/face 22\"], \"type\": \"force\", \"vector_N\": [0, -500, 0]}]\n }\n ```\n\n `fixed` holds a face still; `roller` lets it slide in its plane (a frictionless support, a symmetry\n cut). A `force` is the total over its faces; a `pressure` is in MPa, positive into the surface;\n `gravity` and `acceleration` take `vector_g` and no faces, and need the material's density.\n `margin` is the safety factor the part should keep (default 2). `checks` adds a `displacement`\n limit when the person gave one. Leave `mesh` out on the first run.\n\n3. **Solve into a folder**, one per study:\n\n ```bash\n cad step solve part.step --study study.json --out /tmp/bracket-load --json\n ```\n\n | File | What it is for |\n | --- | --- |\n | `result.json` | The answer, which `--json` also prints. Read this first |\n | `stress.png`, `displacement.png` | The deformed part coloured by each field, the deformation exaggerated by `deformation_scale`. They show whether the load points the way you meant and which faces are held |\n | `result.glb` | The same coloured surface, for `cad viewer` or any glTF viewer |\n | `result.vtu` | The volume mesh with `displacement` (mm) and `von_mises` (MPa) at its corner nodes |\n | `ccx.inp` | With `--deck`: the input CalculiX solved, to run or edit yourself (`cad run ccx -i ccx`, in that folder) |\n\n `result.json` holds `ok`, `findings` and `measurements`: the peak stress and where\n (`max_von_mises_MPa`, `max_von_mises_at_mm`), `yield_MPa`, `safety_factor`,\n `max_displacement_mm`, the applied force against the reactions, the mesh, and `refined` when the\n run solved twice ([what comes out](references/study-file.md#what-comes-out)).\n\n - A safety factor under 3 makes the run mesh finer and solve again by itself; the finer result is\n the one written ([mesh](references/linear-static.md#mesh)).\n - A malformed study is refused before meshing, naming the field. A part free to move, a load that\n reaches nothing, or reactions that do not balance the load are refused by the solve.\n - The exit status is 1 when a finding is an error (the part yields or misses a check, results\n written all the same; or `not_connected`, nothing written). Warnings leave it at 0.\n - Where the server cannot draw (Linux with no display) the pictures are left out and a\n `solver_note` says so.\n\n4. **Report with units**: the peak von Mises and the feature it is near, the safety factor and the\n yield it is against, the largest displacement and where, the applied load against the reaction,\n the mesh size and whether a finer solve ran; then the findings, what the model assumes and what\n would change the answer most. Show `stress.png`, saying its deformation is exaggerated.\n\n## Your own questions\n\nFor what the summary does not answer (the stress at the mounting holes, the sag along an edge, how\nmuch of the part is above some stress), read `result.vtu` rather than solving again:\n\n```python\n# cad run --with meshio read-stress.py\nimport meshio, numpy as np\n\nmesh = meshio.read(\"/tmp/bracket-load/result.vtu\")\nxyz, stress = mesh.points, mesh.point_data[\"von_mises\"] # mm, MPa\nmoved = np.linalg.norm(mesh.point_data[\"displacement\"], axis=1) # mm\nnear = np.linalg.norm(xyz - [42, 12, 3], axis=1) < 5 # within 5 mm of a point\nprint(stress[near].max(), moved[xyz[:, 2] > 49].max())\n```\n\nIt holds the tetrahedra's corner nodes, inside the part as well as on its skin. The reported peak\nalso counts mid-edge nodes, so it can be a little above the VTU's maximum. An assembly's cells carry\ntheir `part`, the index into the summary's `parts`.\n\n## Assemblies\n\nA document of several parts is solved as one: parts that touch are bonded into one mesh, each keeps\nits own material, and each is judged against its own yield. Every part must reach a fixed part\nthrough bonded neighbours ([study file](references/study-file.md#assemblies)).\n\n- **Read the setup against the design.** It lists each pair as `bonded` (with its contact area and\n gap), `not connected` (a near miss, up to 1 mm), or `overlapping` (never bonded, unless the overlap\n is within the tolerance: an interference, bonded and closed like a gap). Is each detected joint\n real, and is an expected one missing? A wider gap is bonded by setting `contact_tolerance_mm`\n (default 0.1).\n- **Materials**: each part uses its model's own; `parts` in the study gives one the person's numbers;\n a part with neither is refused by name.\n- **`connections`** only overrides a detection (`free` for a pair that must not be glued). Parts that\n press, slide or are bolted are not modelled.\n- **Faces** are named on any part (`post/face 23`), by its ref where names repeat (`frame/bar.2`). A\n face wholly covered by a bonded joint cannot be held or loaded.\n- **Reading the result**: `yield_MPa` and `safety_factor` are the weakest part's (`weakest_part`),\n while `max_von_mises_MPa` and `max_displacement_mm` span the assembly, so never divide one by the\n other; each part's own numbers are in `parts`. Each finding names its part: fix that part.\n\n## Compare variants\n\nEach version of a design is its own document: run the same study on each into its own folder and\ncompare the `result.json`s. Face numbers are not stable between versions, and a ref reused unchecked\nlands on a different face with no error, so list each variant's faces and map the baseline's by\nsurface type, normal, centre and area. Hold `mesh.size_mm` at the baseline's so a difference is the\ndesign's and not the mesh's, and give the mapping with the table so the person can check it.\n\n## Findings\n\nTwo von Mises peaks are reported. The **nodal** peak (`max_von_mises_MPa`, the one the safety factor\nuses) is extrapolated from each element's integration points to its nodes and averaged; it is usually\nthe higher of the two. The **integration-point** peak (`max_von_mises_gauss_MPa`) is the raw element\nvalue: more than 50 % above the nodal one, it means a concentration the mesh has not resolved. The\nedge of a rigid fixture or bonded joint and a sharp inside corner are singularities, where the peak\ngrows with every refinement and never converges: read the stress a little away from them.\n\nAn error makes the part unfit as modelled; a warning is a judgment to weigh and explain. Most carry\nthe face and the point in mm.\n\n| Finding | Severity | Means | Do |\n| --- | --- | --- | --- |\n| `yields` | error | The nodal peak is above yield | Strengthen where the peak is, change the material, or confirm the load. A `peak_at_fixture` or `peak_concentration` beside it comes first: the peak may be the model's, not the part's |\n| `low_margin` | warning | It holds, but under the study's `margin` | As for `yields`, or report the margin it has. Never lower `margin` to clear it |\n| `displacement_over_limit` | error | A `displacement` check is past its `limit_mm` | Stiffen the part, or confirm the limit |\n| `peak_at_fixture` | warning | The peak sits on a fixed face or its edge, and a finer solve did not settle it | Read the stress a little away from the face before redesigning |\n| `peak_concentration` | warning | The integration-point peak is well above the nodal one: a sharp corner or concentrated load | Fillet the corner or spread the load. Under a safety factor of 3 the run already refined once; above it (a high `margin`), refine once yourself and compare |\n| `mesh_not_converged` | warning | The finer solve moved the peak by more than 10 % | A peak that keeps rising is a singularity: fillet it or judge away from it. Otherwise set a smaller `mesh.size_mm` |\n| `large_displacement` | warning | It moves more than 1 % of its size: the small-displacement model is stretched | Check the fit against mating parts; stiffen if the deflection matters |\n| `not_connected` | error | A part has no bonded chain to a fixed part; nothing was solved | Make the parts touch, fix a face on the group, or raise `contact_tolerance_mm` |\n| `overlapping_parts` | warning | Two solids overlap beyond the tolerance and are not bonded | Fix the geometry, or mark the pair `free` when the overlap is an accepted shortcut |\n| `gap_closed` | warning | Two parts within the tolerance were bonded by moving geometry that far | Confirm it is a modelling clearance; the stress at that joint is the closing's, not the part's |\n| `bonded_edge_peak` | warning | The peak sits on the edge of a bonded joint | Read the stress a little away; a bolted or welded joint is softer than this model |\n| `solver_note` | warning | About the run: a slow solve, a finer solve skipped, pictures not drawn | Mention it when it bears on the answer |\n\n`peak_at_fixture` and `peak_concentration` appear only when the safety factor is under the `margin`\nand no finer solve settled the peak.\n"
}SHA-256 of public snapshot: 56cfff816d324441888f1d3191ff44c8419fbaef8aff99efd494f54de903dfae