cli-anything-freecad
Skill này làm gì
Skill này cho phép agent thiết kế chi tiết 3D và bản vẽ trong FreeCAD qua lệnh văn bản. Nó dành cho kỹ sư, người làm đồ tự chế và nhà thiết kế xây mô hình 3D tham số.
Khi nào nên dùng
- ✓Khi bạn muốn vẽ một phác thảo và biến nó thành một chi tiết 3D.
- ✓Khi bạn muốn thêm lỗ, bo tròn hoặc mẫu lặp vào một chi tiết.
- ✓Khi bạn muốn tạo một bản vẽ kỹ thuật 2D từ mô hình 3D.
Liên kết skill
https://github.com/HKUDS/CLI-Anything/blob/main/freecad/agent-harness/cli_anything/freecad/skills/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
“Làm một giá đỡ 40 nhân 20 milimét có bốn lỗ gắn và tạo một bản vẽ của nó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill chạy FreeCAD ở chế độ dòng lệnh và gửi các bước thiết kế của bạn tới nó, lưu công việc trong một file dự án. Nó cũng có thể chụp ảnh xem trước của mô hình.
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.
cli-anything-freecad
Complete CLI harness for FreeCAD — 258 commands across 17 groups covering ALL workbenches.
Prerequisites
FreeCAD must be installed: freecadcmd must be in PATH.
Installation
pip install -e freecad/agent-harness
Basic Usage
cli-anything-freecad --json <command> # JSON output for agents
cli-anything-freecad --json -p proj.json <cmd> # With project file
cli-anything-freecad # Interactive REPL
Preview, Live Preview, and Motion
FreeCAD is currently the deepest preview integration in this branch.
Preview commands:
# List preview recipes
cli-anything-freecad --json -p proj.json preview recipes
# Capture a real 4-view bundle
cli-anything-freecad --json -p proj.json preview capture --recipe quick
# Start poll-mode live preview
cli-anything-freecad --json -p proj.json preview live start --recipe quick --mode poll --source-poll-ms 500
# Query current live state without rendering
cli-anything-freecad --json -p proj.json preview live status --recipe quick
# Stop live preview publication
cli-anything-freecad --json -p proj.json preview live stop --recipe quick
Typical quick bundle artifacts:
hero.pngfront.pngtop.pngright.png
Live preview persists:
session.json- immutable bundle directories
trajectory.json
preview live status --json is intended for agents and includes a compact
trajectory_summary in addition to _session_dir, current bundle refs, and
_trajectory_path.
Viewer commands:
cli-hub previews inspect /path/to/bundle-or-session
cli-hub previews html /path/to/bundle-or-session -o page.html
cli-hub previews watch /path/to/session --open
cli-hub previews open /path/to/bundle-or-session
Motion commands remain separate from preview and are used for final truthful frame rendering and showcase videos:
cli-anything-freecad --json -p proj.json motion new --name spin --duration 6 --fps 24
cli-anything-freecad --json -p proj.json motion keyframe spin --time 0.0 --part 0 --position 0,0,0
cli-anything-freecad --json -p proj.json motion render-video spin output.mp4
Command Groups (258 commands)
document (5) — Document management
cli-anything-freecad --json document new --name "Part" -o proj.json
cli-anything-freecad --json document new --profile print3d -o proj.json
cli-anything-freecad --json -p proj.json document info
cli-anything-freecad --json -p proj.json document save -o copy.json
cli-anything-freecad --json document profiles
part (29) — 3D primitives, boolean, transforms, operations
# Primitives: box, cylinder, sphere, cone, torus, wedge, helix, spiral, thread, plane, polygon_3d
cli-anything-freecad --json -p p.json part add box -P length=20 -P width=15 -P height=5
cli-anything-freecad --json -p p.json part add cylinder -P radius=3 -P height=10 --position 10,7.5,0
# Operations
cli-anything-freecad --json -p p.json part boolean cut 0 1
cli-anything-freecad --json -p p.json part copy 0
cli-anything-freecad --json -p p.json part mirror 0 --plane XY
cli-anything-freecad --json -p p.json part scale 0 --factor 2.0
cli-anything-freecad --json -p p.json part loft --indices 0,1,2
cli-anything-freecad --json -p p.json part sweep 0 1
cli-anything-freecad --json -p p.json part revolve 0 --axis Z --angle 360
cli-anything-freecad --json -p p.json part extrude 0 --direction 0,0,1 --length 10
cli-anything-freecad --json -p p.json part fillet-3d 0 --radius 2
cli-anything-freecad --json -p p.json part thickness 0 --thickness 1
cli-anything-freecad --json -p p.json part compound --indices 0,1,2
cli-anything-freecad --json -p p.json part section 0 --plane XY
cli-anything-freecad --json -p p.json part info 0
cli-anything-freecad --json -p p.json part line-3d --start 0,0,0 --end 10,5,0
cli-anything-freecad --json -p p.json part wire --points "0,0,0;10,0,0;10,10,0"
sketch (26) — 2D constrained sketching
cli-anything-freecad --json -p p.json sketch new --plane XY
cli-anything-freecad --json -p p.json sketch add-line 0 --start 0,0 --end 20,0
cli-anything-freecad --json -p p.json sketch add-circle 0 --center 10,10 --radius 5
cli-anything-freecad --json -p p.json sketch add-rect 0 --corner 0,0 --width 20 --height 15
cli-anything-freecad --json -p p.json sketch add-arc 0 --center 0,0 --radius 5
cli-anything-freecad --json -p p.json sketch add-ellipse 0 --center 0,0 --major-radius 10 --minor-radius 5
cli-anything
Câu hỏi thường gặp
Tôi có cần cài FreeCAD không?
Có, FreeCAD phải được cài với công cụ dòng lệnh của nó sẵn trên đường dẫn.
Nó có xem trước mô hình được không?
Có, nó có thể chụp một bộ ảnh xem trước, và hỗ trợ xem trước trực tiếp.
Nó có bao nhiêu lệnh?
Nó có 258 lệnh trong 17 nhóm, bao phủ nhiều workbench của FreeCAD.
Chi tiết
Mô tả gốc của tác giả
Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD exp
repo: HKUDS/CLI-Anything
Độ phổ biến
- Sao GitHub
- 58k
- Vị trí xếp hạng
- #3206
- Giấy phép
- Apache-2.0
- Cập nhật
- 21/9/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-anything-3mf
58kCho phép agent của bạn kiểm tra và sửa file in 3D, gồm tìm lỗ tròn, đổi kích thước chúng, sửa lưới và so sánh hai file.
cli-anything-qgis
58kCho phép agent của bạn mở, sửa và xuất dự án bản đồ QGIS từ terminal, gồm các lớp, đối tượng, bố cục in và công cụ xử lý.
cli-anything-adguardhome
58kCho phép agent của bạn quản lý AdGuard Home, một bộ chặn quảng cáo toàn mạng, gồm bộ lọc, DNS rewrite, thiết bị và nhật ký truy vấn.
cli-anything-anygen
58kCho phép agent của bạn tạo slide, tài liệu, website và sơ đồ từ một prompt bằng dịch vụ AnyGen.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.