sw-designer

sw-designer is a skill for Claude Code, Codex from delancy827/solidworks-skills. It costs 69 tokens per session (10,259 once invoked), scanned A, original, MIT.

A SolidWorks design guide for making parameter-driven 3D models, where dimensions and other variables control how a design changes. It also covers automation, batches of related parts, performance, and design practices.

In plain words
What is it for?
Use it for parametric part design, equation-based dimensions, configurations, Excel-driven design tables, batch model generation, and SolidWorks API automation.
Why use it?
It helps avoid broken relationships between dimensions, inconsistent units, configuration conflicts, and models that were not rebuilt after a change. It combines design guidance with SolidWorks tutorial material.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for parametric part design, equation-based dimensions, configurations, Excel-driven design tables, batch model generation, and SolidWorks API automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/delancy827/solidworks-skills/sw-designer
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 delancy827/solidworks-skills --skill sw-designer
Clone the repo
git clone --depth 1 https://github.com/delancy827/solidworks-skills

Made for: Claude Code, 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 sw-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/delancy827/solidworks-skills/sw-designer/github.svg)](https://agentmods.dev/skills/delancy827/solidworks-skills/sw-designer)
Your own site
<a href="https://agentmods.dev/skills/delancy827/solidworks-skills/sw-designer"><img src="https://agentmods.dev/badge/skills/delancy827/solidworks-skills/sw-designer/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 sw-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/delancy827/solidworks-skills/sw-designer"><img src="https://agentmods.dev/badge/skills/delancy827/solidworks-skills/sw-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,259 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00069 $0.10259
Opus 5 $0.00034 $0.05130
Sonnet 5 $0.00014 $0.02052
Haiku 4.5 $0.00007 $0.01026

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

Security

Grade A, and why

sw-designer 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 11d 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.

sw-designer/SKILL.md · 784 lines

How it starts

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

SW设计狮 — SolidWorks 专业设计指导

本skill融合了两个IMA知识库的核心知识:

  • SW设计狮(ID: 7361920738820041,10篇笔记)— 参数化设计、自动化误区、批量设计、性能优化
  • SW教程合集(ID: 7342555410738838,45个资源)— 入门到精通全套教程

第一章:参数化设计(SW设计狮专题)

1.1 参数化建模核心原理

参数化设计本质是用参数、变量及数学关系驱动设计对象变化,实现自动化与智能化。

参数与变量

  • 参数是可变化的量:尺寸(长/宽/高)、数量、角度等
  • 变量之间相互关联,一个变量改变会依据预设规则影响其他变量
  • 例如:齿轮设计中,模数确定后,齿数变化影响外径、齿厚等参数

数学关系与方程式

  • 方程式建立参数间的数学关系(如 外径 = 模数 × (齿数 + 2)
  • 全局变量可跨特征关联尺寸

1.2 参数化设计四大工具

1. 尺寸驱动与方程式

  • 在草图/特征中标注尺寸时,使用「添加方程式」创建变量
  • 全局变量在「方程式」中定义,关联不同特征的尺寸
  • 示例:长度 = 宽度 * 2齿轮模数 → 齿数 → 齿宽

2. 配置管理器

  • 手动配置:右键添加新配置,修改尺寸或压缩特征生成变体
  • 适合少量规格调整(如不同长度轴)

3. 设计表驱动

  • 通过Excel表格批量定义参数(尺寸、材料等)
  • 关联配置实现批量生成,适合系列化产品(螺栓、轴承)

4. API二次开发

  • VBA/C#/Python调用SolidWorks API
  • 适用于复杂模型自动化生成、批量处理、自定义插件
  • DriveWorks等自动化工具也可集成

1.3 参数化设计常见错误(四大类)

来自「SW设计狮」知识库的实战总结:

错误类别 典型问题 解决方案
参数定义错误 名称含空格/特殊符号(@#)导致方程式无法识别 只用英文/数字/下划线命名(Length_1)
单位不一致 毫米与英寸混用导致计算结果错误 统一全局单位,或方程式中显式转换(长度=10*25.4)
关联逻辑错误 循环引用(A=B, B=A);参数引用被压缩/删除的特征 检查方程式依赖关系;不要压缩含全局变量的特征
配置管理错误 不同配置尺寸冲突;设计表格式错误 逐一验证配置尺寸;设计表命名与SW一致
软件操作错误 全局变量修改后未重建模型(Ctrl+Q) 修改参数后务必强制重建

命名铁律:只用英文/数字/下划线,禁止空格和特殊符号!


第二章:自动化建模方法(SW设计狮 + API实战)

2.1 三级自动化体系

级别 方法 适用场景
初级 宏录制与回放 简单重复建模(标准件快速生成)
中级 API二次开发 复杂模型自动化生成、批量修改
高级 配置驱动+API 产品系列化、企业级自动化

2.2 宏录制与回放

操作步骤:

  1. 工具 → 宏 → 录制
  2. 执行建模操作(草图、拉伸等)
  3. 停止录制,保存为.swp文件
  4. 运行宏自动重复录制步骤

适用:简单重复任务,如标准件快速生成。

2.3 API二次开发

工具选择

  • VBA:内置宏,最简单的入门方式
  • C#:功能最强,适合开发专业插件
  • Python(win32com):灵活高效,适合批量处理

核心API功能

  • 自动生成零件/装配体(AddComponentFeatureExtrusion
  • 批量处理:遍历特征树,自动修改尺寸、阵列
  • 参数驱动生成:根据输入参数自动建模
# 宏录制 → API转换示例
import win32com.client
sw = win32com.client.Dispatch("SldWorks.Application")
sw.Visible = True
sw.NewPart()
model = sw.ActiveDoc
model.Extension.SelectByID2("Front Plane", "PLANE", 0, 0, 0, False, 0, None, 0)
model.SketchManager.InsertSketch(True)
model.SketchManager.CreateCircle(0, 0, 0, 0.025, 0, 0)
model.SketchManager.InsertSketch(True)
model.FeatureManager.FeatureExtrusion3(True, False, False, 0, 0, 0.05, 0.05,
    False, False, False, False, 0, 0, False, False, False, False)

Read the full file on GitHub · 784 lines

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. 11d ago First seen · 784 lines · 69 tokens per session scan A bea7de1a9df3

Subscribe to this mod's changes

sw-designer is a skill published in the GitHub repository delancy827/solidworks-skills (89 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 10,259 once invoked, about $0.0003 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

cad-automation

Guidance for automating computer-aided design (CAD), software used to create technical drawings and 3D models. It covers connecting to AutoCAD and compatible CAD programs, creating files offline, and handling drawings, layers, dimensions, blocks, and models.

delancy827/cad-skills · 93 tokens

cad-designer

Design guidance for CAD drawings, including drafting standards, parameter-based design, layers, dimensions, batch output, and review checklists. It focuses on deciding what a drawing should contain before automation creates it.

delancy827/cad-skills · 87 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens