تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

kosmi-dj

بواسطة rmasciarella

Coding Agents & IDEs
—لم يُقيَّم بعد
تقييمك

موجز

This skill should be used when the user asks to "play a video in Kosmi", "queue a video", "DJ in Kosmi", "start.

الوصف

ما الذي تفعله هذه المهارة

Automates a Kosmi watch party room by acting as a video DJ. Uses agent-browser to navigate the room UI, queue videos by URL, and loop playback continuously. Works by driving the browser directly, so no Kosmi API or developer access is needed.

Controls Kosmi through browser automation rather than an API, so it works without any official integration or developer access.

متى تستخدمها

  • Queuing YouTube videos in a Kosmi watch party without touching the browser
  • Running an auto-looping video playlist overnight for a virtual hangout
  • Joining a Kosmi room under a bot display name
  • Playing a specific video URL on demand during a watch session
  • Stopping or restarting the background DJ loop process

مثال على سير العمل

الإدخال

User asks: Play this video in my Kosmi room: https://youtube.com/watch?v=dQw4w9WgXcQ

الوكيل
  1. 1

    Loads environment variables including KOSMI_ROOM_URL from the .env file

  2. 2

    Runs kosmi-connect.sh to open the room and handles any login or nickname prompts

  3. 3

    Runs kosmi-play.sh with the provided video URL

  4. 4

    Opens the media modal, fills the URL input, and clicks Play

  5. 5

    Confirms playback started by checking for player UI elements in the accessibility snapshot

الإخراج

Video begins playing in the Kosmi room for all participants

المتطلبات

  • agent-browser CLI installed on PATH
  • Kosmi account
  • KOSMI_ROOM_URL environment variable
  • KOSMI_EMAIL and KOSMI_PASSWORD environment variables (if not using a persistent session)

التثبيت

clawhub install rmasciarella/kosmi-dj

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط