Senior computer vision

From borghei/Claude-Skills · View interactive version

Senior computer vision is an AI agent skill from the GitHub repository borghei/Claude-Skills. Computer vision engineering for object detection, segmentation, and visual AI, covering CNN and Vision Transformer architectures and ONNX/TensorRT deployment. Use when building detection pipelines, training models, or optimizing inference.

How to use this skill

Skill file

Senior Computer Vision Engineer

Design end-to-end computer vision pipelines for object detection, instance/semantic segmentation, and production deployment. Generates training configurations for YOLO/Detectron2/MMDetection, optimizes models for ONNX/TensorRT/OpenVINO runtimes, and builds dataset preparation workflows with format conversion and augmentation.

Core Capabilities

When to Use

Clarify First

Before generating training configs or pipelines, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools

All three are stdlib-only CLIs. inference_optimizer.py needs the model's runtime (torch for

.pt, onnx/onnxruntime and numpy for .onnx) to analyse or benchmark; without it only

format-based recommendations are produced and --benchmark exits 2.

| Tool | Purpose | Example (runs as written) |

|------|---------|---------|

| vision_model_trainer.py | Analyse a COCO/YOLO dataset and generate a YOLO / Detectron2 / MMDetection training config (--framework, --arch, --epochs, --batch, -o, --analyze-only, --json) | python scripts/vision_model_trainer.py assets/sample_coco_valid --analyze-only --json |

| inference_optimizer.py | Analyse, benchmark and recommend optimisations per target (--analyze, --benchmark, --recommend, --target gpu/cpu/edge/mobile/apple/intel, --json, -o) | python scripts/inference_optimizer.py model.onnx --analyze --recommend --target edge |

| dataset_pipeline_builder.py | Subcommands analyze, convert, split, augment-config, validate | python scripts/dataset_pipeline_builder.py validate --input assets/sample_coco_flawed |

Exit codes: 0 ok; 1 validate found errors (broken image references, malformed boxes);

2 bad input (missing path, unknown architecture or format) or a requested benchmark that

could not run. assets/sample_coco_valid/ validates clean (exit 0); assets/sample_coco_flawed/

has an orphan annotation and a 3-value bbox (exit 1).

Default recommendation: YOLO26 (Ultralytics' current family; COCO mAP50-95 yolo26n 40.9,

yolo26s 48.6, yolo26m 53.1 per docs.ultralytics.com/models/yolo26/, checked November 2026),

with YOLO11 kept for existing pipelines. The trainer's table cites its source per entry;

check the docs again before quoting figures, since families turn over yearly.

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

Scope & Limitations

This skill covers:

This skill does NOT cover:

Anti-Patterns

Benchmarking Without the Runtime

Mistake: Reporting latency or speedup numbers from inference_optimizer.py when torch or onnxruntime is not installed.

Why it happens: The recommendations print either way, so the run looks complete.

Instead: Treat exit 2 from --benchmark as "no measurement". Install the runtime, benchmark on the target hardware, and quote only measured numbers.

Quantizing Without an Accuracy Check

Mistake: Shipping an INT8 model because it is 2-4x faster, without re-measuring mAP.

Why it happens: Speed is visible immediately; accuracy loss shows up later, on rare classes first.

Instead: Re-run validation on the held-out split after every precision change and accept the model only inside the agreed mAP budget.

Splitting After Augmenting

Mistake: Augmenting the whole dataset, then splitting into train/val/test.

Why it happens: It feels like one pipeline step.

Instead: Split first (stratified), keep val/test untouched, and apply augmentation online during training. Otherwise near-duplicates leak into evaluation and inflate mAP.

Files

| File | Purpose |

|------|---------|

| scripts/vision_model_trainer.py | Dataset analysis and training-config generation |

| scripts/inference_optimizer.py | Model analysis, benchmark and optimisation recommendations |

| scripts/dataset_pipeline_builder.py | Dataset analyze / convert / split / augment-config / validate |

| assets/sample_coco_valid/annotations.json | Sound COCO sample (validate exits 0) |

| assets/sample_coco_flawed/annotations.json | Flawed COCO sample (validate exits 1) |

| references/*.md | Workflows, command catalogs, architectures, optimisation and deployment detail |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.