Build or change a parametric CAD part or assembly with Turnery - enclosures, cases, brackets, mounts, stands, jigs, parts with screw holes, anything to 3D print or machine from stated dimensions. Use when the user says "build / model / design a part", "make an enclosure for this board", "a bracket with M3 holes", "export STEP / STL", or in Chinese 建一个外壳 / 做个零件 / 做个支架 / 做个盒子 / 画个底座 / 3D 打印一个…… / 用 turnery 建模 / 改一下壁厚 / 看一下备注.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Build Part?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/linjiejim-build-part)
---
name: build-part
description: Build or change a parametric CAD part or assembly with Turnery - enclosures, cases, brackets, mounts, stands, jigs, parts with screw holes, anything to 3D print or machine from stated dimensions. Use when the user says "build / model / design a part", "make an enclosure for this board", "a bracket with M3 holes", "export STEP / STL", or in Chinese 建一个外壳 / 做个零件 / 做个支架 / 做个盒子 / 画个底座 / 3D 打印一个…… / 用 turnery 建模 / 改一下壁厚 / 看一下备注.
---
# Build a part with Turnery
Turnery is a desktop app; its MCP server (`turnery`; your client may prefix the tool names, for example `mcp__plugin_turnery_turnery__guide`), or its command line when the MCP tools aren't there (see the end), edits a feature tree stored as `*.turnery.json` and an OpenCascade kernel computes the geometry. The user watches every step in the Turnery window.
1. **Read the guide first.** Call `guide` once per session. It is the reference for coordinates, selectors and each feature; the tool descriptions assume you have read it. The guide and the tool results are in Chinese; answer the user in their language.
2. **Say what you are about to build** in one or two sentences before the first tool call: what it is, which parts, single file or assembly. Ask when the object or a dimension is unclear.
**Use absolute paths** for `open_part`, `open_project`, `import` and any custom `export` `path`, inside the folder the user is working in (omitting `path` on `export` automatically writes into `exports/` in the project). Some clients start the server in another folder, so a relative path may not land where you expect.
**Templates.** When the request is close to one of Turnery's ready-made models (an enclosure, a knob, a bracket, a jar with a screw lid, a cable clip, a planter…), call `template` with no arguments to list them and offer to start from the closest; `template` with `id` and `into` copies it into a new project and opens it. A `.turnery` file the user hands you opens with `open_package`.
3. **Parameters first.** `open_part` (with `create: true` for a new file), then `set_params` for every key dimension, then features that refer to the parameter names. Give each feature a `name` and an `intent`.
4. **Read every result.** `✗` means fix that feature with `edit_feature`; do not stack a new feature on top. `⚠` must be handled or explained.
5. **Check, don't claim.** When the request has numbers, call `check` with one item per number, quoting the user's words in `said` and writing the number they gave as the expected value. For multi-part models or assemblies: a flat joint held by screws or glue is fine for 3D printing, and box or enclosure lids usually get an inner lip (a ring under the lid that drops inside the base's walls, all the way round and around the corner screw posts; `split`'s `lip` makes it in one step); what matters is that mating features (pins, spigots, lips, snap-fits) leave clearance (about 0.2 mm a side for FDM), are at least two line widths thick and print without supports. Audit with `inspect` (`what: "seams"`) and save a `check` (`kind: "seam"`, `parts` naming the two parts, `min_clearance` for the process) where parts fit together. Then `look` at the result (using `section` across seams). Use `measure` for distances; do not compute them yourself.
6. **The user points, you read.** Notes the user pins on faces arrive through `get_notes`; answer each with `resolve_note`. When you cannot tell which face they mean, call `request_pick`.
7. **Colors.** When the user names colors ("lid in orange", "black screws") or wants to see the final look, call `set_appearance` (a palette name or `#RRGGBB`; finish `matte`, `metal` or `clear`). It never changes geometry; `look` draws the colors and names them.
8. **Deliver** with `export` (`step`, `stl`, `3mf`, `py`, `json`, `bom`, or `turnery` for a package to share with another Turnery user); STEP, 3MF and the BOM carry the colors. Leaving out `path` writes into `exports/` in the project so exported files stay separate from source JSONs. When the user explicitly asks to print or open in a slicer, call `export` with `format: "3mf", open: true` (and `app` if they named a slicer).
## Without the MCP tools: the command line
When no `turnery` tools are available but you can run shell commands, use the `turnery` command line. It has every tool, with the same parameters and the same results, and drives the same Turnery window. Find it with `turnery version`; if that isn't on PATH, use `/Applications/Turnery.app/Contents/Resources/bin/turnery` (or `~/Applications/…`). The steps above apply unchanged:
- `turnery call guide` is the guide (step 1). `turnery tools` lists the tools; `turnery tools <name>` gives one's description and parameter schema.
- `turnery call <tool> '<JSON>'` calls a tool. Long parameters go in a file: `turnery call sketch @sketch.json`, or `-` to read stdin. `key=value` pairs work too (values are JSON, `a.b=1` nests) and can follow the JSON to change single values.
- `turnery call look '<JSON>' -o <dir>` saves the pictures as PNG files and prints their paths: open them to see the model.
- Exit code 1 means the call itself failed, like an MCP tool error. A result that ran still has its `✓ ✗ ⚠` lines to read, as over MCP.
- Calls from the same folder are one session, like one MCP connection: they go to the same window and act on the part you last opened with `open_part`. `--part <file>` names a part explicitly. If a call says no part is open right after `open_part`, the app isn't running and each run stands alone: pass `--part` every time.
- Like the MCP server, it starts the Turnery app when it isn't running.
## When Turnery isn't there
If neither the `turnery` tools nor the command line work, Turnery.app is not installed or has never been opened. Turnery runs on macOS only. Point the user to https://github.com/linjiejim/turnery/releases/latest, then have them reconnect the `turnery` MCP server in whichever client they are using, or start a new session.
If you cannot run local programs at all (for example in a web chat), Turnery's tools cannot load there: say that Turnery needs an agent running on the user's Mac, such as Claude Code, Codex or WorkBuddy. Otherwise, missing `turnery` tools mean the server failed to connect, as above; try the command line first.