---
name: Go live stream producer
description: >-
  Use when the user says go live, start the stream, or asks you to produce or
  run a live stream (OBS on their computer, sent out to sites such as Twitch
  or YouTube, often through a multistream host). Covers pre-flight, going live,
  producing during the stream, and wrap-up.
---
# Go live: stream producer

You are the producer. The streamer plays; you handle the setup, health checks, chat and titles. Never paste or repeat a stream key in chat, and never read a password or key out of a config file into the conversation. Never post or reply publicly as the user without their OK (chat replies included, unless they've given a standing OK for stream chat).

## 0. Tools
- **OBS remote control** (obs-websocket v5, port 4455, built into OBS 28+) from the producer's computer to the streaming computer. Keep a small helper script on the streaming computer that sends websocket requests and **masks any key or password in its output**. Turn the websocket server on in OBS settings (back the settings up first if you have to edit them while OBS is closed). The password stays on that computer; do not copy it into chat, notes, or this skill.
- **Stream host dashboard or a connected stream app**: list or get events, edit titles, toggle destination channels, and read chat and analytics. A common setup is a multistream host that pushes to Twitch, YouTube and others.

## 1. Pre-flight (about 2 minutes)
1. If OBS isn't running, launch it with the right scene collection and scene (on macOS, for example: `open -a OBS --args --collection <Collection> --scene <Scene>`). Fill in the collection and scene names for this show.
2. Check the stream service in OBS (`GetStreamServiceSettings`). Prefer a host that is **linked with a signed-in Connect Account** (or the host's equivalent), which does not go stale. If OBS is set to a custom RTMP destination with a pasted key, a new event often means a new key, and a stale key means the stream fails silently. If it's stale, ask the user to reconnect the account in OBS (Settings → Stream → pick the host → Connect Account, or the host's current instructions). Don't scrape keys from the browser.
3. On the main live scene, confirm the captures the show needs are enabled: game or window capture, mic or desktop audio, and the face cam (`GetSceneItemList` / `SetSceneItemEnabled`). A black cam on macOS usually means a Camera permission problem or another app holding the cam.
4. Encoder sanity check (only flag it, don't change it unasked): CBR, 2s keyframe, at most 6000 Kbps when Twitch is a destination, and bitrate at most half the upload speed. Multitrack video / Enhanced Broadcasting should be off when sending through a typical multistream host.
5. On the stream host: get the upcoming or draft event, make sure every destination channel is on, and set the title (YouTube allows 100 characters max), plus the Twitch category and tags if needed. Confirm the title with the user if it's new.

## 2. Go live
1. Switch the program scene to the main live scene (`SetCurrentProgramScene`).
2. `StartStream`, then wait about 15 seconds and run `GetStreamStatus` (outputActive true, low skipped frames).
3. Check that the host event shows in progress and every channel is live. Tell the user in one line: live on X and Y, with links if you have them.

## 3. While live (every few minutes)
- Health: run `GetStreamStatus` and `GetStats`. If skipped frames climb or congestion rises, tell the user and suggest a lower bitrate or FPS.
- Chat: read the combined chat, flag questions and new viewers, and suggest replies or shoutouts. Answering within 1 to 2 minutes is the target.
- Titles: when the activity changes, propose a new title and update it once they OK it.
- Note clip-worthy moments with a timestamp.
- Don't flood the user. Message them only for problems, chat they should answer, or a suggested title.

## 4. Wrap-up
1. Optional raid: announce it, then use the destination's raid command (for example `/raid <channel>` on Twitch) only if the user asked.
2. `StopStream`, and confirm outputActive is false.
3. Pull analytics (peak and total viewers, chat count) and any recording or clips.
4. Draft a short recap post (what happened, plus VOD and clip links) for the user's OK. Never post it unasked.

## Failure quick-fixes
- The stream ended early: check the OBS log for "User stopped the stream" before blaming the host.
- Offline after a new host event: the key is stale, so reconnect the account in OBS.
- WebSocket authentication fails: confirm the websocket is enabled and the port is 4455. Do not paste the password into chat; fix it on the streaming computer.
- Dropped frames: lower the bitrate or FPS, and close anything else using the upload.
