Communitygithub.com

KylinMountain/life-skills

Specialized skill for discovering local smart TVs, projectors, and casting local video files or streams to the big screen via DLNA/UPnP. Triggers when the user asks to cast a video to TV/projector or mentions "投屏", "放电视上", "大屏播放".

life-skills 是什么?

life-skills is a Claude Code agent skill that specialized skill for discovering local smart TVs, projectors, and casting local video files or streams to the big screen via DLNA/UPnP. Triggers when the user asks to cast a video to TV/projector or mentions "投屏", "放电视上", "大屏播放".

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/KylinMountain/life-skills/tree/HEAD/skills/media-cast

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Media Cast Skill

Enables the AI agent to discover smart TVs and projectors on the local Wi-Fi network and cast downloaded or local videos directly to the big screen.


Tooling

Backed by the standalone CLI tool tv-cast (located in ~/.local/bin/tv-cast):

  • Protocol: Standard DLNA / UPnP AVTransport (supported by Xiaomi, Hisense, TCL, Sony, Dangbei, Xgimi, Apple TV with DLNA, etc.).
  • Streaming: Lightweight background HTTP streaming server with HTTP 206 Range support (enables smooth buffering, seeking, and timeline control on the TV).

Workflows

1. Discover Available Screens

When the user asks what TVs or projectors are available:

tv-cast -l --json

Present the found devices (Name, Manufacturer, IP).

2. Cast a Video

When the user says "cast the downloaded video" or "cast to TV":

  1. Check the target video file path (e.g. in ~/Downloads).
  2. Run casting command:
    tv-cast "<video file path>"
    # Or specify device if multiple devices exist:
    tv-cast "<video file path>" -d "<device name or IP>"
    
  3. Report success: video title, target TV name, and reminder of playback control commands.

3. Playback Controls

  • Pause: tv-cast --pause
  • Resume: tv-cast --resume
  • Stop: tv-cast --stop
  • Status & Progress: tv-cast --status

相关技能