solidworks-design
Plan, create, modify, inspect, repair, validate, save, and export SolidWorks parts, assemblies, and drawings. Use for any request involving SolidWorks CAD geometry, engineering drawings or reference images, materials, fits, tolerances, fasteners, mates, mass properties, or STEP/IGES/STL/PDF deliverables. Orchestrates the mandatory knowledge-base pre-start, catalog lookup, deterministic validation, and consent-based session reporting workflow.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 1.6k
- Forks
- 468
01 前言 Front Matter
- name
- solidworks-design
- description
- Plan, create, modify, inspect, repair, validate, save, and export SolidWorks parts, assemblies, and drawings. Use for any request involving SolidWorks CAD geometry, engineering drawings or reference images, materials, fits, tolerances, fasteners, mates, mass properties, or STEP/IGES/STL/PDF deliverables. Orchestrates the mandatory knowledge-base pre-start, catalog lookup, deterministic validation, and consent-based session reporting workflow.
02 资源文件 1
- 参考文档agents/openai.yaml214 B
03 SKILL.md 正文
SolidWorks Design
Treat this skill as the entry point for every SolidWorks task. Use the available SolidWorks automation surface for CAD operations; this plugin supplies the engineering and knowledge workflow rather than a SolidWorks installation.
Start the task
-
On the first SolidWorks request in the current Codex task, resolve the plugin root from this file and run:
python <plugin-root>/scripts/sw_session.py startEcho the returned UUID as
SESSION_IDin working context. Run this command only once per Codex task and never replace the ID mid-task. -
Establish the design goal, units, geometry-driving dimensions, material, tolerances or fits, manufacturing process, and deliverables.
-
Ask one concise question when missing data changes geometry, safety, fit, or the requested output. Do not guess engineering values. If the user explicitly delegates a non-geometry default, apply the active KB convention and disclose it.
-
Invoke
$sw-pre-start, then$sw-kb-api, in that exact order before opening SolidWorks, generating CAD code, or calling a SolidWorks API.
Plan before editing
Write a compact implementation plan that identifies:
- files and document types to create;
- datums, origins, coordinate systems, and reference geometry;
- ordered sketches and features with named driving dimensions;
- sketch relations and the fully-defined condition;
- material, tolerance, fit, fastener, clearance, and manufacturing decisions;
- assembly mates and intended remaining degrees of freedom;
- measurable acceptance criteria and required exports.
Query the KB standards tables when each material, fit, tolerance, fastener, or clearance decision is made. Never substitute remembered nominal values when a standards lookup is available.
Build and verify parts
Create each part separately. For every part:
- Use metric model units unless the user explicitly overrides them.
- Build parametric, fully-defined sketches with stable references and named dimensions.
- Rebuild after meaningful feature groups and inspect returned API values.
- Before each SolidWorks API method, check the part-specific and global known
errors loaded by
$sw-kb-api; apply a resolved prevention first. - Assign the verified material and record its source and units.
- Inspect rebuild status, document errors, feature tree, mass properties, bounding box, and a representative image.
- Use deterministic document validation as pass/fail. Treat screenshots as visual evidence only.
- Save the native part, export requested formats, then close it before starting an assembly.
Do not report success when rebuild or document validation has not passed.
Build and verify assemblies
Create an assembly only after all component parts are saved and closed. Insert components from explicit saved paths, add mates in a stable order, and verify mate status, interference or clearance requirements, component count, and remaining degrees of freedom. Rebuild and run deterministic document validation before saving or exporting.
Drawings and exports
Create requested drawings from the validated final model. Include specified views, dimensions, tolerances, fits, GD&T, material notes, and title-block metadata. Export only after final design-rule validation passes.
Prefer project folders named work/ for native working files and exports/
for deliverables unless the user explicitly chooses other paths.
Finish the task
- Invoke
$sw-pre-startPhase 6 with final parameters and resolve everyfail. Record advisories. - Report native files and exports, explicit units, measured mass and bounding box, validation result, errors, and limitations.
- Track the corrected feature sequence, every final code artifact, repeatable failures and resolutions, and non-obvious lessons.
- After delivering the CAD result, invoke
$sw-session-reporter. Do not skip reporting merely because the KB was offline during the build.
04 同仓库更多 Skills
deja-search
deja-vu memory — search the user's past AI coding sessions with the deja CLI. Holds what they already settled and never wrote into the repo (naming rules, banned or already-tried tools, required checks before merge, preferred values, who owns what). Use before your first edit in a task, before you call a change done or ready to merge, before you recommend a tool, library, design or reviewer, before re-debugging an error that may already be solved, when they say 'didn't we fix this before', 'what did we decide about X' or 'I already have that', and before telling them something on this machine does not exist.
deja-reflect
End-of-session reflection and memory curation with deja-vu. Review what was decided, what commands broke and what repaired them, and record durable project rules or decisions with deja remember so the next session starts with them.
revid
Make, edit, export and post AI videos with Revid (revid.ai) through the Revid MCP server. Use whenever the user wants a short-form or long-form video made (from an idea, a script, a URL, an article, a PDF, a tweet, a product page, their own clips, or a song), wants to find what is going viral on TikTok, YouTube, Instagram or X before making something, wants to edit or re-export an existing Revid project, generate a standalone AI image or clip, make a series episode, or publish and schedule a finished video to connected social accounts. Covers setup (hosted MCP with OAuth, or an API key), the 36 tools, credits, polling and the rules for publishing. Routes to the more specific revid-* skills when one fits.
review-study
Review a QuestionPunk survey before launch for wording, answer choices, branching, and missing settings. Use for check my survey or review this draft before publishing.
manage-study
Find QuestionPunk studies, check status, publish an explicitly requested draft, or retrieve its participant link. Use for find my survey, publish this study, or how many people responded.
create-study
Create a saved QuestionPunk survey draft from a research brief or edit specified questions. Use for requests such as make a customer feedback survey or shorten my onboarding study.