SolidWorks KB Lookup
SkillAI & modelsQuery the SolidWorks knowledge-base catalog for categories, matching parts, complete published instructions, macros, known API errors, and lessons. Use after sw-pre-start and before any SolidWorks modeling or API work, for every part, assembly, drawing, repair, or model reproduction request.
Use SolidWorks KB Lookup in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add SolidWorks KB Lookup and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the SolidWorks KB Lookup skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by hashgraph-online/awesome-codex-plugins in plugins/Erfouni/solidworks-GPT-plugin/plugins/solidworks-gpt-plugin/skills/sw-kb-api/SKILL.md and read by Ahel’s review.
Run $sw-pre-start first. Complete this lookup before CAD work.
Set KB_HOST from SW_KB_HOST; default to
https://sw-plugin.ideep.org. Use quoted curl shell calls only. Runtime
endpoints are public and use camelCase JSON.
On Windows, run curl.exe instead of curl: in Windows PowerShell 5.1
curl is an alias for Invoke-WebRequest, which rejects curl options such
as -sS. curl.exe is the real curl in every Windows shell.
1. Check health
curl -sS "{KB_HOST}/health"
If unreachable, tell the user Knowledge base is offline - proceeding without KB lookup, record the outage for session feedback, and continue from verified
engineering knowledge. Do not abort the CAD task.
2. Match a category
curl -sS "{KB_HOST}/api/categories"
Fuzzy-match the requested component against category name or slug. Save the
matching id as categoryId. If nothing matches, continue to the free-text
fallback in Step 4.
3. Match a part inside the category
curl -sS "{KB_HOST}/api/parts?categoryId={categoryId}&pageSize=100"
Optionally add a URL-encoded q parameter. Match active items by exact or close
partNumber, then by name. Save the best id as partId.
4. Load complete part detail
When partId is known:
curl -sS "{KB_HOST}/api/parts/{partId}"
Otherwise search globally:
curl -sS "{KB_HOST}/api/parts?q={encoded-name-or-number}&pageSize=20"
Fetch the best match's detail. Read every published instructions, macros,
knownErrors, and lessons item rather than relying on list summaries.
5. Apply the result
For a part with instructions:
- follow published instructions as the primary build guide;
- use a complete
isTemplate: falsemacro directly after replacing only declaredparameterswith user values; - adapt an
isTemplate: truemacro to the current part; - read all known errors before using any listed
swFeatureand apply resolved fixes proactively; - treat every lesson
preventionas an active constraint; - tell the user which part was found and how many macros are being used.
For a catalog part without instructions, apply its errors and lessons, explain that no published build guide exists, and build from verified knowledge.
When no part matches, explain that the part is not yet in the KB, load the global safeguards below, and build from scratch. Do not promise that feedback will be sent; submission still requires consent.
6. Load global safeguards
Always run both calls, even if no part matched:
curl -sS "{KB_HOST}/api/errors"
curl -sS "{KB_HOST}/api/lessons"
Before every SolidWorks API call, cross-reference the method against global and
part-specific errors. When isResolved is true, apply resolution before the
call. Apply lesson prevention fields as rules, prioritizing critical and high
severity.
Cache and failures
Cache categories and global errors or lessons once per Codex task. Cache each part detail once per build. Refresh only when the user explicitly requests it or the task changes to a different part.
200: use the data.404: treat the resource as absent and continue.422: correct or simplify the query, then try the free-text fallback once.5xxor timeout: record the outage and continue without KB data.
Signals
- GitHub stars
- 1k
- Forks
- 316
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
sw-kb-api- Source
- github.com/hashgraph-online/awesome-codex-plugins
github.com/hashgraph-online/awesome-codex-plugins
More in AI & models
Skill · anthropics
More in AI & modelstriage
Skill · mattpocock
More in AI & modelswayfinder
Skill · mattpocock
More in AI & modelsalgorithmic-art
Skill · anthropics
More in AI & modelscode-review-and-quality
Skill · addyosmani
More in AI & modelsmarketing-psychology
Skill · coreyhaines31
More in AI & models