dfam-check
Skill này làm gì
Skill này đo các file lưới 3D như STL theo quy tắc thiết kế in cho nhiều phương pháp in 3D. Skill dành cho người làm và kỹ sư muốn kiểm tra một chi tiết trước khi in.
Khi nào nên dùng
- ✓Khi bạn hỏi liệu một mô hình 3D có in được không.
- ✓Khi bạn muốn gợi ý hướng đặt khi build để in một chi tiết.
- ✓Khi bạn cần hướng dẫn thiết kế lại một chi tiết trước khi cắt lớp.
Liên kết skill
https://github.com/earthtojake/text-to-cad/blob/main/skills/dfam-check/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem file STL này có in được không và cho tôi biết phần nhô ra nào là vấn đề không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI chạy công cụ đo trên lưới để lấy các sự kiện như góc nhô ra và độ dày thành. Sau đó nó so sánh chúng với giới hạn của từng quy trình in và báo cáo phát hiện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
DfAM Check
Use this skill to produce conservative, evidence-backed DfAM reports for mesh files before slicing or printing. It measures geometry facts locally and compares them against per-process design limits; it never slices, uploads, or starts print jobs.
Geometry Inspection
Use scripts/dfam_tool.py in the active project Python environment for all
geometry facts (install requirements.txt first — every run needs it). The tool is fact-only:
it reports measurements and never emits pass/fail or readiness statuses.
Comparisons and verdicts belong to this workflow. Do not estimate wall
thickness, overhang angles, or support volume by eye or from renders when the
tool can measure them.
python scripts/dfam_tool.py measure part.stl --angle-limit 45
python scripts/dfam_tool.py orientations part.stl --angle-limit 45
Set --angle-limit to the target process's self-supporting angle from
references/process-limits.md before measuring, and re-run when the target
process changes: the aggregate support-area facts are binned against it.
STEP/STP input is boundary-representation CAD, not a mesh: export an STL first,
then measure the STL here. For a text-to-cad model, cad export <id> part.stl writes one
(or cad export part.step part.stl from a STEP).
Report that remediation instead of attempting raw STEP parsing. measure
on a STEP exits 1 with {"error": "failed to load mesh: ..."}; that is the
wrong-input signal, not a missing dependency — do not install extra mesh
loaders to work around it.
A fact family that cannot compute returns {"error": ...} in its place rather
than costing the report its other measurements — wall_thickness does this when
the dependency set is incomplete, support_volume on geometry with no convex
hull. That report is PARTIAL: it carries "partial": true, names the families
in partial_sections, and the command exits 2 (0 is a complete report, 1 a
mesh that would not load at all). Treat every such object as an unmeasured fact
(❓ need more info), never as a measurement of zero, and reinstall
requirements.txt before comparing wall limits.
Workflow
- Collect print intent: target process, material, layer height, and any machine or material datasheet the user can provide. If the process is unknown, measure once with the default 45° limit, then present findings per candidate process rather than guessing a single verdict.
- Read
references/process-limits.mdand select the limit column for the target process. A user-provided machine/material datasheet overrides the defaults; cite whichever source is used for every comparison. - Run
measureon the exact upload file. Do not inspect only a generator script, source CAD model, or console summary of the file. - Run
orientationswhen the process requires supports and the measured support area is nonzero. Report any candidate that materially reduces support area, with its build-height tradeoff. - Compare each measured fact to the cited limit and report findings with
restrained status labels:
✅ pass: the measured fact satisfies the cited limit.❌ fail: a measured fact directly violates the cited limit.❓ need more info: missing process context, unmeasured geometry, sampling too sparse to trust, or tool limitations.
- Order findings by severity: watertightness first (blocks slicing for every process), then wall thickness, then overhangs/supports, then orientation and cost signals.
Comparison
Compare only trustworthy pairs of evidence.
- Cite the limit source (process-limits table row, or the user's datasheet field) and the measured fact (JSON field path) for every finding.
- Treat
p05_mmbelow the wall-thickness limit as a violation even whenmin_mmalone could be a sampling outlier; report both values. - On an assembly,
wall_thicknessreportsbody_countand aper_bodybreakdown. Attribute a violation to the body it belongs to; a thin figure pooled across bodies is not a finding against the part as a whole. - Do not apply support-angle findings to powder processes (SLS, MJF); the
relevant powder-process check is trapped-volume powder escape, which this
tool does not yet measure — report that as
❓ need more infowhen enclosed cavities are likely. - Do not silently rescale geometry.
scale.units_suspectis measured from the bounding-box diagonal: when it istrue, the source is probably in meters or inches, every dow
Câu hỏi thường gặp
Skill có cắt lớp mô hình không?
Không. Nó chỉ đo lưới và báo cáo phát hiện về khả năng in. Nó không bao giờ bắt đầu in.
Skill có kiểm tra file STEP không?
Hãy xuất STL trước. Skill không đọc trực tiếp file STEP.
Skill bao quát những phương pháp in nào?
FDM, SLS, SLA hoặc DLP, in kim loại dạng bột và MJF.
Chi tiết
Mô tả gốc của tác giả
Measure mesh files against Design for Additive Manufacturing (DfAM) rules and report printability findings per process (FDM, SLS, SLA/DLP, metal PBF, MJF). Use when the user asks whether a part is printable, wants overhang/wall-thickness/support analysis of an `.stl`, `.obj`, `.ply`, or `.3mf` mesh, wants a build-orientation recommendation, or wants DfAM redesign guidance before slicing or regenerating geometry. Measures meshes; it does not slice, print or edit the model.
repo: earthtojake/text-to-cad
Độ phổ biến
- Sao GitHub
- 25k
- Vị trí xếp hạng
- #10068
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
bambu-labs
25kGiúp agent của bạn gửi một mô hình 3D đã cắt lớp hoặc chưa cắt lớp đến máy in Bambu Lab qua Bambu Connect hoặc Bambu Studio.
cad
25kGiúp agent của bạn thiết kế chi tiết và cụm lắp 3D dưới dạng script Python build123d, xuất ra file STEP hoặc STL và kiểm tra kích thước của chúng.
dfm
25kGiúp agent của bạn review một chi tiết để gia công tấm kim loại, CNC hoặc ép khuôn, kiểm tra xem nó có thể chế tạo được không và cần sửa gì.
dxf
25kGiúp agent của bạn tạo và kiểm tra bản vẽ DXF 2D để cắt laser, plasma hoặc tia nước từ một mô tả hoặc một chi tiết CAD.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.