Skip to content
Back to skills

Figures

ASecurity

Rules for drawing KoFEM figures of a model: Theory Guide figures (web/theory/figures), example and validation figures (examples/validation/lib/figures.mjs), and figures in review HTML. Use whenever you draw or change a figure that shows a part, its mesh, supports, loads or dimensions, before writing the drawing code and again before you send it.

  • 17 stars
  • 0 votes
  • 1 copy
  • 3 views
  • Added December 3, 2026
testingnodeaws

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add mkofler96/KoFEM --skill figures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Figures?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Figures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mkofler96-figures/badge)](https://www.skillsdirectory.com/skills/mkofler96-figures)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: figures
description: "Rules for drawing KoFEM figures of a model: Theory Guide figures (web/theory/figures), example and validation figures (examples/validation/lib/figures.mjs), and figures in review HTML. Use whenever you draw or change a figure that shows a part, its mesh, supports, loads or dimensions, before writing the drawing code and again before you send it."
---

# Figures

A figure of a model must show the model that is solved, and nothing a reader
could take for a different one. Look at the rendered PNG before you send it;
these rules come from errors that tests did not catch.

## Loads

1. **A distributed load acts on the whole loaded edge or face, so draw an
   arrow at every node of it, end nodes included.** Drawing arrows on part
   of an edge says the load acts on part of it. This is a recurring error:
   loops that start at the second node or stop one short, or that skip
   nodes whose load is small.
2. **On a mesh, draw the nodal forces the solver applies, not a pointwise
   traction at each node.** The solver integrates each edge's load and shares
   it among the edge's nodes (half each on a 2-node edge), so the end nodes of
   a loaded edge carry half. A pointwise value can be near zero or point
   elsewhere at a node whose nodal force is neither: the Kirsch traction at
   the top of the arc is a small upward pull, but that node's force is half of
   the neighbouring edge's load, along x. Compute the forces with
   `nodalForces` and the edge integral the evidence uses
   (`web/theory/solid-mechanics/plane-formulas.mjs`).
3. In Theory figures use `nodalLoadArrows(nodes, arrowAt, { touch })` from
   `web/theory/figures/svg.mjs`. It takes the edge's nodes, draws one arrow
   per node, and throws on a missing or zero-length arrow. A small load keeps
   its direction at a minimum length rather than vanishing; that floor is for
   a nodal force that is small, never a cover for drawing the wrong quantity.
   Pass the nodes of the edge the solve loads, from the same mesh builder the
   solve uses.
4. `touch: "tail"` puts the tail on the part (a traction that pulls),
   `"head"` the head (a pressure that pushes). Check each arrow's direction
   against the load the solver gets: sign, and whether it pushes or pulls.
5. When a figure is schematic rather than a mesh, still spread the arrows
   over the full loaded length, from end to end.

## Supports and geometry

- Draw a support on the edge or face it holds, with a symbol that shows
  which components it holds (a roller under an edge holds the normal one).
- Take meshes, curves and load magnitudes from the code that builds or
  solves the model (`web/theory/solid-mechanics/plane-meshes.mjs`,
  `plane-formulas.mjs`), never from a second copy.

## Dimensions and labels

- Give a length or radius as a dimension line with extension lines,
  outside the part (`radiusDimension` for radii), not as a bare letter on
  the part.
- Keep labels off mesh lines, arrows and other dimensions' extension lines;
  `radiusDimension` takes the label's position along its line.
- Build alt text from the same data as the drawing; never copy measured
  numbers into it.

The Theory Guide's other figure rules (fonts, `sym` labels, registration,
SVG and PNG output) are in `docs/theory/README.md` under "Figures and result
viewers".

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.