Agent skill

Solidworks Automation

by delancy827 in delancy827/solidworks-skills

用户需要用 Python/C/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能. An agent skill from delancy827/solidworks-skills.

MITAuto-check passed

Install Solidworks Automation

skills CLI
$ npx skills add delancy827/solidworks-skills --skill solidworks-automation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install delancy827/solidworks-skills solidworks-automation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/delancy827/solidworks-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/solidworks-automation .claude/skills/solidworks-automation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
solidworks-automation
GitHub stars
126
Token cost
~1.3k tokens
SKILL.md length
619 words
Files
15 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

用户需要用 Python/C/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能. An agent skill from delancy827/solidworks-skills.

  • Works in 6 steps: Preflight capability. State whether the… → Build a dimension ledger. Separate… → Choose an execution channel. → …
  • SKILL.md covers Operating rules, Recommended workflow, Known SW 2024 COM shortcuts and References
  • Runs Python scripts from its folder; calls rg

What it does

Solidworks Automation is an agent skill from delancy827/solidworks-skills. 用户需要用 Python/C/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能。

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including reference files (for example `examples/01_basic_part.py`, `examples/02_assembly.py` and `examples/03_drawing.py`).

It works with C# and Python. The repository describes itself as: SolidWorks 自动化设计技能包 — 让 AI Agent 真正学会用 SolidWorks. The licence is MIT.

Example prompts

  • “/solidworks-automation”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Preflight capability. State whether the current runtime can inspect images/PDFs and whether SolidWorks is available. For drawing-driven…
  2. Build a dimension ledger. Separate exact, inferred, designer-choice, and unsupported dimensions. Bounding-box matching is not sufficient…
  3. Choose an execution channel.
  4. Implement in the project workspace. Keep builder code modular, parameter-driven, and testable without loading the full manual.
  5. Execute and validate. Compile the script first. If SolidWorks is available, run it, force a rebuild, then assert feature/body counts…
  6. Report truthfully. Distinguish completed geometry, markers-only holes, approximations, and unsupported features. Never describe an uncut…

What it can do on your machine

Read from SKILL.md and the folder at commit 33bc2c0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Solidworks Automation loads about 1.3k tokens when it runs, and up to ~39k if it reads all its reference files. Until then it costs about 21 tokens; SKILL.md has 619 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~39k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from delancy827/solidworks-skills at commit 33bc2c0, republished under its MIT licence (© delancy827). 619 words, ~1,278 tokens.

Download SKILL.mdSave it as .claude/skills/solidworks-automation/SKILL.md (or your agent's skills folder). This skill also uses 14 other files; get the full folder from GitHub.
name
solidworks-automation
description
用户需要用 Python/C#/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能。
metadata.category
engineering-cad
metadata.version
5.5.0
metadata.author
Delancy

SolidWorks Automation

Use this skill when the task requires executable SolidWorks automation code or a live COM session for parts, assemblies, drawings, Simulation, Flow Simulation, sheet metal, weldments, molds, or tooling. For design-only decisions or parameterization methodology without implementation, use sw-designer instead.

Operating rules

  • Reuse an active SolidWorks instance with GetActiveObject("SldWorks.Application"); only fall back to Dispatch when no usable instance exists.
  • Reuse sw.ActiveDoc when it matches the task. Create a new document only when explicitly required or no suitable document exists.
  • Wrap temporary documents in try...finally and close them by title; do not leave orphan windows or COM references.
  • Treat units as meters inside the API. Keep user-facing dimensions in millimeters and convert explicitly.
  • Before any mutation, capture a geometry fingerprint: feature count, body count, bbox, volume, and relevant dimensions.
  • After each mutation, force a rebuild, re-read the fingerprint, and assert the expected change. Do not report success from a return value alone.
  • If an assertion fails, stop the current strategy, print the traceback and current feature-tree state, and propose a concrete fallback. Do not silently catch the failure.
  • Do not guess API names, argument counts, or COM null handling. Probe the live object with dir(), get_com_member, or a tiny subprocess before using an uncertain API.
  • Keep real project files and generated models under F:\codexspace\...; do not copy full projects to the Desktop or C drive.
  1. Preflight capability. State whether the current runtime can inspect images/PDFs and whether SolidWorks is available. For drawing-driven work, identify the drawing source and who or what performed visual verification.
  2. Build a dimension ledger. Separate exact, inferred, designer-choice, and unsupported dimensions. Bounding-box matching is not sufficient; account for recesses, lands, grooves, PCD holes, chamfers, and secondary features.
  3. Choose an execution channel.
    • Prefer Python COM for connection, sketching, additive extrudes, measurements, and file I/O.
    • Prefer one sketch with outer and inner closed loops plus FeatureExtrusion2 for through holes and rings.
    • Use C# or a generated VBA macro for methods that Python COM cannot call reliably, especially complex cut features with more than 12 parameters.
  4. Implement in the project workspace. Keep builder code modular, parameter-driven, and testable without loading the full manual.
  5. Execute and validate. Compile the script first. If SolidWorks is available, run it, force a rebuild, then assert feature/body counts, bbox, volume, and output-file existence. Use screenshots or rendered views when geometry intent matters.
  6. Report truthfully. Distinguish completed geometry, markers-only holes, approximations, and unsupported features. Never describe an uncut marker as a through hole.
Show full SKILL.md (202 more words)Show less

Known SW 2024 COM shortcuts

  • SelectByID2 has 9 arguments; the Callout argument must be a real COM null variant, typically VARIANT(VT_DISPATCH, None).
  • FeatureExtrusion2 uses 23 arguments on this install.
  • EditRebuild3 may be a property instead of a method. ForceRebuild3(False) is the safer rebuild call.
  • FeatureCut, FeatureCut3, and FeatureCut4 are fragile from Python COM. Use additive geometry, multi-contour sketches, C#, or VBA rather than pretending a None return means success.
  • LoadFile4 may return (doc, status); unwrap it before using the document.
  • Extension.SaveAs needs COM variants for export data and by-ref error/warning values.
  • For assemblies, preload components, insert at process coordinates, then mate using stable named entities or SelectByRay; verify BOM count and envelope before attempting perfect mates.

References

Read these only when the current task needs them.

  • references/automation-manual.md — the full 46-section manual. Search it first with rg -n "keyword" references/automation-manual.md, then read the narrow line range. Avoid loading the whole file by default.
  • references/drawing-to-3d-lessons.md — DXF/PDF-to-part rules, secondary-feature checks, volume calibration, and ground-truth STEP comparison.
  • references/materials-forming-mold-lessons.md — stamping edge sizing, die-cast shrink direction, process metadata, moldbase checks, and mold assembly QA.
  • references/assembly-debugging-lessons.md — repeated-instance counting, transformed hole centers, and render-based assembly validation.
  • references/com-dualinterface-quirks.md — COM 双接口怪癖实证手册(2026-10 单机全流程实战沉淀)。当动态 COM 调用报"找不到成员"、拉伸静默返回 None、AddComponent5 静默失败、ComposeTransform 摆位不对、截图视图切不过去时,先读它。配套可运行流水线见 examples/verified/。
  • examples/01_basic_part.py
  • examples/02_assembly.py
  • examples/03_drawing.py
  • examples/04_simulation.py

© delancy827, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 14 other files (references) in solidworks-automation of delancy827/solidworks-skills.

  • SKILL.md
  • examples/01_basic_part.py
  • examples/02_assembly.py
  • examples/03_drawing.py
  • examples/04_simulation.py
  • examples/verified/README.md
  • examples/verified/assemble_two_link_arm.py
  • examples/verified/make_typelib_wrapper.py
  • examples/verified/sw_common.py
  • references/assembly-debugging-lessons.md
  • references/automation-manual.md
  • references/com-dualinterface-quirks.md
  • references/drawing-to-3d-lessons.md
  • references/materials-forming-mold-lessons.md
  • test-prompts.json

Open the folder on GitHubat commit 33bc2c0

Compare with similar skills

Solidworks Automation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Solidworks Automation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Solidworks Automation this skilldelancy827/solidworks-skills126—~1.3kAutomated safety check: PassMIT
Build Teaql Appteaql/teaql-agent-kit2.8k—~4.6kAutomated safety check: PassMIT
Fory Performance Optimizationapache/fory4.6k—~2.2kAutomated safety check: PassApache-2.0
MCP Debuggerdebugmcp/mcp-debugger173—~4.1kAutomated safety check: PassMIT
Rsid SDKrealsenseai/RealSenseID122—~4.1kAutomated safety check: PassApache-2.0
Azure Openai To Responsesmicrosoft/ai-agents-for-beginners77k—~6kAutomated safety check: NotesMIT

Similar skills

  • Build Teaql App

    teaql/teaql-agent-kit

    Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries.

    2.8k GitHub stars~4.6k tokensUpdated 13 days ago
    MobileAuto-check passed
  • Run profile-driven bottleneck optimization across Apache Fory implementations (Java, C++, Python/Cython, Go, Rust, Swift, C, JavaScript/TypeScript, Dart, Kotlin, Scala).

    4.6k GitHub stars~2.2k tokensUpdated today
    MobileAuto-check passed
  • MCP Debugger

    debugmcp/mcp-debugger

    A skill your agent uses when investigating a bug, failing test, or unexpected runtime behavior and the mcp-debugger MCP server is available — drives real step-through debuggers (breakpoints, stack…

    173 GitHub stars~4.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Rsid SDK

    realsenseai/RealSenseID

    RealSenseID face authentication SDK reference. An agent skill from realsenseai/RealSenseID.

    122 GitHub stars~4.1k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Migrate Python apps from Azure OpenAI Chat Completions to the Responses API.

    77k GitHub stars~6k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Claude API Development

    warpdotdev/warp

    Guides building, debugging and tuning apps on the Claude API and Anthropic SDK, including prompt caching, and migrating code between Claude model versions.

    65k GitHub starsUsed in 3 repos~8.2k tokens
    AI & LLM EngineeringAuto-check passed

More from delancy827/solidworks-skills

  • Sw Designer

    delancy827/solidworks-skills

    用户需要 SolidWorks 参数化设计、建模策略、设计审查、装配/工程图规范或工艺可行性检查时调用本技能. An agent skill from delancy827/solidworks-skills.

    126 GitHub stars~682 tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about Solidworks Automation

What does Solidworks Automation do?

用户需要用 Python/C/VBA 连接 SolidWorks API 自动建模、装配、工程图、仿真等时调用本技能. An agent skill from delancy827/solidworks-skills. Solidworks Automation is an agent skill from delancy827/solidworks-skills.

How do I install Solidworks Automation in Claude Code?

Run `npx skills add delancy827/solidworks-skills --skill solidworks-automation -a claude-code`. Or copy the skill folder (solidworks-automation in delancy827/solidworks-skills) into .claude/skills/solidworks-automation in your project. Claude Code loads it when a task matches its description.

How do I install Solidworks Automation in Codex?

Run `npx skills add delancy827/solidworks-skills --skill solidworks-automation -a codex`. Or copy the skill folder (solidworks-automation in delancy827/solidworks-skills) into .agents/skills/solidworks-automation in your project. Codex loads it when a task matches its description.

Can I use Solidworks Automation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add delancy827/solidworks-skills --skill solidworks-automation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/solidworks-automation, .gemini/skills/solidworks-automation, .github/skills/solidworks-automation and .opencode/skills/solidworks-automation in your project.

What does Solidworks Automation need to run?

Going by SKILL.md and its folder, Solidworks Automation needs Python for the scripts in its folder and the command-line tools its instructions call (rg). Our summary lists: Python 3.

Does Solidworks Automation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Solidworks Automation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Solidworks Automation use?

Solidworks Automation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Solidworks Automation use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 38k tokens, read only when the agent opens those files.

What are the alternatives to Solidworks Automation?

Skills that share tags, products or a category with Solidworks Automation: Build Teaql App (teaql/teaql-agent-kit, 2.8k stars), Fory Performance Optimization (apache/fory, 4.6k stars), MCP Debugger (debugmcp/mcp-debugger, 173 stars) and Rsid SDK (realsenseai/RealSenseID, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Solidworks Automation?

delancy827 (a GitHub user) maintains it in delancy827/solidworks-skills, which has 126 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.

Source: delancy827/solidworks-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.