Agent Skills › ghbalf/freecad-ai › fastener-hole

fastener-hole

GitHub

用于在CAD建模中创建标准紧固件孔(通孔、沉头孔、倒角孔),支持多种螺丝规格与配合公差,通过草图绘制和挖切操作生成孔特征,并自动清理视图。

skills/fastener-hole/SKILL.md ghbalf/freecad-ai

触发场景

需要创建标准螺栓孔 指定螺丝规格生成沉头或倒角孔

安装

npx skills add ghbalf/freecad-ai --skill fastener-hole -g -y
更多选项

不安装直接使用

npx skills use ghbalf/freecad-ai@fastener-hole

指定 Agent (Claude Code)

npx skills add ghbalf/freecad-ai --skill fastener-hole -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": "fastener-hole",
    "description": "Create standard fastener holes: clearance, counterbore, or countersink."
}

Fastener Hole Patterns

Create standard fastener holes: clearance, counterbore, or countersink.

Hole types

Clearance holes (through-hole for bolt to pass through)

Size Close fit Normal fit
M2 2.2mm 2.4mm
M2.5 2.7mm 2.9mm
M3 3.2mm 3.4mm
M4 4.3mm 4.5mm
M5 5.3mm 5.5mm
M6 6.4mm 6.6mm
M8 8.4mm 9.0mm

Counterbore (socket head cap screw)

Size CB diameter CB depth
M3 6.5mm 3.0mm
M4 8.0mm 4.0mm
M5 10.0mm 5.0mm
M6 11.5mm 6.0mm
M8 15.0mm 8.0mm

Countersink (flat head screw, 90 degree)

Size CS diameter
M3 6.3mm
M4 8.4mm
M5 10.4mm
M6 12.6mm

Parameters to ask (if not provided)

  • Screw size: M2 through M8
  • Hole type: clearance / counterbore / countersink
  • Fit: close / normal (for clearance holes)
  • Target object: body or feature to cut into
  • Positions: list of XY coordinates, or pattern (linear/circular)
  • Pattern: if applicable — count, spacing, or bolt circle diameter + count

Construction

  1. Create a sketch on the specified face
  2. For each hole position, add a circle (clearance diameter)
  3. Pocket through-all for the clearance hole
  4. For counterbore: add a second larger circle, pocket to CB depth
  5. For countersink: use a cone (Part.makeCone) to create the 90-degree chamfer

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:51

同 Skill 集合

skills/create-validation/SKILL.md
skills/enclosure/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
skills/thread-insert/SKILL.md

元信息

文件数
0
版本
08d637d
Hash
8acb95a6
收录时间
2026-10-18 20:51

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