Skip to content
Back to skills

Boxes And Enclosures

ASecurity

Design printed boxes, cases and enclosures: lids over a lip that sit on a step flush with the outside, friction fits, finger notches, clasps or magnets to hold them, sizing from the real contents with dummy parts and margins, bays where a wall becomes a hard stop, access paths for plugs and cards, and thin walls and floors to save filament and time. Use when someone wants a box, case, lid, cover, tray, organizer or enclosure, or wants to close up an open tray or holder.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgorails

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add alexnodeland/fabrication --skill boxes-and-enclosures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Boxes And Enclosures?

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

Security grade badge for Boxes And Enclosures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnodeland-boxes-and-enclosures/badge)](https://www.skillsdirectory.com/skills/alexnodeland-boxes-and-enclosures)

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: boxes-and-enclosures
description: "Design printed boxes, cases and enclosures: lids over a lip that sit on a step flush with the outside, friction fits, finger notches, clasps or magnets to hold them, sizing from the real contents with dummy parts and margins, bays where a wall becomes a hard stop, access paths for plugs and cards, and thin walls and floors to save filament and time. Use when someone wants a box, case, lid, cover, tray, organizer or enclosure, or wants to close up an open tray or holder."
---

# Boxes and enclosures

A box is a contents problem first and a wall problem second. Model what goes inside, worst case, then build the
walls around it, then check every content dummy against every wall in every pose.

## Size by the real contents, not the source model

1. **Model the contents as dummy solids** in the box's frame: boards, brackets, component envelopes, cables, the
   finger that reaches in. Take each size from the best source (`measure-from-photos`) and the worst reading.
2. **Give each direction a named margin:** pcie-box has `HEADROOM` 4 over the tallest card, `SIDE` 2 beside the tray,
   `BAY` 12 at the bracket end and `END_BAY` 15 at the far end.
3. **Check every dummy in every pose:** zero interference seated; the lid closes over them; at least 1.0 mm from the
   base's walls and floor and 1.5 mm from the cover; neighbours clear each other. Print a margins table into the report.
4. **Say what the checks rest on:** "These checks are only as good as the dummy's numbers."

A source model's size fits its author's contents. pcie-box's source tray fit cards on an open tray; the box needed
other numbers.

## Walls become hard stops

On an open tray a long card just hangs off the end, and a bracket's screw tab hangs over the edge. In a box it can't:
the wall stops it. So:

- **Leave bays** where contents reach past the old edges: `BAY` 12 for a screw tab folded outward, `END_BAY` 15 for a
  card longer than the tray.
- **Check both ways a part can sit** (the tab folded out and folded over the card).
- **Don't let a wall become a support by accident.** pcie-box cut its card slots through the end wall
  (`SLOTS_THROUGH`), so a long card rests on its gold fingers whatever shape its lower edge has. A check seats a card
  whose finger tab hangs only 4 mm.

## The lid: a cover over a lip, on a step, flush

pcie-box's design, a five-sided cover that slides over a lip on the base and sits on a step:

- **Wall below the step** = lip + fit + cover wall: `WALL = LIP_T + FIT + COVER_T` = 1.6 + 0.2 + 1.2 = 3.0.
- **Lip** inset `COVER_T + FIT` from the outside, reaching `LIP_H` 12 above the step at `STEP_Z` 20.
- **Flush outside:** the cover's outline equals the base's.
- **Lead-ins:** 0.5 mm chamfers on the lip's top and inside the cover's rim (`LEAD`); 0.5 mm on the base's bottom edge
  and the cover's roof edge (`EDGE_CH`).
- **Rounded corners:** `R_OUT` 5 outside; each inset outline's radius is `R_OUT - inset`.

Checks (code in `references/lid-on-a-step.md`): outsides flush, by sections just under and over the step; the cover
sits on the step without touching the base; the gap is exactly `FIT` on all four sides, on a section at mid-lip; the lip
is `LIP_T` thick.

## Holding the lid

| Hold | When | Fit |
|------|------|-----|
| Friction lip alone | light contents, rare opening | `FIT` 0.15 to 0.2, coupon decides |
| Clasps (`mechanisms`) | carried, stacked, opened often | the lip only locates: `FIT` 0.2 |
| Magnets and steel discs | a folding case (xiangqi) | magnets on one side only |
| Finger notch under the rim | a friction lid nobody can grip | `NOTCH_D` 3 mm deep at each end; 0 when clasps lift it |

## Thin walls and floors

Material and time go with wall area, so thin what carries no load:

| Change (pcie-box) | Saved |
|-------------------|-------|
| Cover walls (were 1.6) and roof 1.2 mm, floor 1.0 mm | about 90 g, 1.3 h |
| Tray rails webbed to 3.2 mm with 45° flares, stopped at 140 mm, no end wall | about 30 g, 0.5 h |
| 0.24 mm layers instead of 0.20 | 0.7 h |

That took the box from 463 g and 8.4 h to 345 g and 6.0 h. Keep walls in whole line widths (`design-for-fdm`) and
let clasps carry the load a thin friction wall can't. Stop when the next saving is small: a smaller box would have
saved only about 28 g and 25 minutes more, at the cost of tighter assumptions about the cards.

## Enclosures for electronics (lynx)

- **Access paths are checks:** lynx checks that a straight USB-C plug goes in and the microSD card comes out. Model
  each as a solid moving along its path (a plug, a card, a fingertip on a button) and check it hits nothing.
- **Moving parts get a collision sweep** over their whole range (lynx: pan ±90° × tilt ±60°).
- **One screw type** where possible (lynx: nine M2 × 8 thread-forming screws), and crush ribs for press-fit parts.

## Print plan

- The base prints on its floor; the cover upside down, roof on the bed (check: one face on the bed, at least 90 % of the
  footprint).
- A 151 × 196 mm box fills the 256 mm bed: base and cover go on separate plates. Count plates first and say how many.
- Coupons first (`fits-and-tolerances`): pcie-box's rim coupons are U-shaped halves of the lip and the cover's rim,
  one full end and both sides to the middle, so they test the full width and still share one plate.

## Done when

- Every content dummy passes in every pose, and the margins table is in the report.
- The lid's gap is measured on a section and equals the fit.
- Time and grams come from the slicer (`bambu-cli-slicing` skill), plate by plate.

Files in this skill

  • SKILL.md5.5 KB
  • references/lid-on-a-step.md4.4 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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