设计与多媒体

render

earthtojake/text-to-cad

Start or reuse the CAD Explorer viewer, return review links, and create saved snapshots for explicit CAD and robot-description files. Use when rendering or visually reviewing `.step`, `.stp`, `.glb`, `.stl`, `.3mf`, `.dxf`, `.urdf`, `.srdf`, or `.sdf` files, especially when handed off from CAD, URDF, SRDF, or SDF generation skills.

  • 1347 次安装
  • 2.4万 星标
  • 收录于

安装命令

npx skills add https://github.com/earthtojake/text-to-cad --skill render

SKILL.md

Render

Use this skill to open generated or modified CAD and robot-description files in CAD Explorer. The expected input is one or more explicit file paths that already exist or were just generated by another skill.

Supported files: .step, .stp, .glb, .stl, .3mf, .dxf, .urdf, .srdf, .sdf.

Handoff Contract

  • Accept explicit file paths from CAD, URDF, SRDF, SDF, SendCutSend, or standard-part workflows.
  • Start or reuse CAD Explorer with dev:ensure; do not assume a fixed port. Treat dev:ensure as the viewer liveness check for returned links.
  • Treat port reuse as mandatory: if dev:ensure reports local binding/probing denial such as EPERM or EACCES, rerun the same dev:ensure command with the needed local-binding permission/escalation instead of choosing a new port yourself.
  • Do not use npm run dev -- --port ..., raw vite dev, or raw vite preview for normal agent handoffs; those bypass the reuse policy and can leave duplicate localhost Explorer servers running.
  • Return the printed Explorer URL for each requested file.
  • For generation review or visual feedback, prefer the snapshot CLI over opening the viewer manually or using Playwright. Viewer links are still returned for handoff/live review.
  • Generate GIFs only for CAD STEP-module parameter animation review. Otherwise use still snapshots, not GIFs.
  • If startup fails, report the failure and let the owning skill continue with its non-GUI validation.

Commands