Token导航 LogoToken导航TokenDH.com
运维和基础设施执行命令github未标认证来源可访问许可证需确认审计通过

enclosure-designer外壳设计师

Agent Skill

enclosure-designer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

759

周安装

31

GitHub Stars

13

下载量

243
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:enclosure-designer(外壳设计师)
来源仓库:https://github.com/wedsamuel1230/arduino-skills
仓库路径:skills/enclosure-designer
安装命令:
npx skills add https://github.com/wedsamuel1230/arduino-skills --skill enclosure-designer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/wedsamuel1230/arduino-skills --skill enclosure-designer

简介

enclosure-designer 根据 PCB 尺寸自动生成 3D 打印外壳模型。

  • 内置 OpenSCAD 模板和参数化生成脚本工具集。
  • 支持 Arduino、ESP32 等常见开发板类型适配。
  • 输出为 .scad 文件,需配合切片软件完成制造流程。
  • 设计前应确认安装孔位、散热等实际工程约束条件。enclosure-designer 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Enclosure Designer

Creates 3D-printable enclosures for electronics projects.

Resources

This skill includes bundled tools and templates:

  • scripts/generate_enclosure.py - Parametric OpenSCAD generator with PCB database
  • assets/basic-template.scad - Customizable OpenSCAD template

Quick Start

Generate for specific PCB:

uv run --no-project scripts/generate_enclosure.py --pcb "Arduino Uno" --output uno_case.scad
uv run --no-project scripts/generate_enclosure.py --pcb "ESP32 DevKit" --output esp32_case.scad

Custom dimensions:

uv run --no-project scripts/generate_enclosure.py --width 100 --depth 60 --height 30 --output custom.scad

Interactive mode:

uv run --no-project scripts/generate_enclosure.py --interactive

List supported PCBs:

uv run --no-project scripts/generate_enclosure.py --list

When to Use

  • "I need a case for my project"
  • "How do I make an enclosure?"
  • "Design a box for my Arduino"
  • User has working circuit, needs housing
  • Preparing for deployment/presentation

Design Workflow

Step 1: Gather Measurements

Ask user for:

1. Main board dimensions (L × W × H in mm)
2. Component clearances (tallest component height)
3. Connectors/ports that need access (USB, power jack, etc.)
4. Mounting holes (positions, diameters)
5. Any displays, buttons, LEDs that need cutouts
6. Environment (indoor/outdoor, waterproof?)

Step 2: Design Parameters

Enclosure Type: [Box/Clamshell/Snap-fit/Screw-mount]
Material: [PLA/PETG/ABS]
Wall Thickness: [2-3mm typical]
Mounting Style: [Standoffs/Clips/Rails]
Ventilation: [None/Slots/Holes]
Access: [Top-remove/Front-panel/Side-openings]

Step 3: Generate Design

Choose approach:

  1. Parametric OpenSCAD - Full customization
  2. Pre-made generator - Quick results
  3. Manual Fusion360/TinkerCAD - Visual design

Parametric OpenSCAD Template

Basic Project Box

// === PARAMETRIC PROJECT BOX ===
// Customize these values for your project

// Internal dimensions (mm)
inner_length = 70;    // X axis
inner_width = 50;     // Y axis
inner_height = 30;    // Z axis (internal depth)

// Wall and tolerances
wall = 2.5;           // Wall thickness
lid_tolerance = 0.4;  // Gap for lid fit
corner_radius = 3;    // Rounded corners

// Mounting standoffs
standoff_height = 5;  // PCB clearance from bottom
standoff_dia = 6;     // Standoff outer diameter
screw_hole_dia = 2.5; // M2.5 screw hole

// PCB mounting hole positions (from corner)
// Measure from your board!
pcb_holes = [
    [5, 5],           // Bottom-left
    [65, 5],          // Bottom-right
    [5, 45],          // Top-left
    [65, 45]          // Top-right
];

// Lid attachment
lid_screw_dia = 3;    // M3 screws
lid_screw_positions = [
    [5, 5],
    [inner_length-5, 5],
    [5, inner_width-5],
    [inner_length-5, inner_width-5]
];

// Cutouts (add as needed)
usb_cutout = true;
usb_x = 35;           // Center position
usb_width = 12;
usb_height = 8;

// === MODULES ===

module rounded_box(l, w, h, r) {
    hull() {
        for (x = [r, l-r])
            for (y = [r, w-r])
                translate([x, y, 0])
                    cylinder(h=h, r=r, $fn=32);
    }
}

module standoff(h, outer_d, inner_d) {
    difference() {
        cylinder(h=h, d=outer_d, $fn=24);
        cylinder(h=h+1, d=inner_d, $fn=24);
    }
}

module box_base() {
    outer_l = inner_length + 2*wall;
    outer_w = inner_width + 2*wall;
    outer_h = inner_height + wall;  // Bottom wall

    difference() {
        // Outer shell
        rounded_box(outer_l, outer_w, outer_h, corner_radius);

        // Inner cavity
        translate([wall, wall, wall])
            rounded_box(inner_length, inner_width, inner_height+1, corner_radius-wall);

        // USB cutout
        if (usb_cutout) {
            translate([wall + usb_x - usb_width/2, -1, wall + standoff_height])
                cube([usb_width, wall+2, usb_height]);
        }
    }

    // Add standoffs
    for (pos = pcb_holes) {
        translate([wall + pos[0], wall + pos[1], wall])
            standoff(standoff_height, standoff_dia, screw_hole_dia);
    }
}

module box_lid() {
    lid_wall = wall - lid_tolerance;
    outer_l = inner_length + 2*wall;
    outer_w = inner_width + 2*wall;
    lip_h = 5;  // How deep lid inserts

    // Lid top
    rounded_box(outer_l, outer_w, wall, corner_radius);

    // Lid lip (inserts into box)
    translate([wall + lid_tolerance, wall + lid_tolerance, -lip_h])
        difference() {
            rounded_box(inner_length - 2*lid_tolerance,
                       inner_width - 2*lid_tolerance,
                       lip_h, corner_radius - wall);
        }
}

// === RENDER ===

// Uncomment one at a time for printing:
box_base();
// translate([0, inner_width + 20, 0]) box_lid();

Adding Cutouts

// === CUTOUT LIBRARY ===

// Round hole (for buttons, LEDs)
module round_cutout(x, y, z, diameter, depth) {
    translate([x, y, z])
        rotate([90, 0, 0])
            cylinder(h=depth, d=diameter, $fn=32);
}

// Rectangle (for displays, SD cards)
module rect_cutout(x, y, z, width, height, depth) {
    translate([x - width/2, -0.1, z])
        cube([width, depth + 0.2, height]);
}

// Slot (for ventilation, cables)
module slot_cutout(x, y, z, width, height, depth) {
    translate([x, y, z])
        hull() {
            translate([0, 0, 0])
                cylinder(h=depth, d=height, $fn=24);
            translate([width-height, 0, 0])
                cylinder(h=depth, d=height, $fn=24);
        }
}

// OLED display cutout (128x64 module)
module oled_cutout() {
    // Visible area
    rect_cutout(inner_length/2, wall, inner_height - 15, 26, 14, wall+1);
    // Mounting holes (if needed)
}

// Common connector dimensions
usb_micro = [8, 3];      // USB Micro
usb_c = [9, 3.5];        // USB-C
barrel_jack = [12, 12];  // 5.5mm DC jack (round)
sd_card = [15, 3];       // SD card slot

Online Generators (No CAD Needed)

Ultimate Box Maker (Thingiverse)

https://www.thingiverse.com/thing:1264391

Parameters:

  • Enter internal dimensions
  • Choose wall thickness
  • Select lid type (snap/screw/slide)
  • Add ventilation slots
  • Download STL

Parametric Box by Heartman

https://www.thingiverse.com/thing:1355018

Good for:

  • Simple project boxes
  • Snap-fit lids
  • Basic customization

FreeCAD + Parametric Enclosure

  1. Install FreeCAD
  2. Use Spreadsheet workbench for parameters
  3. Generate enclosure with formulas
  4. Export STL

Common Board Dimensions

Arduino Family

BoardL × W × H (mm)Mounting Holes
UNO R368.6 × 53.4 × 154 holes, 3.2mm
Nano45 × 18 × 82 holes, 1.5mm
Mega 2560101.5 × 53.4 × 154 holes, 3.2mm
Pro Mini33 × 18 × 5None standard

ESP32 Family

BoardL × W × H (mm)Mounting Holes
DevKit V1 (38pin)55 × 28 × 10None (use clips)
DevKit V1 (30pin)49 × 26 × 10None
NodeMCU-32S51 × 25 × 102 holes, 3mm
ESP32-CAM40 × 27 × 122 holes, 2mm

Raspberry Pi Pico

BoardL × W × H (mm)Mounting Holes
Pico/Pico W51 × 21 × 44 holes, 2.1mm

Common Modules

ModuleL × W × H (mm)Notes
SSD1306 OLED 0.96"27 × 27 × 44 corners 2mm
BME28015 × 12 × 32 holes 2mm
SD Card42 × 24 × 54 corners 2mm
TP405626 × 17 × 4None
18650 holder77 × 21 × 19Varies

Design Guidelines

Wall Thickness

Application              Thickness
─────────────────────────────────────
Desktop/indoor           2.0 mm
Portable/handheld        2.5 mm
Outdoor                  3.0 mm
Structural/load-bearing  4.0+ mm

Clearances

Component           Add clearance
─────────────────────────────────────
PCB to wall         1-2 mm
USB/connector       0.5 mm extra per side
Moving parts        2-3 mm
Lid fit             0.3-0.5 mm gap

Mounting Strategies

PCB Standoffs:

    [Standoff]──┐
        │       │
    [PCB]       │ standoff_height
        │       │
    ────────────┘
        ▲
     box_floor

Edge Rails:

    ┌────────────┐
    │    [PCB]   │
    │  ───────   │
    │ /       \  │  <-- Rails support PCB edges
    └───┘   └────┘

Snap-in Clips:

    ┌──╲   ╱──┐
    │   [PCB] │
    │  ───────│
    └─────────┘
        ▲
     Flexible clips

Ventilation

When needed:

  • MCU draws >100mA continuously
  • Motor drivers
  • Power regulators
  • Any component getting warm

Vent patterns:

// Slot pattern (easy to print, good flow)
for (i = [0:5]) {
    translate([10 + i*8, wall/2, 10])
        slot_cutout(20, 3, wall+1);
}

// Honeycomb (looks cool, harder to print)
// Use pre-made pattern from Thingiverse

Print Settings

Material Selection

MaterialProsConsBest For
PLAEasy to print, cheapWeak to heat (>50°C)Indoor projects
PETGHeat resistant, strongStringing, harderOutdoor, functional
ABSHeat resistant, toughWarps, fumesProfessional
ASAUV resistantLike ABSOutdoor long-term

Recommended Settings

PLA Enclosure:

Layer height: 0.2mm
Wall count: 3-4 (for 2-3mm wall)
Infill: 15-20%
Support: Usually not needed if designed right
Bed temp: 60°C
Nozzle temp: 200-210°C

PETG Enclosure:

Layer height: 0.2mm
Wall count: 3-4
Infill: 20-25%
Support: Often needed
Bed temp: 80°C
Nozzle temp: 230-245°C
Print slower than PLA

Orientation Tips

Print box BASE standing up (opening facing up)
- No supports needed
- Good surface finish inside
- Strong walls

Print LID flat (top surface down)
- Smooth exterior surface
- May need supports for cutouts

Waterproofing

IP Rating Guide

IP65 - Dust tight, water jets OK
IP67 - Dust tight, submersible briefly
IP68 - Dust tight, continuous submersion

Strategies

Rubber Gasket:

Add groove in lid for O-ring:
    ┌───╔═══════╗───┐
    │   ║O-ring ║   │
    │   ╚═══════╝   │
    │    [box]      │
    └───────────────┘

Cable Glands:

  • Use PG7/PG9 cable glands for wires
  • Drill precise holes, thread in glands
  • Seal with silicone if needed

Conformal Coating:

  • Spray PCB with conformal coat
  • Protects electronics inside box

Example: ESP32 Weather Station Enclosure

// ESP32 Weather Station Enclosure
// Components: ESP32 DevKit, BME280, SSD1306 OLED, 18650 battery

// Internal dimensions (measured from components + clearance)
inner_length = 80;
inner_width = 55;
inner_height = 50;  // Room for battery under PCB

wall = 3;  // Outdoor = thicker walls

// ESP32 on standoffs
esp_standoff_h = 25;  // Above battery
esp_holes = [[5, 5], [5, 50], [52, 5], [52, 50]];

// OLED window position (top of enclosure)
oled_x = 40;
oled_y = 15;
oled_w = 28;
oled_h = 16;

// BME280 vent hole
bme_vent_x = 70;
bme_vent_y = 30;
bme_vent_dia = 8;

// USB access
usb_x = 30;
usb_y = inner_height - 15;

// Generate with above parameters...

Troubleshooting

ProblemCauseSolution
Lid too tightTolerance too smallIncrease to 0.5mm
Lid too looseTolerance too largeDecrease, add clips
Screws stripHoles too largeUse proper thread inserts
Parts don't fitMeasurement errorRemeasure, print test piece
Weak wallsToo thin, low infillIncrease wall count
WarpingABS, big flat surfacesUse brim, enclosure, PETG

Resources

  • OpenSCAD: https://openscad.org
  • Thingiverse Customizer: Parametric designs
  • Printables: More enclosure designs
  • McMaster-Carr: Reference for hardware dimensions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.55%
按下载量换算91

Claude

31.42%
按下载量换算76

Cursor

18.73%
按下载量换算46

Gemini CLI

9.33%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/wedsamuel1230/arduino-skills --skill enclosure-designer 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills