plex

Work with Plex Media Server via Plex HTTP API. Use when you need to verify Plex connectivity, list libraries, search movies/series, check recently added items, inspect active sessions, read metadata, get the user's watchlist, or trigger library refresh.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "plex" with this command: npx skills add vinitu/plex-skill/vinitu-plex-skill-plex

Plex Skill

Overview

  • Manages a Plex Media Server through its HTTP API.
  • Credentials stored in .env file next to this SKILL.md. Start from .env.example; the CLI auto-loads and validates the final .env.
  • Main helper script: scripts/plex_cli.py (Python 3).
  • Dependency: plexapi package required for watchlist command (pip3 install plexapi).

Quick Start

  1. Credentials: create .env next to this SKILL.md from .env.example, then fill in your real Plex URL and token. The CLI auto-loads .env, but CLI flags and existing shell env vars override it.
  2. Run:
    cp ~/.agents/skills/plex/.env.example ~/.agents/skills/plex/.env
    # edit ~/.agents/skills/plex/.env and replace the placeholder values
    python3 ~/.agents/skills/plex/scripts/plex_cli.py ping
    python3 ~/.agents/skills/plex/scripts/plex_cli.py libraries
    

Section IDs are server-specific. Use python3 ~/.agents/skills/plex/scripts/plex_cli.py libraries to discover them on the target server.

What This Skill Can Do

  1. Verify Plex connection and auth:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py ping
    
  2. List Plex libraries:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py libraries
    
  3. Search media by title:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py search --query "Alien" --limit 20
    
  4. Show recently added items:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py recently-added --limit 10
    python3 ~/.agents/skills/plex/scripts/plex_cli.py recently-added --section-id SECTION_ID --limit 10
    
  5. Show active playback sessions:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py sessions
    
  6. Get metadata by ratingKey:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py metadata --rating-key 12345
    
  7. Trigger library refresh (scan) — normally not needed, Plex scans automatically:
    python3 ~/.agents/skills/plex/scripts/plex_cli.py refresh-section --section-id SECTION_ID
    
  8. Get user's Plex Watchlist (from plex.tv cloud, not local server):
    python3 ~/.agents/skills/plex/scripts/plex_cli.py watchlist
    python3 ~/.agents/skills/plex/scripts/plex_cli.py watchlist --filter movie
    python3 ~/.agents/skills/plex/scripts/plex_cli.py watchlist --filter show
    python3 ~/.agents/skills/plex/scripts/plex_cli.py watchlist --sort titleSort:asc
    

Watchlist

The watchlist lives on plex.tv (cloud), not on the local Plex server. The watchlist command uses python-plexapi to fetch it.

Important notes

  • Requires: pip3 install plexapi (already installed).
  • The local Plex server API does NOT have a watchlist endpoint — it only exists on plex.tv.
  • Returns metadata from Plex's online database (title, year, guid, type). These are NOT local library items.
  • To match watchlist items against the local library, search by title/year using the search command.

Filter options

  • --filter movie — only movies
  • --filter show — only TV shows
  • No filter — returns all items (movies + shows)

Sort options (format: field:dir)

SortDescription
watchlistedAt:descMost recently added to watchlist first (default)
watchlistedAt:ascOldest watchlist additions first
titleSort:ascAlphabetical A→Z
titleSort:descAlphabetical Z→A
originallyAvailableAt:descNewest releases first
rating:descHighest rated first

Workflow: Download all watchlist movies

  1. Get watchlist: plex_cli.py watchlist --filter movie
  2. For each item, search RuTracker (see rutracker skill)
  3. Send .torrent to NAS (see synology-download-station skill)
  4. Plex picks up new files automatically after download

Operational Notes

  • Default output is JSON for easy processing.
  • Invalid or incomplete config also returns JSON errors, not Python tracebacks.
  • Library refresh happens automatically — only use refresh-section if the user explicitly asks.
  • Never print or commit real PLEX_TOKEN.
  • Summarize results naturally — don't dump raw JSON to the user.

References

  • references/api-cheatsheet.md for endpoint and command mapping.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

plex

No summary provided by upstream source.

Repository SourceNeeds Review
General

macos-reminders

No summary provided by upstream source.

Repository SourceNeeds Review
General

问专家 - Playwriter模式

# 问专家技能 - 使用 Playwriter 控制已登录的浏览器

Archived SourceRecently Updated
General

ai-image-generator

AI 图片与视频异步生成技能,调用 AI Artist API 根据文本提示词生成图片或视频,自动轮询直到任务完成。 ⚠️ 使用前必须设置环境变量 AI_ARTIST_TOKEN 为你自己的 API Key! 获取 API Key:访问 https://staging.kocgo.vip/index 注册登录后创建。 支持图片模型:SEEDREAM5_0(默认高质量图片)、NANO_BANANA_2(轻量快速)。 支持视频模型:SEEDANCE_1_5_PRO(文生视频,支持音频)、SORA2(文生视频或首尾帧图生视频,支持 firstImageUrl/lastImageUrl)。 触发场景: - 用户要求生成图片,如"生成一匹狼"、"画一只猫"、"风景画"、"帮我画"等。 - 用户要求生成视频,如"生成视频"、"用 SORA2 生成"、"文生视频"、"图生视频"、"生成一段...的视频"等。 - 用户指定模型:SEEDREAM5_0、NANO_BANANA_2、SEEDANCE_1_5_PRO、SORA2。

Archived SourceRecently Updated