cad
ما الذي تفعله
توجه هذه المهارة الذكاء الاصطناعي إلى صنع نماذج CAD ثلاثية الأبعاد وتعديلها بالمعاملات عبر text-to-cad. وهي مخصصة للمصممين والمهندسين الذين يصفون الأجزاء بالكلمات ويريدون نموذجًا ثلاثي الأبعاد.
متى تستخدمها
- ✓عندما تريد إنشاء جزء ثلاثي الأبعاد جديد أو تجميع من وصف.
- ✓عندما تحتاج إلى تعديل سكربت نموذج CAD موجود ورؤية النتيجة تتحدث.
- ✓عندما تريد تصدير النموذج كملف STEP أو STL أو 3MF أو GLB.
رابط المهارة
https://github.com/earthtojake/text-to-cad/blob/main/skills/cad/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك نمذجة قوس بثقبين للتثبيت وتصديره كملف STEP؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يكتب الذكاء الاصطناعي سكربت build123d بلغة Python أو يعدّله. ثم يعيد خادم text-to-cad بناءه فيتحدث العارض. ولا تُصدَّر الملفات إلا عندما تطلب ذلك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
CAD modeling and inspection
A model is a Python function; running its script rebuilds it in text-to-cad's warm server, and the page the person has open updates. Files are exports, made when asked.
Start with the task
| Task | Start with | Reference |
|---|---|---|
| Create or edit a part or assembly | The project's model script, or a new one (below). | Models, build123d, positioning |
| Organize a CAD project | The project's existing layout. | Project layout |
| Export STEP, STL, 3MF, GLB or xbf | cad export <id> <file>. |
Exports |
| Use a vendor STEP, an xbf or a scan in a model | read_step, read_xbf or read_mesh in the body. |
Inputs |
| Resolve a reference from a prompt | cad inspect <id> '<ref>'. |
References |
| Measure or check geometry | A check script that calls the model. | Inspection |
| See a model, a view or a pose | cad snapshot <id> out.png. |
Snapshots |
| Articulate a mechanism | build123d joints in the body, then cad.ap242. |
Kinematics |
| Explode, reveal or showcase a model | cad.gltf's animation() in the body. |
Animation |
| Open an existing XBF, STEP/STP, STL, 3MF or GLB | Show it to the user. | Show the model |
Setup and paths
Run the cad command (~/.local/bin/cad where ~/.local/bin is not on your PATH, or where a
project's environment puts its own cad first; cad.cmd on Windows). If cad is not found and
the CAD app was only just added, its server may still be starting: wait five seconds and run the
command again, for up to a minute, before anything else. Otherwise install text-to-cad, outside a sandbox or with its permission:
curl -fsSL https://texttocad.dev/install.sh | sh
On Windows, in PowerShell: irm https://www.texttocad.dev/install.ps1 | iex. Any other failure
says what to do, and cad doctor explains the installation.
One server runs for the installation: the first run starts it, every run and every
command goes through it, and it serves the viewer. cad status lists its workers
and the documents it holds; cad stop stops it.
A build cut off by the shell's time limit keeps running in the server; run the same
command again and it waits for that build and replays it (cad status shows it).
Give a cold build of a large model the shell tool's longest timeout, or run it in the
background.
Build every model with cad run. It needs nothing set up: it runs a script in the server's own
environment, which holds the library and build123d. A model that needs another package names it
at the top of its script, and cad run installs it beside the kernel once, in an environment it
keeps for the runs after:
# /// script
# dependencies = ["pandas>=2"]
# ///
For a one-off, cad run --with pandas src/plate.py (repeat --with, or separate requirements
with commas; a local folder or wheel works too, its path relative to the working directory, or in
the block to the script's folder, and the next run installs it again after an edit). What cannot be
installed beside the kernel is refused in one
line with uv's reason: change the requirement it names, or, where the network is needed once, run
it outside a sandbox or with its permission. In Windows PowerShell, put a version constraint (>=,
<) in the block, not on the command line: PowerShell hands it to cad.cmd unquoted, and cmd reads
> as a redirection.
Command-line paths, and the paths read_step, read_xbf, read_mesh and export
take, are relative to the working directory, as are a model's own file reads. Anchor
them on __file__ in code that must run from any folder.
Write a model and run it
A part or an assembly is a function with no parameters, decorated @model (or with its
file decorators, never both), that returns a build123d shape. Its dimensions are the
arguments of a plain helper function, and each configuration is a @model of its own, with
its own id and page; constants several models share live in a module they import. A call
builds it and returns its document: a handle with .id,
الأسئلة الشائعة
ما build123d؟
هي مكتبة Python لبناء الأشكال ثلاثية الأبعاد. تستخدمها المهارة لوصف الأجزاء بالشيفرة.
هل أحتاج إلى كتابة شيفرة؟
لا. يكتب الذكاء الاصطناعي السكربت من وصفك، ويمكنك مراجعته.
هل يمكنها قياس جزء؟
نعم. تشمل المهارة فحوصًا تقيس الهندسة من النموذج.
التفاصيل
الوصف الأصلي من المؤلف
Creates and edits parametric CAD parts and assemblies as Python build123d models that text-to-cad's server builds and the CAD Viewer shows live; exports STEP, STL, 3MF, GLB and xbf files on request; resolves prompt references, measures geometry, and articulates or animates assemblies. Use for 3D CAD modeling, editing a model script (any change to a part's or assembly's `.py`), organizing a CAD project, exporting or converting CAD files, Quick Edit prompts, mechanisms, and explode or showcase animations. Opens and reviews existing XBF, STEP/STP, STL, 3MF and GLB files in the CAD Viewer. Covers
repo: earthtojake/text-to-cad
الشعبية
- نجوم GitHub
- 25k
- الترتيب
- #10067
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
bambu-labs
25kيساعد وكيلك على إرسال نموذج ثلاثي الأبعاد مقطّع أو غير مقطّع إلى طابعة Bambu Lab عبر Bambu Connect أو Bambu Studio.
dfam-check
25kيساعد وكيلك على فحص ملف شبكة ثلاثية الأبعاد لمعرفة مدى قابليته للطباعة بجودة، مع الإبلاغ عن الميلان الزائد وسماكة الجدران وحاجة الدعامات.
dfm
25kيساعد وكيلك على مراجعة جزء للتصنيع بالصفائح المعدنية أو CNC أو الحقن، لمعرفة إمكانية تصنيعه وما يجب تغييره.
dxf
25kيساعد وكيلك على إنشاء رسومات DXF ثنائية الأبعاد وفحصها للقطع بالليزر أو البلازما أو الماء عالي الضغط، من وصف أو من جزء CAD.
مهارات مشابهة
blucli
394kيساعد وكيلك على البحث عن مكبرات Bluesound وNAD وتشغيلها وإيقافها وتجميعها وضبط مستوى صوتها عبر الأمر blu.
camsnap
394kيساعد وكيلك على التقاط صور لقطية أو مقاطع قصيرة أو أحداث حركة من كاميرات الشبكة وكاميرات الويب المحلية التي أعددتها.
eightctl
394kيساعد وكيلك على فحص وحدة Eight Sleep والتحكم فيها، بما في ذلك درجة حرارتها ومنبهاتها وجداول النوم.