Produce pixel-precise masks plus area, shape, perimeter, calibration, or physical measurements. TRIGGER when: user asks to segment/outline an object or defect; measure exact area, crack width, corrosion, lesion boundary, contours, millimeters, or calibrated dimensions; or quantify mask shape. SKIP when: user only counts boxes (detect-and-analyze), needs one image verdict (classify-or-flag), reads text (read-text), tracks identity (track-and-count), asks cost only (estimate-economics), already...
Scanned 9/6/2026
Install to Claude Code
npx -y skills add Borda/vision-delivery --skill segment-and-analyze --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Segment And Analyze?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/borda-segment-and-analyze)More formats (shields.io, HTML) on the badges page.
---
name: segment-and-analyze
description: |
Produce pixel-precise masks plus area, shape, perimeter, calibration, or physical measurements. TRIGGER when: user asks to segment/outline an object or defect; measure exact area, crack width, corrosion, lesion boundary, contours, millimeters, or calibrated dimensions; or quantify mask shape. SKIP when: user only counts boxes (detect-and-analyze), needs one image verdict (classify-or-flag), reads text (read-text), tracks identity (track-and-count), asks cost only (estimate-economics), already has a working mask model and needs delivery (deliver-cv-project), or only post-processes existing masks locally.
allowed-tools: Bash, Read, Write, Edit, Glob, Grep, AskUserQuestion
---
<objective>
Produce masks and derived measurements that clear an independently labeled acceptance gate. Pixel results are not physical measurements unless calibration, camera geometry, and uncertainty support that claim.
</objective>
<methodology>
**Platform execution boundary.** Read `../../resources/roboflow-platform-lookup.md` before any provider-specific search, dataset, training, inference, workflow, or deployment action. Use installed official Roboflow skills or current MCP resources only for read-only discovery and sourced action-brief inputs; never invoke provider execution. Sentinel retains the measurement contract and evidence.
Follow `../../resources/fde-methodology.md`; apply these segmentation-specific requirements.
## 1. Define mask ownership and decision
Inspect images, masks, calibration artifacts, code, and intended action. Ask at most three missing questions:
- Is the business action driven by outline, area, maximum width, or presence?
- What independently produced masks or physical reference measurements exist?
- Must the answer be pixels/relative area, or real-world units?
Freeze before measuring a candidate:
```text
Acceptance ID: <session/revision>
Business decision: <action enabled by mask/measurement>
Gold set: <independent masks or sensor measurements, split, adjudicator>
Primary metric and threshold: <IoU/Dice/area error/width error>
Secondary guardrails: <boundary error, false masks, latency, calibration uncertainty>
Frozen before baseline: <timestamp and confirmation>
Baseline result (diagnostic only): <not run yet>
```
Visual inspection without gold masks may guide diagnosis but cannot produce IoU or Dice.
## 2. Define the geometry contract
Record mask encoding, coordinate origin, image dimensions, empty-mask behavior, overlap ownership, and whether holes/disconnected components are retained. For derived values, define:
- area: mask pixel count and any conversion factor;
- perimeter/boundary: contour method and smoothing policy;
- width: the geometric definition, not merely a box width;
- physical units: calibration target, plane, camera setup, distortion correction, and propagated uncertainty.
If perspective or depth changes invalidate a single scale factor, report pixels/relative units or require a better calibration design.
## 3. Choose and evaluate candidates
Ask upstream for current no-training and trainable segmentation categories, provenance, licenses, and input requirements. Do not retain named architectures, model IDs, search syntax, or provider command recipes in this skill.
Evaluate on the same blinded gold set. Report overlap and boundary metrics with sample counts, plus the actual business measurement error when area or width drives the decision. Slice by object size, contrast, topology, camera/site, and occlusion. Measure p50/p95 latency on the target runtime if operationally relevant.
## 4. Diagnose a failed gate
Separate missing objects, merged instances, split instances, boundary bias, holes, small-component noise, calibration error, and label disagreement. Check whether the image contains enough resolution for the requested physical tolerance. Test the cheapest credible lever first: capture/calibration improvement, prompt/input policy, post-processing, label correction, relevant transfer, or targeted data. Use read-only upstream facts to prepare any required provider action brief, stop before execution, and remeasure externally supplied results without changing the frozen gate.
## 5. Decide and deliver
Return `go`, `revise`, or `stop`, including units, uncertainty, sample counts, failed slices, and calibration limits. Follow `../../resources/artifact-contract.md`; produce a verified `hosted-client`, offline-tested `local-runtime`, or candid `scaffold`. Route a passing pipeline to `deliver-cv-project`.
</methodology>
<safety>
- Never present pixel output as millimeters or area without verified calibration.
- Candidate/pseudo-label masks cannot serve as the gold masks.
- Medical or safety-critical outputs require qualified human ownership beyond this technical gate.
- Emit a sourced action brief and stop before data movement or paid provider actions; Sentinel never invokes them.
- Use upstream guidance only to source the action brief; never invoke provider actions.
</safety>
<ledger>
Follow `../../resources/ledger-protocol.md`. Record acceptance, evaluation, calibration evidence, artifact, and decision events once with non-empty event IDs and explicit status.
</ledger>
\<stop_rules>
- No independent masks/reference measurements → do not claim overlap or physical accuracy.
- Requested tolerance exceeds capture resolution/calibration capability → state the acquisition blocker.
- Only boxes/counts are needed → route to `detect-and-analyze`.
- Provider action is required → emit a sourced action brief and stop; conversational consent does not authorize Sentinel execution.
- No applicable live/offline smoke → artifact remains a `scaffold`.
\</stop_rules>
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!