agentleFS
wittyreferencewittyreference/twilio-claude-plugin/skills/video/SKILL.md

video

Skill2 starsChanged 8 months agoMITView on GitHub

Twilio development skill: video

35 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use popups, co-marketing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CesarjoquinSkill

    popups

    When the user wants to create or optimize popups, modals, overlays, slide-ins, or banners for conversion purposes. Also use when the user mentions "exit intent," "popup conversions," "modal optimization," "lead capture popup," "email popup," "announcement banner," "overlay," "collect emails with a popup," "exit popup," "scroll trigger," "sticky bar," or "notification bar." Use this for any overlay or interrupt-style conversion element. For forms outside of popups, see cro. For general page conversion optimization, see cro.

    Also in 14 projects that use this

  • CesarjoquinSkill

    co-marketing

    When the user wants to find co-marketing partners, plan joint campaigns, or brainstorm partnership opportunities. Use when the user says 'co-marketing,' 'partner marketing,' 'joint campaign,' 'who should we partner with,' 'integration marketing,' 'cross-promotion,' 'collaborate with another company,' 'partnership ideas,' or 'co-brand.' For customer referral programs, see referrals. For launch-specific partnerships, see launch.

    Also in 14 projects that use this

  • ukunal91appSkill

    community-marketing

    Build and leverage online communities to drive product growth and brand loyalty. Use when the user wants to create a community strategy, grow a Discord or Slack community, manage a forum or subreddit, build brand advocates, increase word-of-mouth, drive community-led growth, engage users post-signup, or turn customers into evangelists. Trigger phrases: "build a community," "community strategy," "Discord community," "Slack community," "community-led growth," "brand advocates," "user community," "forum strategy," "community engagement," "grow our community," "ambassador program," "community flywheel.

    Also in 14 projects that use this

  • coreyhaines31Skill

    marketing-council

    When the user wants multiple expert perspectives on a marketing question — a simulated board of advisors staffed by legendary marketers (Seth Godin, David Ogilvy, Eugene Schwartz, April Dunford, Rory Sutherland, Alex Hormozi, Byron Sharp, and more). Also use when the user mentions 'marketing council,' 'board of advisors,' 'advisory board,' 'what would Seth Godin say,' 'what would Ogilvy think,' 'channel Hormozi,' 'get multiple perspectives,' 'debate this,' 'have the council review,' 'marketing mentors,' or asks how a famous marketer would approach their problem. The council gives each advisor's take through their documented frameworks, surfaces where they disagree, and synthesizes a recommendation. For executing the winning direction, hand off to positioning, offers, copywriting, ads, or the relevant skill.

    Also in 6 projects that use this

  • ScaleBrickSkill

    competitors

    Audit competitors using ScaleBrick's 3-surface framework (social, web/pages, SEO). Categorizes their pricing, features, and landing pages. Identifies gaps you can exploit, positioning angles no one is claiming, and specific moves you can make this week.

    Also in 12 projects that use this

  • roerohanSkill

    emails

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold outreach emails, see cold-email. For in-app onboarding, see onboarding.

    Also in 12 projects that use this

  • +6 more from Cesarjoquin

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 31 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create P2P, group-small, go, or audio-only rooms on accounts created after Oct 21, 2024 (error 53126.

    line 34
  2. Very specific:

    Use audioOnly: true — removed, error 53127

    line 36
  3. Very specific:

    Use largeRoom: true — requires special account enablement (error 53103 on standard accounts)

    line 37
  4. Distinctive:

    Use H.264 with simulcast — H.264 does not support simulcast encoding

    line 39
  5. Distinctive:

    Skip PSTN when: All participants have app/browser, video is required, simplicity preferred.

    line 89
  6. Distinctive:

    PSTN participants are audio-only: No video track. Handle in UI with avatar/audio indicator.

    line 136
  7. Distinctive:

    H.264 does NOT support simulcast: Use VP8 for multi-party rooms with 3+ participants.

    line 141
  8. Very specific:

    Read references/gotchas-and-edge-cases.md for full details, error codes, and code patterns.

    line 147

“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “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

name: video description: Twilio Video development guide. Use when building video applications, telehealth platforms, remote collaboration tools, or working with rooms, participants, recordings, and compositions.

Video Development Skill

Comprehensive decision-making guide for Twilio Video development. Load this skill when building video applications, telehealth platforms, or remote collaboration tools.

Validated: 2026-03-28 against account ACxx...xx with live API tests. All assertions backed by SID evidence in references/assertion-audit.md.

Scope

CAN

  • Group rooms with up to 50 participants (server-mediated via SFU)
  • Per-track recording (audio + video separately) in Matroska containers
  • Compositions: combine tracks into single MP4/WebM after room ends
  • Composition Hooks: automatic composition on every room end
  • Recording Rules: fine-grained include/exclude by participant, track kind, or track name
  • Real-time transcription with speaker attribution
  • PSTN dial-in/dial-out (audio-only participants, max 35)
  • Track Subscriptions API for observer/supervisor patterns
  • DataTrack for in-call messaging (reliable, ordered, max 64KB)
  • VP8 simulcast for bandwidth-adaptive multi-party
  • Network Quality API (levels 1-5 per participant)
  • Media region selection (us1, us2, ie1, de1, au1, br1, jp1, sg1, in1, gll)

CANNOT

  • Create P2P, group-small, go, or audio-only rooms on accounts created after Oct 21, 2024 (error 53126; legacy accounts retain access)
  • Set maxConcurrentPublishedTracks per room — value is account-level (170 on standard accounts), ignores per-room input
  • Use audioOnly: true — removed, error 53127
  • Use largeRoom: true — requires special account enablement (error 53103 on standard accounts)
  • Set maxParticipants to 0 for "unlimited" — 0 is rejected (error 53107), range is 1-50
  • Use H.264 with simulcast — H.264 does not support simulcast encoding
  • Compose during an in-progress room and get a successful result — API accepts the request but composition status ends as failed without completed recordings
  • Record in P2P/Go rooms — server-side recording requires Group rooms
  • Record DataTracks — only audio and video tracks are captured
  • Distinguish API-initiated participant removal from voluntary leave via disconnect error codes

Room Type Decision

Use group rooms. This is the only room type available to accounts created after October 21, 2024. Legacy types (peer-to-peer, group-small, go) return error 53126 on newer accounts.

Room TypeStatusNotes
groupActiveFull features, HIPAA-eligible, up to 50 participants
group-smallLegacy (Oct 2024)Error 53126 on newer accounts
peer-to-peerLegacy (Oct 2024)Error 53126 on newer accounts
goLegacy (Oct 2024)Error 53126 on newer accounts

Quick Decision Reference

NeedUseWhy
Any video sessiongroup roomOnly HIPAA-eligible type
Recording for compliancerecordParticipantsOnConnect: trueAutomatic, per-track
Recording selective participantsRecording RulesFine-grained include/exclude
Combined video fileCompositionsPost-room MP4/WebM generation
Auto-compose every roomComposition HooksAutomatic composition on room end
Real-time captions/notesTranscriptionsLive speech-to-text with speaker attribution
Phone participantsPSTN dial-in/outBridges voice to video room
Long-term storageExternal Storage (S3)Twilio default is 24-hour retention

Decision Frameworks

Recording: ON vs OFF

Turn Recording ON when: Compliance requirements, training/playback, QA review, proctoring/monitoring. Keep Recording OFF when: Privacy-sensitive (therapy, legal where recording prohibited), no retention requirements.

Composition vs Raw Track Recordings

Use Compositions when: Need single MP4/WebM for playback, sharing with end users, archival, grid/speaker layout. Use Raw Tracks when: Per-participant separation, post-processing/editing, ML training data, proctoring (individual student video).

Transcription: Real-time vs None

Use Transcription when: Accessibility (deaf/HoH), note-taking, AI integration, healthcare documentation. Skip Transcription when: Privacy concerns, cost optimization, non-verbal content (screen share only).

PSTN Integration: Yes vs No

Add PSTN when: Participants may lack video devices, backup access needed, dial-out to experts. Skip PSTN when: All participants have app/browser, video is required, simplicity preferred.

Deep Validation (MANDATORY)

A 200 OK is NOT sufficient. Use validate_video_room MCP tool for automated validation.

ALWAYS CHECK (every room):
[ ] Room Resource - status = 'in-progress', type = 'group'
[ ] Participant count - expected participants connected
[ ] Published tracks - participants publishing audio/video
[ ] Subscribed tracks - participants receiving each other

WHEN USING RECORDING:    + recording resources exist, status progresses to 'completed'
WHEN USING TRANSCRIPTION: + transcription exists, status = 'started', sentences appearing
WHEN USING COMPOSITION:  + composition created after room ends, status = 'completed', media URL accessible

Room Defaults (Verified Live)

ParameterDefaultRangeNotes
typegroupgroup only (new accounts)Legacy types error 53126
maxParticipants501-500 rejected (53107); docs incorrectly say 0 = unlimited
maxParticipantDuration14400 (4h)600-86400599 rejected (53123)
maxConcurrentPublishedTracks170Account-levelPer-room input ignored
recordParticipantsOnConnectfalsebooleanRequires group room
videoCodecs["VP8","H264"]VP8, H264Empty array defaults to both
emptyRoomTimeout5 (min)1+Docs say 0; live API returns 5
unusedRoomTimeout5 (min)1+Docs say 0; live API returns 5

Gotchas

Room Lifecycle

  1. Room status is one-way: in-progress → completed → never back. Cannot reactivate a completed room.
  2. Empty room auto-close: Rooms close after emptyRoomTimeout (default 5 min). Set higher for waiting-room patterns.

Recording

  1. Recording retention is 24 hours without external storage (S3). Configure S3 for production.
  2. P2P/Go rooms cannot record: Server-side recording requires Group rooms.
  3. Recording Rules all filter: Cannot combine all with kind or publisher in the same rule — error 53120. Use separate rules. [Evidence: live test, error 53120]

Composition

  1. Composition on in-progress room: API accepts the request (returns CJ SID) but composition ends with failed status because no completed recordings exist yet. Wait for room to complete. [Evidence: CJ9b42c9ccea2fd92f8baca76679c773ef status=failed]
  2. Composition processing time: Batch-based, typically 3-5 minutes, up to 10+ during high load.

Participants & Tracks

  1. PSTN participants are audio-only: No video track. Handle in UI with avatar/audio indicator. Max 35 PSTN participants per room.
  2. Track publication limits (recommended): 60 audio, 60 video, 50 data publications per room. Per participant: 2 audio, 6 video, 1 data. Use clientTrackSwitchOffControl: 'auto' to manage bandwidth.
  3. Kick detection impossible: Participant removal via API produces NO error code; indistinguishable from voluntary leave. Implement custom signaling (DataTrack) if needed.

Codecs & Network

  1. H.264 does NOT support simulcast: Use VP8 for multi-party rooms with 3+ participants.
  2. Transcription partials are ephemeral: Partial results WILL change. Only persist final results.

Legacy Types

  1. Legacy room types (Oct 2024): peer-to-peer, group-small, go, audioOnly all return errors on accounts created after Oct 21, 2024. Only group is available.

Read references/gotchas-and-edge-cases.md for full details, error codes, and code patterns.

Reference Files

TopicFileWhen to read
Use cases & customer themesreferences/use-cases.mdBuilding for healthcare, proctoring, professional consultation
Supervised communicationreferences/supervised-communication.mdObserver patterns, invisible participants, Track Subscriptions API
SDK integrationreferences/sdk-integration.mdClient-side code (JS/iOS/Android), access tokens, DataTrack, screen share
Network & bandwidthreferences/network-and-bandwidth.mdSimulcast, bandwidth profiles, network quality, preflight, capture constraints
Recordings & compositionsreferences/recordings-and-compositions.mdRecording rules, compositions, composition hooks, external storage
Transcription & PSTNreferences/transcription-and-pstn.mdReal-time transcription, PSTN dial-in/out, recording math
Gotchas & edge casesreferences/gotchas-and-edge-cases.mdRoom lifecycle, reconnection, disconnect error codes, edge cases
Assertion auditreferences/assertion-audit.mdProvenance chain — every claim verified with SID evidence (42 assertions)

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.