SuperAPI AI Directory

solidworks-vibecad

General & other

View repository

Updated 10-16 08:43

About this skill

SolidWorks VibeCAD

Core Positioning

This sub-skill converts "natural language ideas" into executable, reviewable SolidWorks parametric design plans. It does not temporarily generate VBA macros, but instead solidifies repetitive mechanical design into:

行业知识库 + 参数 schema + 提示词模板 + 稳定 API 封装 + 自动审查

The LLM is responsible for understanding intent and filling in parameters; the SolidWorks API is responsible for deterministic execution; the knowledge base is responsible for engineering correctness; the review chain is responsible for preventing "looks successful but geometry is wrong."

Applicable Tasks

  • The user describes a part in natural language and wants to generate a parametric modeling plan.
  • High-frequency mechanical parts need to be templated, such as CNC mounting bases, connection blocks, L-shaped brackets, base plates, and hole arrays.
  • An industry knowledge base needs to be accumulated, such as tapped pilot holes, through holes, counterbores, chamfers, fillets, and minimum wall thickness.
  • A JSON plan and risk gates need to be provided to the SolidWorks automation executor.
  • Successful cases need to be turned into reusable templates instead of rewriting macros every time.

Workflow

  1. Read the user requirements and confirm the part family, process, material, output format, and constraints.
  2. Refer to knowledge/manufacturing_rules.yaml to fill in conservative default values.
  3. Use prompts/solidworks_parametric_planner.md to constrain the LLM to output a structured plan.
  4. Use schemas/design_plan.schema.json to validate plan fields.
  5. Run scripts/plan_from_brief.py to generate a local rule-based plan, or save the LLM output as JSON with the same schema.
  6. Run scripts/sw_execution_outline.py to generate a SolidWorks execution summary.
  7. During subsequent execution, hand it off to the parent skill scripts/sw_session.py、scripts/sw_part.py、scripts/sw_review.py and related specialized sub-skills.

Quick Commands

py subskills\solidworks-vibecad\scripts\plan_from_brief.py `
  --brief-file subskills\solidworks-vibecad\examples\motor_mount_brief.txt `
  --out subskills\solidworks-vibecad\examples\motor_mount_plan.json

py subskills\solidworks-vibecad\scripts\sw_execution_outline.py `
  --plan subskills\solidworks-vibecad\examples\motor_mount_plan.json `
  --out subskills\solidworks-vibecad\examples\motor_mount_execution.md

Relationship with the Parent Skill

  • solidworks-automation: The main skill that connects SolidWorks, modeling, export, and review.
  • solidworks-vibecad: Natural language -> parametric design plan.
  • solidworks-fillet-chamfer-cnc: Execution experience for complex CNC fillets/chamfers.
  • solidworks-threaded-holes: Execution experience for threaded holes, tapped pilot holes, and thread representation.

When a CNC part with dense fillets/chamfers appears in the plan, continue reading:

subskills/solidworks-fillet-chamfer-cnc/SKILL.md

When M3/M4/M5/M6/M8 threaded holes appear in the plan, continue reading:

subskills/solidworks-threaded-holes/SKILL.md

Avoid Detours

  • Do not let the LLM directly output long SolidWorks parameter COM calls.
  • Do not treat the plan JSON as geometric success; it must go through real SolidWorks execution and sw_review review.
  • Uncertain parameters may use conservative default values, but they must be written into assumptions。
  • Screw fixing holes must distinguish between through holes, counterbores, and tapped holes; do not mistakenly build M5 螺丝固定孔 as an M5 tapped hole by default.
  • The output plan must include review_plan, otherwise it cannot enter automatic modeling.

Current Status

The current stage has implemented the minimal closed loop from requirement text to design plan and execution summary. The real SolidWorks executor should be integrated in the next stage with the parent skill's stable API.