Agent Skills › ghbalf/freecad-ai › thread-insert

thread-insert

GitHub

为3D打印件创建热套螺纹嵌件的孔,支持M2-M5规格及通孔清理。

skills/thread-insert/SKILL.md ghbalf/freecad-ai

触发场景

需要创建螺纹嵌件安装孔 3D打印后处理加工

安装

npx skills add ghbalf/freecad-ai --skill thread-insert -g -y
更多选项

不安装直接使用

npx skills use ghbalf/freecad-ai@thread-insert

指定 Agent (Claude Code)

npx skills add ghbalf/freecad-ai --skill thread-insert -a claude-code -g -y

安装 repo 全部 skill

npx skills add ghbalf/freecad-ai --all -g -y

预览 repo 内 skill

npx skills add ghbalf/freecad-ai --list

SKILL.md

Frontmatter
{
    "name": "thread-insert",
    "description": "Create properly sized holes for heat-set threaded inserts (common in 3D printed parts)."
}

Heat-Set Thread Insert Holes

Create properly sized holes for heat-set threaded inserts (common in 3D printed parts).

Standard insert sizes (hole diameter / depth)

  • M2: hole d=3.2mm, depth=3.5mm
  • M2.5: hole d=3.6mm, depth=4.0mm
  • M3: hole d=4.0mm, depth=5.0mm
  • M4: hole d=5.6mm, depth=6.0mm
  • M5: hole d=6.4mm, depth=7.0mm

Parameters to ask (if not provided)

  • Insert size: M2 / M2.5 / M3 / M4 / M5
  • Target object: which body/feature to cut into
  • Positions: XY coordinates or face + offsets
  • Through-hole below insert?: if yes, add a smaller through-hole (screw clearance) below the insert pocket

Construction

  1. For each position, create a sketch on the target face
  2. Draw a circle with the insert hole diameter
  3. Pocket to the insert depth
  4. If through-hole requested: add a second smaller circle (screw clearance) and pocket through-all

Clearance hole diameters (for through-holes below insert)

  • M2: 2.4mm, M2.5: 2.9mm, M3: 3.4mm, M4: 4.5mm, M5: 5.5mm

Cleanup

After construction, hide all sketches for a clean viewport:

for obj in App.ActiveDocument.Objects:
    if obj.TypeId == "Sketcher::SketchObject":
        obj.Visibility = False

版本历史

  • 08d637d 当前 2026-10-18 20:52

同 Skill 集合

skills/create-validation/SKILL.md
skills/enclosure/SKILL.md
skills/fastener-hole/SKILL.md
skills/gear/SKILL.md
skills/lattice/SKILL.md
skills/optimize-skill/SKILL.md
skills/sketch-from-image/SKILL.md
skills/skill-creator/SKILL.md

元信息

文件数
0
版本
08d637d
Hash
739debba
收录时间
2026-10-18 20:52

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-05 10:15
浙ICP备14020137号-1