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

thread-insert

GitHub

为3D打印件中的热熔螺纹嵌件创建精确尺寸的孔洞,支持M2至M5规格及通孔选项。

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

Trigger Scenarios

需要为3D打印模型添加螺纹嵌件孔位 询问标准螺纹嵌件的钻孔直径和深度参数

Install

npx skills add ghbalf/freecad-ai --skill thread-insert -g -y
More Options

Use without installing

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

Version History

  • 08d637d Current 2026-10-18 20:52

Same Skill Collection

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

Metadata

Files
0
Version
08d637d
Hash
739debba
Indexed
2026-10-18 20:52

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 13:27
浙ICP备14020137号-1