Monolith CV — End-to-End Computer Vision Platform
Announce: "I'm using the monolith-cv skill to help with your CV workflow on the Monolith Platform."
CLI Setup
npm install -g monolith-cli # Linux (x64,arm64) / macOS (Intel,Apple Silicon)
monolith version
monolith auth status
If not authenticated: ask the user to run monolith auth login (interactive; agents cannot complete this).
Long-running commands accept --wait for inline polling. Without it, poll with monolith task status <id> --wait.
1. Solution Design
For any new CV need, clarify requirements first.
Interview
Ask explicitly; do not assume. Cover: scenario, categories (incl. confusers and edge cases), performance targets, data availability, deployment environment, application boundaries.
Create & Discover
monolith project create --name "<name>" --type detection|classification|video_classification
monolith project use <id>
monolith model list --kind pretrained # compatible base models
monolith workflow block list # available pipeline blocks
monolith model deploy --help # deployment backends + hardware
Document
Write solution to <cache_dir>/<org>/<project>/docs/solution.md (resolve cache_dir via monolith cache list --format json). For visual examples, use monolith dataset generate -l "<label>" -d "<prompt>" -n 1 (no --upload). See references/solution-design.md for the template and prompt writing guide.
2. Dataset Curation
monolith dataset upload /path/to/images/
monolith dataset items --page-size 5
monolith dataset label create --name "person" --color "#FF0000"
monolith dataset label list
monolith dataset inspect
For gaps: monolith dataset generate -l "person" -d "walking outdoors" -n 10 --upload
For raw data scanning, video frame extraction (ffmpeg), and inspection dimensions, see references/dataset-curation.md.
3. Pre-Annotation (Auto-Label)
Detection backends: sam3 (Lite) | rexomni (Pro) | doubao (Max) | trained
Classification backends: siglip (Lite) | qwen (Pro) | doubao_cls (Max) | trained
monolith dataset pre-annotate --backend rexomni --name "auto-label" --wait
monolith dataset pre-annotate --backend trained --model <id> --wait
Review visually. Never skip this step. In agents: monolith dataset serve --port 0 & (background).
See references/pre-annotation.md for the complete backend table, annotation modes, and iteration guide.
4. Model Training
monolith dataset split # 80/20, use --dry-run first
monolith model list --kind pretrained # pick a base model
monolith model train --base-model <id> --model-name "MyModel" --wait
monolith model test --test-model <id> --eval-snapshot-version <sid> --wait
monolith model get <id> # metrics
monolith model download <onnx-id> --kind onnx -o ./
See references/training.md for split flags, JSON config, metrics interpretation, and pipeline mapping.
5. Model Deployment & Prediction
TensorRT: --backend tensorrt --hardware NV_T4 --cuda-trt-version cuda11.4-trt8.4
TensorRT (4090): --backend tensorrt --hardware NV_4090 --cuda-trt-version cuda12.1-trt8.6
Ascend: --backend ascend --hardware Atlas_300V_PRO --ascend-cann-version acl-ascend710-CANN8.0RC2
monolith model deploy --backend tensorrt --model <id> --hardware NV_T4 --cuda-trt-version cuda11.4-trt8.4 --wait
monolith model predict ./test.jpg --model <id>
Max 100 files per predict call. See references/deployment.md for full hardware matrix and model download.
6. Workflow Orchestration
monolith workflow block list
monolith workflow block get <id>
monolith workflow create --name "<name>"
monolith workflow version create <id> -f definition.json --name "v1"
# Test: base64-encoded images
echo -n '{"images":["'$(base64 -w0 test.jpg)'"]}' > test-inputs.json
monolith workflow test <id> --inputs test-inputs.json --wait
# Package
monolith workflow pack <id> --include-models --wait
monolith workflow package download <id> <pkg-id> -o output.tar.gz
See references/workflow-blocks.md for block reference, definition format, and example workflows.
Known issue:
workflow version renamemay return HTTP 500. Workaround: create a new version.
7. Iteration & Feedback
Diagnostic hub for production issues. Enter any time after deployment.
Collect: what goes wrong? how often? specific conditions? failure images?
Gather: dataset inspect, model list --kind train, model get <id>
Diagnose: See references/diagnosis.md for full symptom→cause→action tables covering false negatives, false positives, misclassification, bbox drift, and workflow errors.
Priority order: data → annotations → model → workflow. Fix one thing at a time.



