SolidWorks Automation Skill is a Python toolkit that connects coding-agent tools to the SolidWorks API for automating CAD work. Engineers use it with SolidWorks and, for some workflows, AutoCAD through a skill package, MCP server, or desktop application. The catalogue add-ons provide workflows that operate this toolkit.
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.
npx skills add wzyn20051216/solidworks-automation-skill --skill solidworks-threaded-holesgit clone --depth 1 https://github.com/wzyn20051216/solidworks-automation-skillWrote 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.
[](https://agentmods.dev/skills/wzyn20051216/solidworks-automation-skill/solidworks-threaded-holes)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00150 | $0.01379 |
| Opus 5.5 | $0.00060 | $0.00552 |
| Sonnet 5.5 | $0.00030 | $0.00276 |
| Haiku 4.5 | $0.00015 | $0.00138 |
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 1mo ago.
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.
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 TapThread 特征,STEP 和审查证据。已在 SolidWorks 2026 实测盲孔与贯穿孔。reviewed:表外 ISO 公制规格;必须由用户显式提供--tap-drill,不得猜测底孔。pilot:对现有零件定位并改孔、Hole Wizard/Advanced Hole、外螺纹、英制/UN/UNF/NPT/BSP、多头螺纹、显式牙型与钻尖/退刀槽。执行前读取 扩展路线图。
稳定工作流
- 从仓库根目录运行
python scripts/sw_preflight.py。 - 确认螺纹规格、内/外螺纹、公差等级、旋向、盲孔/贯穿、螺纹深度、底孔深度、孔位和是否要求真实牙型。
- 在 COM 前校验所有值为有限数,底孔小于公称直径,螺纹深度不超过底孔/零件厚度,孔位保留螺纹大径和倒角边界。
- 先创建真实底孔几何:盲孔用
swEndCondBlind=0,贯穿孔必须用swEndCondThroughAll=1,不得用“板厚 + 1 mm”盲孔伪装。 - 按圆心、半径和入口面枚举圆边,不依赖
Edge1或屏幕坐标。 - 尝试真实 Thread:
Type="Metric Tap",平面圆边使用选择标记1,不要把同一圆边写入StartEntity,不要调用不存在的LoadReferences,不要用公称直径覆盖底孔圆柱直径。 - Thread 失败时尝试
InsertCosmeticThread3;贯穿装饰螺纹用swEndConditionThrough=2。COM 返回非空不等于持久化成功,必须重建后遍历特征树。 - 只有真实/装饰螺纹均未留在特征树时,
--visible-thread fallback才创建 3D 草图螺旋线。螺旋线允许小数圈以保持真实螺距;单独导出*_thread_evidence.bmp后将草图隐藏,避免污染标准预览。 - 创建孔口倒角,写入螺纹规格、底孔、深度、公差、旋向、终止条件和最终表达状态。
- 隐藏参考平面,保存 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(默认)、always 和 never。正常交付保持 fallback;调试螺旋线时才使用 always。
交付与验证
必须生成:
*.SLDPRT*.step*_parameters.json*_review_report.json*_isometric.bmp及三视图- 仅在创建可见螺旋线时生成
*_thread_evidence.bmp
*_parameters.json 中必须同时检查 thread_attempts、thread_evidence 和 thread_status。只有下列条件同时满足才可交付:
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.
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.
- 1mo ago First seen · 72 lines · 150 tokens per session scan A 03b1ef72ec3e
solidworks-threaded-holes is a skill published in the GitHub repository wzyn20051216/solidworks-automation-skill (1,541 stars, last pushed today), licensed MIT. It adds 150 tokens to every session and 1,379 once invoked, about $0.0006 per session on Opus 5.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.
Other skills, from other repositories
ifoxcad
Use when writing AutoCAD / ZWCAD / GstarCAD plugins in C# with IFoxCAD (NuGet IFox.CAD.ACAD 0.9.12) — DBTrans transaction wrapper, CurrentSpace.AddEntity, LayerTable.AddOrChange, block attributes, SSGet, EditorEx prompts, multi-CAD GlobalUsings aliases. Also for "eNotInDatabase" on an entity Id, entities vanishing…
fy_layout
Use when writing C# plugins for the FeiYang LightCAD/LightBIM platform (construction site layout) — ILcPlugin registration, ElementType with fixed GUID, [CommandClass]/[CommandMethod] commands, TabItem ribbon menus, 2D Action plus Shape/Solid Provider pairs for fence, lawn, foundation pit, road, prefab house. Also for…
tongwen
Use when translating engineering DWG drawings with Tongwen — TWEXTRACTALL / TWTRANSLATE / TWWRITEBACKFILE in AutoCAD 2019/2021/2025/2026, glossary CSV with CM/TM precedence, placeholder QA blocking write-back, or headless Tongwen.Runner.BatchCli -i -o -c -m runs; also when extraction fails with a Named Pipe connection…
solvespace
Use when doing lightweight parametric 2D/3D CAD in SolveSpace 3.3 — constraint sketching, linkage/mechanism checks, section and 2D views, STL for printing, or driving the solver from solvespace-cli / the PyPI slvs package in CI; also when sketch lines turn red (over-constrained) or blue (under-constrained), a…
libredwg
Use when reading or writing AutoCAD DWG files programmatically with LibreDWG 0.14 — entity extraction, DWG to DXF/JSON/GeoJSON conversion, or dwg2dxf / dxf2dwg / dwgread batch pipelines; also when dwg2dxf blocks on an overwrite prompt (add -y), a R2021+ DWG will not load, or the CLI is missing on Linux because distro…
qcad
Use when editing or batch-converting DXF/DWG drawings with QCAD 3.33 — RAddObjectsOperation scripting, dwginfo/dwg2pdf/dwg2svg console tools, or version conversion through qcad -no-gui -autostart SaveAs.js -filter; also when dwg2pdf/dwg2svg are missing because they ship only with QCAD Professional, when a PDF export…