Token导航 LogoToken导航

Agent Skill · 运维和基础设施

enclosure-designer(外壳设计师)

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

enclosure-designer 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,216。

总安装 759周安装 31GitHub Stars 13下载 243核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

enclosure-designer 根据 PCB 尺寸自动生成 3D 打印外壳模型。内置 OpenSCAD 模板和参数化生成脚本工具集。支持 Arduino、ESP32 等常见开发板类型适配。输出为 .scad 文件,需配合切片软件完成制造流程。设计前应确认安装孔位、散热等实际工程约束条件。

enclosure-designer 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/enclosure-designer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/wedsamuel1230/arduino-skills --skill enclosure…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

enclosure-designer 怎么安装?

在终端执行 npx skills add https://github.com/wedsamuel1230/arduino-skills --skill enclosure-designer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

enclosure-designer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

enclosure-designer 需要什么权限?

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

enclosure-designer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

enclosure-designer 用的人多吗?

公开数据是累计安装 759 次,近一周安装 31 次,下载 243 次,GitHub 13 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

enclosure-designer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
enclosure-designer

外壳设计师 · 本页

75913执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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