solidworks-threaded-holes

solidworks-threaded-holes is a skill for Codex from wzyn20051216/solidworks-automation-skill. It costs 150 tokens per session (1,379 once invoked), scanned A, original, MIT.

A SolidWorks skill for creating and checking ISO metric internal threaded holes, such as M6, in new parts. It covers supported blind and through holes, chamfers, thread direction, and delivery evidence.

In plain words
What is it for?
Use it for supported M3–M12 coarse-thread holes in new parts, exporting the result to STEP, and reviewing the model. Existing-part edits and non-metric thread types require extra review.
Why use it?
It prevents common errors such as using the wrong tap-drill size, hole depth, or termination condition, and verifies that the thread remains after rebuilding the model.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for supported M3–M12 coarse-thread holes in new parts, exporting the result to STEP, and reviewing the model. Existing-part edits and non-metric thread types require extra review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wzyn20051216/solidworks-automation-skill --skill solidworks-threaded-holes
Clone the repo
git clone --depth 1 https://github.com/wzyn20051216/solidworks-automation-skill

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for solidworks-threaded-holes

README.md
[![agentmods](https://agentmods.dev/badge/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes/github.svg)](https://agentmods.dev/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes)
Your own site
<a href="https://agentmods.dev/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes"><img src="https://agentmods.dev/badge/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for solidworks-threaded-holes

Your own site · 80×15
<a href="https://agentmods.dev/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes"><img src="https://agentmods.dev/badge/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00150 $0.01379
Opus 5 $0.00075 $0.00690
Sonnet 5 $0.00030 $0.00276
Haiku 4.5 $0.00015 $0.00138

Measured 12d ago against content hash 03b1ef72ec3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

solidworks-threaded-holes scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/create_threaded_hole_template.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

subskills/solidworks-threaded-holes/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SolidWorks Threaded Holes

先判定能力等级

当前稳定脚本是 scripts/create_threaded_hole_template.py,它在新建矩形样件上生成 ISO 公制内螺纹孔。

  • verified:M3/M4/M5/M6/M8/M10/M12 粗牙内螺纹,盲孔或真正 Through All 底孔,孔口倒角,右旋/左旋,公差属性,真实 Metric Tap Thread 特征,STEP 和审查证据。已在 SolidWorks 2026 实测盲孔与贯穿孔。
  • reviewed:表外 ISO 公制规格;必须由用户显式提供 --tap-drill,不得猜测底孔。
  • pilot:对现有零件定位并改孔、Hole Wizard/Advanced Hole、外螺纹、英制/UN/UNF/NPT/BSP、多头螺纹、显式牙型与钻尖/退刀槽。执行前读取 扩展路线图

稳定工作流

  1. 从仓库根目录运行 python scripts/sw_preflight.py
  2. 确认螺纹规格、内/外螺纹、公差等级、旋向、盲孔/贯穿、螺纹深度、底孔深度、孔位和是否要求真实牙型。
  3. 在 COM 前校验所有值为有限数,底孔小于公称直径,螺纹深度不超过底孔/零件厚度,孔位保留螺纹大径和倒角边界。
  4. 先创建真实底孔几何:盲孔用 swEndCondBlind=0,贯穿孔必须用 swEndCondThroughAll=1,不得用“板厚 + 1 mm”盲孔伪装。
  5. 按圆心、半径和入口面枚举圆边,不依赖 Edge1 或屏幕坐标。
  6. 尝试真实 Thread:Type="Metric Tap",平面圆边使用选择标记 1,不要把同一圆边写入 StartEntity,不要调用不存在的 LoadReferences,不要用公称直径覆盖底孔圆柱直径。
  7. Thread 失败时尝试 InsertCosmeticThread3;贯穿装饰螺纹用 swEndConditionThrough=2。COM 返回非空不等于持久化成功,必须重建后遍历特征树。
  8. 只有真实/装饰螺纹均未留在特征树时,--visible-thread fallback 才创建 3D 草图螺旋线。螺旋线允许小数圈以保持真实螺距;单独导出 *_thread_evidence.bmp 后将草图隐藏,避免污染标准预览。
  9. 创建孔口倒角,写入螺纹规格、底孔、深度、公差、旋向、终止条件和最终表达状态。
  10. 隐藏参考平面,保存 SLDPRT,导出 STEP,运行 sw_review.run_review(),目视检查等轴测/三视图。

模板用法

默认 M6×1 右旋 6H 盲孔:

python subskills/solidworks-threaded-holes/scripts/create_threaded_hole_template.py `
  --thread M6 `
  --output-dir C:\CADAutomationWorkbench\solidworks_threaded_hole_output

M8×1 表外细牙、左旋、贯穿孔:

python subskills/solidworks-threaded-holes/scripts/create_threaded_hole_template.py `
  --thread M8x1 `
  --tap-drill 7.0 `
  --through `
  --handedness left `
  --thread-class 6H `
  --output-dir C:\CADAutomationWorkbench\m8x1_lh_output

--visible-thread 支持 fallback(默认)、alwaysnever。正常交付保持 fallback;调试螺旋线时才使用 always

交付与验证

必须生成:

  • *.SLDPRT
  • *.step
  • *_parameters.json
  • *_review_report.json
  • *_isometric.bmp 及三视图
  • 仅在创建可见螺旋线时生成 *_thread_evidence.bmp

*_parameters.json 中必须同时检查 thread_attemptsthread_evidencethread_status。只有下列条件同时满足才可交付:

Read the full file on GitHub · 72 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 72 lines · 150 tokens per session scan A 03b1ef72ec3e

Subscribe to this mod's changes

solidworks-threaded-holes is a skill published in the GitHub repository wzyn20051216/solidworks-automation-skill (890 stars, last pushed 5d ago), licensed MIT. It adds 150 tokens to every session and 1,379 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

kicad-agent

Inspect and modify KiCad schematics and PCB layouts, run ERC/DRC, and prepare traceable fabrication exports using the installed version's CLI or documented APIs. Use for board edits, library and footprint issues, stale checks after edits, copper-zone refill, Gerber/drill/BOM exports, and saved-state verification.

walterkken/doc-driven-engineering-software-skills · 70 tokens

ifoxcad

Use when developing AutoCAD plugins with .NET/C# — entity creation, layer management, block references, transaction handling. iFoxCAD: AutoCAD .NET secondary development framework with simplified API wrappers.

znlgis/opengis-skills · 44 tokens

tongwen

Use when translating engineering CAD drawings between languages — DWG text extraction, translation workspace with terminology management, quality-checked write-back. TongWen (同文): local-first CAD/BIM lossless translation suite for AutoCAD 2019-2026.

znlgis/opengis-skills · 55 tokens

solidworks-api

SolidWorks 2023 API/SDK coding assistant. Covers part modeling, sketches, features (extrude/revolve/cut), patterns, mates, materials, STEP export, and shield machine cutterhead design. Triggers: SolidWorks, SOLIDWORKS, SLDWORKS, ISldWorks, IModelDoc2, IFeatureManager, sketch, extrude, revolve, cut, pattern, mate…

guoleizhen717/solidworks-api-skill · 118 tokens

kompas-mcp-operator

Operate KOMPAS-3D MCP for 2D drawings, 3D parts, CAD-as-Code scripts, screenshots, exports, runtime memory, remote/local recovery, and Graph Brain diagnostics. Use when Codex needs to create, edit, inspect, validate, or debug geometry through mcpkompas3d, especially for sketch-feature chains, reusable scenarios…

dwnmf/KOMPAS-3D-MCP-bin · 95 tokens

openfoam-agent

Prepare, run, debug, and postprocess OpenFOAM CFD cases using the installed distribution's documentation and tutorials. Use for case dictionaries, solver selection, meshing, boundary conditions, parameter studies, residual interpretation, and field exports. Check distribution compatibility and native execution before…

walterkken/doc-driven-engineering-software-skills · 63 tokens