/domain-computer-vision
Use for computer-vision tasks on natural/general images: image classification, object detection (vehicles, faces, people, products), face recognition/verification, semantic/instance segmentation, keypoints/pose, OCR. Picks the best architecture per sub-task and the right
Claude Code
$ npx -y skills add mxslr/mlcraft --skill domain-computer-vision --agent claude-code
Codex
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a codex -y
Cursor
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a cursor -y
Gemini CLI
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a gemini-cli -y
GitHub Copilot
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a github-copilot -y
OpenCode
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a opencode -y
Windsurf
$ npx skills add mxslr/mlcraft --skill domain-computer-vision -a windsurf -y
SKILL.md
domain-computer-vision.SKILL.mdname: domain-computer-vision
description: "Use for computer-vision tasks on natural/general images: image classification, object detection (vehicles, faces, people, products), face recognition/verification, semantic/instance segmentation, keypoints/pose, OCR. Picks the best architecture per sub-task and the right transfer-learning + augmentation recipe. Triggers on 'detect objects/faces/vehicles', 'classify images', 'segment', 'bounding boxes', 'recognize faces', 'image dataset'."
Computer Vision - Method Selection
Pick by sub-task, then apply `training-optimization` + `rigorous-evaluation`. Prefer pretrained backbones; train from scratch only with very large data.
Decision table
| Sub-task | Recommended (strong default, then heavier option) | Notes | |---|---|---| | Image classification | **EfficientNet / ConvNeXt**, then ViT/Swin (needs more data) | ConvNeXt/EffNet are strong, data-efficient. Match input resolution to the backbone. | | Object detection | **YOLO (v8/11) / RT-DETR**, then DINO-DETR or Faster R-CNN | YOLO for speed/deploy; DETR-family for accuracy. Use mAP@IoU. | | Face detection | **RetinaFace / YOLO-face / MTCNN** | Detection ≠ recognition. | | Face recognition/verification | **ArcFace / CosFace embeddings** + similarity | Metric-learning, not softmax classification. Evaluate with verification (ROC/EER), gallery split by identity. | | Semantic segmentation | **U-Net / DeepLabv3+ / SegFormer** | Dice/IoU. Watch class imbalance. | | Instance segmentation | **Mask R-CNN / YOLO-seg** | | | Promptable / zero-shot seg | **SAM / SAM2** | Great for annotation & few-shot. | | Keypoints / pose | **HRNet / YOLO-pose / ViTPose** | | | OCR | **detector + recognizer (DBNet + CRNN) / TrOCR / PaddleOCR** | |
Cross-cutting CV practice
- **Transfer learning** from ImageNet; two-phase fine-tune; discriminative LR (see `training-optimization`).
- **Augmentation matched to the task**: flips only if label-invariant (a horizontally-flipped digit/letter is different!); mild rotation/scale/color; MixUp/CutMix help classification but can hurt localization and fine textures.
- **Resolution is a top accuracy lever** - small objects need higher resolution or tiling/patching; don't downsample away the signal.
- **Detection data**: verify box format (xywh vs xyxy, normalized?), anchor/scale sizing, and NMS thresholds.
- **Leakage**: split by source/scene/identity, not by frame - consecutive frames or same-identity images must not cross splits (`data-rigor-and-leakage`).
- **Explainability**: Grad-CAM for classifiers; overlay predicted boxes/masks for detection/segmentation.
- **Improve accuracy**: use `accuracy-improvement-loop`. For tiny objects in big images, consider tiling or weakly-supervised localization.
Read more
name: domain-computer-vision description: "Use for computer-vision tasks on natural/general images: image classification, object detection (vehicles, faces, people, products), face recognition/verification, semantic/instance segmentation, keypoints/pose, OCR. Picks the best architecture per sub-task and the right transfer-learning + augmentation recipe. Triggers on 'detect objects/faces/vehicles', 'classify images', 'segment', 'bounding boxes', 'recognize faces', 'image dataset'."
Computer Vision - Method Selection
Pick by sub-task, then apply `training-optimization` + `rigorous-evaluation`. Prefer pretrained backbones; train from scratch only with very large data.
Decision table
| Sub-task | Recommended (strong default, then heavier option) | Notes | |---|---|---| | Image classification | **EfficientNet / ConvNeXt**, then ViT/Swin (needs more data) | ConvNeXt/EffNet are strong, data-efficient. Match input resolution to the backbone. | | Object detection | **YOLO (v8/11) / RT-DETR**, then DINO-DETR or Faster R-CNN | YOLO for speed/deploy; DETR-family for accuracy. Use mAP@IoU. | | Face detection | **RetinaFace / YOLO-face / MTCNN** | Detection ≠ recognition. | | Face recognition/verification | **ArcFace / CosFace embeddings** + similarity | Metric-learning, not softmax classification. Evaluate with verification (ROC/EER), gallery split by identity. | | Semantic segmentation | **U-Net / DeepLabv3+ / SegFormer** | Dice/IoU. Watch class imbalance. | | Instance segmentation | **Mask R-CNN / YOLO-seg** | | | Promptable / zero-shot seg | **SAM / SAM2** | Great for annotation & few-shot. | | Keypoints / pose | **HRNet / YOLO-pose / ViTPose** | | | OCR | **detector + recognizer (DBNet + CRNN) / TrOCR / PaddleOCR** | |
Cross-cutting CV practice
- **Transfer learning** from ImageNet; two-phase fine-tune; discriminative LR (see `training-optimization`).
- **Augmentation matched to the task**: flips only if label-invariant (a horizontally-flipped digit/letter is different!); mild rotation/scale/color; MixUp/CutMix help classification but can hurt localization and fine textures.
- **Resolution is a top accuracy lever** - small objects need higher resolution or tiling/patching; don't downsample away the signal.
- **Detection data**: verify box format (xywh vs xyxy, normalized?), anchor/scale sizing, and NMS thresholds.
- **Leakage**: split by source/scene/identity, not by frame - consecutive frames or same-identity images must not cross splits (`data-rigor-and-leakage`).
- **Explainability**: Grad-CAM for classifiers; overlay predicted boxes/masks for detection/segmentation.
- **Improve accuracy**: use `accuracy-improvement-loop`. For tiny objects in big images, consider tiling or weakly-supervised localization.
Other skills on mlcraft.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about domain-computer-vision.
- Which coding agents can use domain-computer-vision?
- domain-computer-vision installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

