Export Plex music and movie libraries and create curated Plex playlists using server credentials loaded from .env. Uses TMP workspace outputs and never embeds tokens in skill files.
Use this skill to export Plex libraries and create/replace playlists through the Plex API.
Path aliases (portable install)
HERMES_AGENT_ROOT = repository root where this skill is installedHERMES_ENV = HERMES_AGENT_ROOT/.envHERMES_TMP = HERMES_AGENT_ROOT/TMP/plex-dj-playlistsCredential contract
HERMES_ENV (not hardcoded absolute paths).PLEX_BASE_URLPLEX_SERVER_TOKENPLEX_MACHINE_IDPLEX_PLAYLISTS_FILE for a local-only JSON file containing named artist lists for static playlist generationOutput location
HERMES_TMP.Private playlist data
skills/media/plex-dj-playlists/local/playlists.jsonskills/media/plex-dj-playlists/playlists.example.jsonMusic workflow
A) Static multi-playlist builder (artist list based)
python skills/media/plex-dj-playlists/scripts/plex_export_library.pyskills/media/plex-dj-playlists/local/playlists.json, or point PLEX_PLAYLISTS_FILE at another private JSON file.python skills/media/plex-dj-playlists/scripts/plex_make_playlists.py --tracks TMP/plex-dj-playlists/<export-file>.jsonB) Dynamic style-cue playlist builder (preferred for Plexamp voice requests)
python skills/media/plex-dj-playlists/scripts/plex_music_playlist.py --name "Chill Coding" --cues "chill coding focus instrumental lofi ambient"--limit 45 (playlist length)--max-per-artist 3 (artist diversity)--section-id <id> (override music library)--dry-run (score/preview without writing playlist)Movie workflow
python skills/media/plex-dj-playlists/scripts/plex_movie_playlist.pySelection guidance
plex_music_playlist.py.plex_make_playlists.py.plex_movie_playlist.py.Notes
type=movie.type=artist unless --section-id is provided.