vision-decompose

When a user provides engineering reference images (drawings, isometric renders, photos) and requests modeling, produce a structured feature decomposition and output a reviewable feature tree to guide construction in Onshape. Skip this step if the user provided only a plain‑text part description.

Last repository push
GitHub Stars
177
Forks
40
Issues / PRs
11

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "vision-decompose" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3d2b619bb22bb7febef8ccfe0892c0b83ea397f393c3e500782cad861691abe1. Verify the upstream source and version against https://github.com/ReshefElisha/jarvis-onshape-mcp before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

When a user provides engineering reference images (drawings, isometric renders, photos) and requests modeling, produce a structured feature decomposition and output a reviewable feature tree to guide construction in Onshape. Skip this step if the user provided only a plain‑text part description.

0 Downloads

Introduction source: third_party · ReshefElisha · 0.0.1 Reference

SkillPi interpretation

Tasks
Look at an engineering reference image (drawing, iso render, photo) and produce a structured feature decomposition BEFORE building anything in Onshape. Output is a feature tree the user can review and the build phase can execute against. Use this whenever the user gives you a reference image and asks you to model it. Skip if the user has already described the part in plain text.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: vision-decompose
description: Look at an engineering reference image (drawing, iso render, photo) and produce a structured feature decomposition BEFORE building anything in Onshape. Output is a feature tree the user can review and the build phase can execute against. Use this whenever the user gives you a reference image and asks you to model it. Skip if the user has already described the part in plain text.

CAD Vision Decomposition — describe before you build

When the user shares an engineering reference image and asks you to build it, your first job is NOT to start create_document. It is to produce a rigorous, structured feature tree the user can sanity-check and the build phase can execute against.

Why this matters: vision-to-CAD is the hard part of this loop, not CAD-to-CAD. If you skim the image and jump to building, you'll mis-read features (boss → pocket, complex pill outline → rounded rectangle, missed callouts) and burn a long iteration loop fixing errors you could have caught in 30 seconds of careful looking. A good decomposition makes the build trivial — show it to the user, get a quick confirmation or correction, then build with confidence.

What you have

  • The reference image(s): a drawing with callouts, an iso/multi-view render, a photo, or a hand sketch. Whatever the user provided.
  • mcp__onshape__load_local_image(imagePath) — cache an image (typically the user's reference, on disk) at native resolution.
  • mcp__onshape__crop_image(imageId, x1, y1, x2, y2) — zoom into a region of any cached image. Crops are independently re-loadable; use them liberally to read small text or count features.

What you produce

A single structured response in this exact format:

## OVERVIEW
One sentence: what IS this part? (bracket / plate / flange / housing / etc.)

## ENVELOPE
Approximate overall dimensions in mm if readable from callouts. State each
axis: X_length × Y_width × Z_height. If unreadable, say "UNKNOWN" and the
build phase will need a reasonable default or ask the user.

## FEATURE TREE

F1: <short name>
  type: base-plate | boss | through-hole | blind-hole | pocket | slot | fillet | chamfer | counterbore | countersink | shell | rib | taper | thread | other
  role: primary | secondary | subtractive | cosmetic
  size: approximate mm (diameter, length×width, radius, etc.)
  position: fraction of envelope OR relative to another feature
  face: which face of the part (top / bottom / front / back / left / right / +Z-face-of-F3 / etc.)
  orientation: axis direction (e.g. "axis along +Z")
  count: 1 if single, N if pattern (e.g. 4 for a 4-corner bolt pattern)
  dim_source: drawing_callout | render_inferred
  notes: anything unusual — tolerance, finish, special constraint

F2: ...
...

## RELATIONSHIPS
Which features are subtractive-on-top-of which, which are patterned from which.
List them as one-liners: "F4 (through-hole) is cut INTO F1 (base-plate)."
Critically: when one feature's outline is *derived* from another's
silhouette (e.g. "the inset pocket follows the pill outline minus the two
holes, offset inward 10 mm"), say so explicitly. Derived outlines are the
single biggest class of misread feature in single-image-to-CAD.

## UNCERTAINTIES
Anything you weren't sure about. Be explicit — list what you'd want the
user to confirm before you commit to a build.

After producing the structured response, briefly check with the user: "Does this match what you intended? Any corrections before I start building?" The user has more context than the image alone — let them fix your read before you spend turns building wrong.

Think out loud as you work

Before every non-trivial tool call (crop_image, load_local_image), emit a short plan text (1-3 sentences, plain assistant output) saying WHY and WHAT YOU EXPECT TO SEE. Example:

"About to crop the top-left quadrant of the drawing — that's where the dimension callouts for the main bolt circle usually live on ASME title sheets. Expecting to see two Ø dimensions."

The observer watching the run uses these thought lines to follow your reasoning. Don't let your only visible output be tool-call JSON.

After each crop, also say in 1-2 sentences what you actually saw before moving on. If the crop didn't show what you expected, name the surprise explicitly — that's valuable signal.

How to work

Mandatory steps, in order:

  1. Overview scan. Look at the attached images for ~5 seconds. Write the ONE-SENTENCE overview. Don't try to list features yet.
  2. Cache + count. For each reference image path, call load_local_image(imagePath=<path>) so you get a cached image_id. Scan the full image for distinct features. Count them mentally. If you count ≤ 3 features on a part that fills most of the frame, you're missing things — non-trivial engineering parts have 6–12+ distinct features.
  3. Crop-and-describe each feature. For every feature you counted, use crop_image(imageId=<id>, x1,y1,x2,y2) to zoom into its region at native resolution. State what you see in the crop:
    • shape (circular hole, rectangular pocket, hex recess, radius fillet)
    • size estimate (read callouts if visible, else fraction of envelope)
    • position and orientation
    • role (additive? subtractive? cosmetic?)
  4. Handle the drawing specifically if you have one. For dimension callouts: crop into each one, read the number at native resolution, note which feature it applies to. Callouts like Ø25 mean diameter 25, R3 mean radius 3, 4X prefix means "this callout applies to 4 instances".
  5. Self-check coverage. Before finalizing, ask: does my feature tree cover every distinct silhouette region of the part? Scan the overview image one more time. If there's a feature I see but didn't list, add it.
  6. Output the structured response. No preamble, no reasoning, just the sections above filled in.

Scope discipline

In this phase, the only tools you should reach for are load_local_image and crop_image (plus reading static files). Don't call build tools yet — finish describing first, then transition to the building phase once the user confirms the spec.

Common failure modes to avoid

  • Surface-skimming. "I see a plate with some holes." That's useless. Count the holes. Measure them. Say where they are relative to edges.
  • Feature conflation. A "rectangular hole" vs a "rectangular pocket with a through-hole at its bottom" are different. Distinguish.
  • Missing the backside. Isometric drawings often show features on the hidden face as dashed lines. Look for them.
  • Confusing boss with pocket. A positive cylindrical bump sticking up is a boss (additive). A cylindrical hole going down is a pocket/blind-hole (subtractive). Get the polarity right.
  • Simplified outlines. A pocket whose outline follows a complex silhouette (pill, star, bone) is often misread as "rounded rectangle." Check whether the pocket boundary is offset from another feature's silhouette before you declare its shape.
  • Treating title-block text as a dim. Numbers near the title block (like "2012", "Rev D", scale "1:1") are not part dimensions. Exclude them.
  • Guessing sizes when they're on the drawing. If a callout says 35.2, that's the dimension. Don't estimate from pixels.

Length and quality

Budget: 15–25 turns total. You have time to crop several regions. Don't rush, don't dawdle.

Output quality standard: a competent CAD designer reading only your output (not the original images) should be able to build the part. If your output lacks a size, position, or role for a feature, the downstream agent will guess — and may guess wrong. Be specific.

Version history

  1. v1.2.0 GitHub ↗
    Original release notes

    ## Constraint-first sketches + sketch inspection Sketches graduate from coordinate-first plumbing to the surface Onshape's solver actually speaks. Drawings now transcribe as **entities with ids + real-world constraints** instead of hand-computed coordinates, and a new read side closes the feedback loop. ### New tools | Tool | What it does | |---|---| | `edit_sketch` | Add / remove entities and constraints on an existing sketch. ID-collision detection, same-call retarget, cascade-removal of constraints whose referenced entity disappears. | | `inspect_sketch` | Compact structured view — per-entity kind / id / endpoints / center / dimensions, per-constraint type / refs / expression. Returns JSON + human-readable text. | | `list_sketches` | Part Studio sketch index with status + entity/constraint counts. | | `render_sketch` | 2D PNG of a sketch in sketch-local mm. `/shadedviews` doesn't render sketches, so this plots lines / arcs / circles / points directly and overlays constraint badges: FIX = red square, LENGTH/DIAMETER/RADIUS/DISTANCE = green labels, H/V tags for HORIZONTAL/VERTICAL. | ### create_sketch grows a constraint-first surface Give each entity an `id`, list real-world `constraints` between them, and the solver resolves positions. The old coordinate-first path still works — constraint-first activates only when entities carry `id`. ``` create_sketch({ plane: "Top", entities: [ {id: "hub", type: "circle", center: [0, 0], radius: "25 mm"}, {id: "tip", type: "circle", center: [100, 0], radius: "12 mm"}, {id: "upper", type: "line", start: [0, 25], end: [100, 12]}, {id: "lower", type: "line", start: [0, -25], end: [100, -12]} ], constraints: [ {type: "DIAMETER", entity: "hub", value: "50 mm"}, {type: "DIAMETER", entity: "tip", value: "24 mm"}, {type: "DISTANCE", entities: ["hub.center","tip.center"], value: "100 mm", direction: "HORIZONTAL"}, {type: "TANGENT", entities: ["upper", "hub"]}, {type: "TANGENT", entities: ["upper", "tip"]}, {type: "TANGENT", entities: ["lower", "hub"]}, {type: "TANGENT", entities: ["lower", "tip"]} ] }) ``` 14 constraint types + 3 aliases (`LENGTH`, `HORIZONTAL_DISTANCE`, `VERTICAL_DISTANCE`). Entity refs support sub-points: `line.start`, `line.end`, `circle.center`, `arc.center`. ### Other changes - **Single-entity circles** via `BTMSketchCurve-4` replace the old two-semicircle hack. - **`short_arc` default matches the Onshape UI** — CCW sweeps > 180° silently swap endpoints so the arc goes the short way. Pass `short_arc: false` for the explicit long-way case. - **`SKETCH_SOLVE_FAILED` hints** point callers at client-side bisection. - **47 new unit tests** (34 constraint serializer + 13 edit_sketch merge). Dogfood-validated against clevis and bracket sketches. ### Upgrade notes **No breaking changes.** Existing `create_sketch` callers work unchanged; the constraint-first path is opt-in (triggered by entities carrying an `id`).

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 直接解决用户明确的核心任务痛点:将工程参考图像转化为结构化特征分解
  • 显著提升CAD建模前的准备效率和准确性,避免建模错误和返工
  • 适用于高频刚需场景,具有广泛受众的实用能力
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖多种变体,边界清晰
  • description明确说明在用户提供参考图像并要求建模时使用,纯文本描述时跳过
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • 结构非常清晰,包含详细的步骤、输出格式、常见错误模式等
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 使用mcp__onshape__load_local_image和mcp__onshape__crop_image工具,有详细的操作步骤和异常处理建议
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.