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-fillet-chamfer-cncgit 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-fillet-chamfer-cnc)<a href="https://agentmods.dev/skills/wzyn20051216/solidworks-automation-skill/solidworks-fillet-chamfer-cnc"><img src="https://agentmods.dev/badge/skills/wzyn20051216/solidworks-automation-skill/solidworks-fillet-chamfer-cnc/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-fillet-chamfer-cnc"><img src="https://agentmods.dev/badge/skills/wzyn20051216/solidworks-automation-skill/solidworks-fillet-chamfer-cnc.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.00107 | $0.02704 |
| Opus 5.5 | $0.00043 | $0.01082 |
| Sonnet 5.5 | $0.00021 | $0.00541 |
| Haiku 4.5 | $0.00011 | $0.00270 |
Grade A, and why
solidworks-fillet-chamfer-cnc 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 — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SolidWorks Fillet Chamfer CNC
先判定任务模式
圆角/倒角多的模型,主要风险是拓扑变化、错误选边和不可制造参数,不是 API 参数本身。
- 新建 CNC 安装座或验证参数时,先使用模板脚本的
--dry-run;计划通过后再连接 SolidWorks。 - 修改既有零件时,先读取 详细经验 的“既有模型选边”部分,不套用模板的固定期望边数。
- 用户要求可变半径、面圆角、full-round 或 setback 时,先运行本子技能的高级能力探测;SolidWorks 版本或输入拓扑不同于已验证样例时保持
pilot,不要跨版本直接宣称稳定。 - 多控制点、曲面组合和宽度-宽度倒角已经有 SW2026 SP1.1 独立真机证据,但换版本或换拓扑仍须复跑;保持线圆角已经跨 Python、C# PIA、SWBasic 和进程内非托管 C++ 复测,故障边界收敛在本机 SW2026 SP1.1 的
ISetHoldLines调用,而非 Python 单一语言限制。该构建必须保持pilot/blocked,不能退化成普通面圆角后声称成功。
模板入口
先做无 COM 预检:
python subskills\solidworks-fillet-chamfer-cnc\scripts\create_cnc_mount_template.py `
--dry-run `
--set base_corner_radius=6 `
--set chamfer_angle_deg=30 `
--output-dir C:\CADAutomationWorkbench\cnc_mount
确认 *_plan.json 中 validation.errors 为空、语义目标和 expected_edge_count 符合设计,再删除 --dry-run 执行原生建模。大量参数优先放进 JSON:
python subskills\solidworks-fillet-chamfer-cnc\scripts\create_cnc_mount_template.py `
--params-json subskills\solidworks-fillet-chamfer-cnc\examples\cnc_mount_precision_params.json `
--failure-policy strict `
--output-dir C:\CADAutomationWorkbench\cnc_mount
strict 只接受请求尺寸;progressive 按 100%/75%/50% 尝试。发生降级时必须在交付摘要中写明实际尺寸,不能仍声称精确满足原值。
不可跳过的门禁
- 原生建模前运行父技能
scripts/sw_preflight.py;--dry-run不需要 SolidWorks。 - 参数预检必须覆盖有限数值、圆角/倒角上限、孔槽碰撞、最小边壁、特征间净距、沉孔/口袋底壁和输出基名安全。
- 新建模板按“基础体 → 立角圆角 → 外轮廓倒角 → 孔槽/口袋 → 孔口倒角”执行;既有模型根据依赖关系决定顺序。
- 选边以几何签名和期望数量为证据。数量不符时停止,不用扩大坐标容差、
Edge1或屏幕点击猜边。 - 每个圆角/倒角必须在重建后从特征树回读;COM 返回非空不等于持久化成功。
- 生成后保存 SLDPRT、导出 STEP、运行
sw_review.run_review(),并人工查看等轴测和俯视预览。
高级圆角入口
先只读探测本机类型库,不启动 SolidWorks:
python subskills\solidworks-fillet-chamfer-cnc\scripts\verify_advanced_fillets.py `
--output-dir C:\CADAutomationWorkbench\advanced_fillet_probe
执行当前六项已通过的独立真机回归:
python subskills\solidworks-fillet-chamfer-cnc\scripts\verify_advanced_fillets.py `
--verify-solidworks `
--modes variable face surface_combo full_round setback width_width_chamfer `
--output-dir C:\CADAutomationWorkbench\advanced_fillet_verified
What ships with it
18 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.
- agents/openai.yaml 298 B
- evals/evals.json 1.8 KB
- examples/cnc_mount_precision_params.json 900 B
- examples/open_source_corner_bracket_case.json 1.2 KB
- manifest.yaml 789 B
- README.md 4.4 KB
- references/cnc-fillet-chamfer-lessons.md 13 KB
- scripts/advanced_fillet_strategy.py 13 KB runs code
- scripts/cnc_strategy.py 17 KB runs code
- scripts/create_cnc_mount_template.py 27 KB runs code
- scripts/hold_line_bridge.py 16 KB runs code
- scripts/native/HoldLineBridge.cs 13 KB
- scripts/native/NativeHoldLineAddin.cpp 8.5 KB
- scripts/native/NativeHoldLineAddin.def 73 B
- scripts/native/NativeHoldLineMacro.swb 1.7 KB
- scripts/verify_advanced_fillets.py 40 KB runs code
- scripts/verify_open_source_bracket.py 11 KB runs code
- scripts/verify_open_source_complex_case.py 15 KB runs code
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 Changed · +61 lines · -6 tokens per session 37b93a2cd8e6
- 1mo ago First seen · 75 lines · 113 tokens per session scan A b51250c769c4
solidworks-fillet-chamfer-cnc is a skill published in the GitHub repository wzyn20051216/solidworks-automation-skill (1,541 stars, last pushed today), licensed MIT. It adds 107 tokens to every session and 2,704 once invoked, about $0.0004 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…