>- Build consistent characters, environments and props in Guaardvark's Cast Library and train LoRAs for them locally (reference photos → vision bible → sample plan → approved samples → training). Use when the user wants the same face or object across images, videos, a music video, or a Film Crew production, or asks to "train a LoRA".
npx skills add https://github.com/guaardvark/guaardvark --skill cast
Read setup first; training needs the lora_trainer plugin (CUDA, bf16) and an
installed train-ready base (Z-Image, SDXL or FLUX family). B=${GUAARDVARK_URL:-http://localhost:5000}.
curl -s -X POST $B/api/cast-library/subjects -H 'Content-Type: application/json' -d '{
"kind": "character", "name": "Mara", "description": "late 30s, short grey hair, freckles",
"trigger_word": "mara_v1", "voice_id": null
}'
kind is character, environment or prop. GET $B/api/cast-library lists subjects; the
numeric id is what generate_image and batch routes take as subject_ids.
curl -s -X POST $B/api/cast-library/subjects/$ID/upload-refs -F [email protected] -F [email protected]
Ask first whether the person consented; do not train on someone who has not.
POST $B/api/cast-library/subjects/$ID/bible/from-refs(the vision model writes the identity description that every prompt inherits).
POST .../$ID/plan then POST .../$ID/generate(cancel with .../generate/cancel). Review GET .../$ID/samples; view one with
GET .../samples/<sample_id>/image; drop bad ones with DELETE .../samples/<sample_id> or
POST .../samples/<sample_id>/regenerate.
POST .../$ID/samples/approve.POST $B/api/cast-library/subjects/$ID/train with optional{"training_settings": {...}}. A 409 already_training means wait; a
train_base_not_ready error names the base model to install first. Cancel: .../train/cancel.
Progress: GET $B/api/cast-library/subjects/$ID (status, base model, LoRA path when done).
generate_image with subject_ids=[ID]; batch image/video routes withsubject_ids; the Film Crew casts it; the music-video Director locks it per cut.
inspect_gpu for conflicts first.subject_ids is passed; the user does not needto type it.
data/.Take guaardvark/cast from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.