Hygiene patterns for any OpenCV + dlib vision pipeline: camera index probing + macOS init quirks, warmup that verifies real frames, frame-skip policy for expensive inference.
96
93%
Does it follow best practices?
Impact
100%
1.36xAverage score across 6 eval scenarios
Passed
No known issues
Hard constraints for OpenCV + dlib CV pipelines on macOS.
camera-setup skill)cv2.namedWindow + cv2.imshow + cv2.waitKey(30) on every frame. Without this, USB cameras (DJI Osmo, Logitech) return dark frames silently.cv2.VideoCapture() before first real read. 0.5 s is NOT enough for USB webcams.frame.mean() > 30 before starting inference. Some cameras return 5–20 dark warmup frames.cap.set(FRAME_WIDTH/HEIGHT) on DJI Osmo. Resets digital zoom and exposure to defaults.frame.mean() < 10.system_profiler SPCameraDataType.frame-skip-policy skill)cv2.resize(frame, (0,0), fx=0.25, fy=0.25)).Full context in skills/camera-setup/SKILL.md and skills/frame-skip-policy/SKILL.md.