feat: add supervision AI coding skills for Claude Code and Cursor#2387
Open
greeshmab21 wants to merge 2 commits into
Open
feat: add supervision AI coding skills for Claude Code and Cursor#2387greeshmab21 wants to merge 2 commits into
greeshmab21 wants to merge 2 commits into
Conversation
Borda
reviewed
Jul 2, 2026
Borda
requested changes
Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an official AI coding skill for
supervision, so agents like Claude Code and Cursor can use the library correctly instead of guessing at API names. Closes #2244.The skill is organized as a top-level
SKILL.mdplus focused reference files underskills/references/, each targeting a spot where agents commonly hallucinate methods/params or pick the wrong tool.What's included
skills/SKILL.md— entry point. The standard detect + annotate pattern (model →sv.Detections→ annotate → save), plus a decision guide forsv.process_videovs.InferencePipeline: file-in/file-out with a simple callback vs. live/streaming sources with threaded inference. Links out to each reference file.skills/references/detection.md— buildingsv.Detectionsfrom ultralytics/inference/SAM/transformers, key attributes (xyxy,confidence,class_id,tracker_id,mask), and filtering via boolean-mask indexing (detections[detections.class_id == 0]) instead of the nonexistent.filter().skills/references/annotators.md— the full annotator class list with correct parameter names, the chaining/compose pattern for layering multiple annotators, and theBoundingBoxAnnotator→BoxAnnotatornaming mistake.skills/references/tracking.md—sv.ByteTracksetup, correct constructor param (track_activation_threshold, notconfidence_threshold), correct update method (update_with_detections, notupdate), and filtering bytracker_id.skills/references/video.md—sv.process_video'sshow_progressparam (theprogress=Truetypo silently no-ops),VideoInfoattributes includingfpsas a float (not int, to avoid timestamp drift), andVideoSinkfor manual frame-by-frame writing.skills/references/utils.md—PolygonZone.trigger()for zone membership,LineZonecounting within_count/out_count, andsv.Color/sv.Color.from_hex/sv.ColorPalette.DEFAULTfor styling.Why
Agents frequently invent plausible-but-wrong supervision API surface (
.filter(),BoundingBoxAnnotator,tracker.update(),progress=True) or reach for the wrong video-processing tool. This skill packages the correct patterns and the specific mistakes to avoid so agents get it right on the first try.Testing
Docs-only change (markdown skill files, no source code touched). No tests affected.