vision-decompose

在用户提交工程参考图像(图纸、等轴测渲染图、照片)并要求建模前,生成结构化的特征分解并输出可审查的特征树,以便在 Onshape 中据此执行构建。若用户仅以纯文本描述零件,则跳过该步骤。

仓库最近推送
GitHub Stars
177
Forks
40
Issues / PRs
11

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "vision-decompose":https://skillpi.com/zh/skills/deepskill-3d2b619bb22bb7febef8ccfe0892c0b83ea397f393c3e500782cad861691abe1。安装前核对上游来源和版本:https://github.com/ReshefElisha/jarvis-onshape-mcp。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在用户提交工程参考图像(图纸、等轴测渲染图、照片)并要求建模前,生成结构化的特征分解并输出可审查的特征树,以便在 Onshape 中据此执行构建。若用户仅以纯文本描述零件,则跳过该步骤。

0 下载

介绍来源: third_party · ReshefElisha · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

版本历史

  1. v1.2.0 GitHub ↗
    原版更新说明

    ## 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`).

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

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

亮点

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

亮点

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

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
  • 使用mcp__onshape__load_local_image和mcp__onshape__crop_image工具,有详细的操作步骤和异常处理建议
证据可验 (前四项均值)93/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。