What problem does it solve? Modifying the SwarmXQ video generation pipeline without breaking its invariants is risky: stages have immutable ordering, Ollama responses need sanitization, AbortControllers leak listeners, and FFmpeg renders conflict with resident LLMs. This Skill encodes every contract, invariant, and failure mode so changes to video-orchestrator.ts, video-queue.ts, and the render backends stay correct. ## Core Features & Use Cases - Stage Contract Enforcement: Defines the immutable six-stage pipeline (intent_classification through finalizing) with per-stage model tiers, token limits, and error codes. - Invariant Auditing: Detects violations such as unsanitized DeepSeek reasoning output, missing modelsUsed recording, hardcoded ComfyUI poll limits, and FFmpeg renders without model eviction. - Queue & Resume Logic: Covers BullMQ idempotency via clientRequestId, the SINGLE-VIDEO lock, Redis fallback, and resumeJob artifact validation. - Use Case: When asked to add a new render backend or fix a storyboard failure, load this Skill to get the exact contracts, code patterns, and violation checklist before editing any pipeline file. ## Quick Start Ask the AI to review or modify a video pipeline file such as video-orchestrator.ts while enforcing the SwarmXQ stage contracts and invariants.