agentleFS
MacroMan5MacroMan5/autotrain-yolo/.claude/skills/active-learning/SKILL.md

active-learning

Skill8 starsChanged 8 months agoMITView on GitHub

Orchestrate the full active learning loop: train, analyze, push to CVAT, wait for review, pull, merge, retrain.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use the /cvat-push skill:

    line 32
  2. Distinctive:

    When the user says annotations are done:

    line 51
  3. Very specific:

    Run /review-dataset to update the dataset profile in training-plan.md.

    line 64
  4. Distinctive:

    NEVER skip the merge validation step — corrupted merges ruin models

    line 115
  5. Distinctive:

    ALWAYS compare metrics before and after new data is added

    line 116
  6. Very specific:

    Document every iteration in experiments/active_learning_log.md

    line 117
  7. Distinctive:

    If metrics regress after adding data, STOP and investigate before continuing

    line 118
  8. Distinctive:

    Wait for user confirmation at every human-in-the-loop step

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Active Learning Loop

Orchestrate the complete cycle of model improvement through human feedback: train -> analyze -> push uncertain images to CVAT -> wait for human review -> pull corrections -> merge -> retrain.

Workflow

1. Check Current State

Determine where we are in the loop:

Has baseline run?
├── No → Run: /experiment baseline
└── Yes → Continue

Has analysis been run?
├── No → Run: /analyze
└── Yes → Continue

Has uncertain_images.txt?
├── No → Run: yolo-analyze --model <best> --dataset <ds>
└── Yes → Continue

2. Push Uncertain Images to CVAT

Use the /cvat-push skill:

yolo-cvat push --from-analysis reports/uncertain_images.txt

3. Wait for Human Review

Tell the user:

Images have been pushed to CVAT for review.
Please annotate/correct the images in CVAT, then tell me when you're done.

CVAT tasks: [list task IDs and URLs]
Images to review: [count]
Priority: [false negatives first, then uncertain]

Do NOT proceed until the user confirms annotations are complete.

4. Pull Corrected Annotations

When the user says annotations are done:

yolo-cvat pull --task <id> --output datasets/corrected_batch_N
yolo-validate datasets/corrected_batch_N

5. Merge with Existing Dataset

yolo-merge --sources <existing_labels> <corrected_labels> --output <merged_labels>
yolo-validate <merged_dataset>

5b. Re-Profile After Merge

Run /review-dataset to update the dataset profile in training-plan.md. The profile may have changed (new class distribution, different object sizes). The experiment reasoning loop needs current data.

6. Retrain

Delegate training decisions to the refactored /experiment skill. The reasoning loop will use the updated dataset profile to decide what to try.

/experiment

7. Compare Before/After

Compare metrics from before and after the new data:

  • Overall mAP50-95 change
  • Per-class AP changes
  • Specifically check classes that had false negatives

8. Write Active Learning Report

Create experiments/active_learning_log.md:

## Active Learning Iteration N
- Date: YYYY-MM-DD
- Images added/corrected: X
- mAP50-95 before: X.XXXX
- mAP50-95 after: X.XXXX
- Delta: +/- X.XXXX
- Classes most improved: [list]
- Next action: [recommendation]

Decision Tree

First iteration ever?
├── Yes → Establish baseline first, then analyze
└── No → Check if previous iteration improved metrics

Metrics improved after new data?
├── Yes → Deploy updated model to CVAT (/cvat-deploy)
│         Continue to next iteration
└── No → Investigate:
         ├── Data quality issue? → Review annotations more carefully
         ├── Overfitting to corrections? → Increase augmentation
         └── Plateaued? → Suggest dataset expansion or architecture change

More than 3 iterations with <0.5% improvement?
├── Yes → Suggest stopping: diminishing returns
└── No → Continue loop

Guardrails

  • NEVER skip the merge validation step — corrupted merges ruin models
  • ALWAYS compare metrics before and after new data is added
  • Document every iteration in experiments/active_learning_log.md
  • If metrics regress after adding data, STOP and investigate before continuing
  • Maximum recommended batch: 200 images per iteration (annotator fatigue)
  • Wait for user confirmation at every human-in-the-loop step

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.