/ Diretório / Playground / media-library-organizer-skill
● Comunidade Innei ⚡ Instantâneo

media-library-organizer-skill

por Innei · Innei/media-library-organizer-skill

Preps media libraries for Jellyfin/Plex/Emby — cleans junk, merges scattered episodes, normalizes folder names, verifies completeness against TMDB.

A Claude Code skill (with standalone bash scripts) that systematically organizes movie / TV / anime libraries for media servers. Scans directories, removes junk (.DS_Store, SMB residuals, empties), merges duplicates by title+year+quality, consolidates scattered release-group folders, normalizes to Title (Year), and cross-references TMDB to flag missing episodes. Tiered safety: only genuinely-junk deletes run unattended — substantive changes wait for your approval.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

media-library-organizer-skill.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "media-library-organizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Innei/media-library-organizer-skill",
        "~/.claude/skills/media-library-organizer-skill"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "media-library-organizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Innei/media-library-organizer-skill",
        "~/.claude/skills/media-library-organizer-skill"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "media-library-organizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Innei/media-library-organizer-skill",
        "~/.claude/skills/media-library-organizer-skill"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "media-library-organizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Innei/media-library-organizer-skill",
        "~/.claude/skills/media-library-organizer-skill"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "media-library-organizer-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Innei/media-library-organizer-skill",
        "~/.claude/skills/media-library-organizer-skill"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "media-library-organizer-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Innei/media-library-organizer-skill",
          "~/.claude/skills/media-library-organizer-skill"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add media-library-organizer-skill -- git clone https://github.com/Innei/media-library-organizer-skill ~/.claude/skills/media-library-organizer-skill

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: media-library-organizer-skill

Prep a messy download library for Jellyfin

👤 Home media server users with a chaotic downloads folder ⏱ ~60 min intermediate

Quando usar: Before pointing Jellyfin at a folder full of release-group-named chaos.

Pré-requisitos
  • Skill installed — git clone https://github.com/Innei/media-library-organizer-skill ~/.claude/skills/media-library-organizer-skill
  • TMDB API key for completeness checks — themoviedb.org -> Settings -> API -> free key
Fluxo
  1. Scan and analyze
    Use media-library-organizer on /media/downloads. Scan-only — list junk, duplicates, scattered episodes.✓ Copiado
    → Report with 3 sections: junk / duplicates / scattered
  2. Auto-clean junk (safe tier)
    Proceed with junk cleanup (.DS_Store, SMB metadata, empty dirs).✓ Copiado
    → Small deletions, nothing risky
  3. Confirm and merge duplicates
    Now consolidate duplicates — I'll approve each.✓ Copiado
    → One-by-one approvals with title/year/quality shown
  4. Normalize folder names
    Rename to Title (Year) format — warn if anything is currently seeding.✓ Copiado
    → Seed warning surfaces before renames
  5. Verify via TMDB
    Cross-check episode counts against TMDB — list missing.✓ Copiado
    → Per-show missing-episode list

Resultado: Jellyfin/Plex recognizes everything; missing gaps are explicit.

Armadilhas
  • Rename breaks an active torrent seed — Skill warns; stop the torrent or hard-link before renaming
  • Merging different-quality versions loses the good one — Skill prioritizes higher quality — double-check before confirming
Combine com: filesystem

Consolidate an anime library with mixed release groups

👤 Anime collectors ⏱ ~45 min intermediate

Quando usar: Your anime library has 3 release groups per show across different folders.

Fluxo
  1. Scan
    Scan /anime for scattered-episode patterns across release groups.✓ Copiado
    → Per-show merge candidates
  2. Pick canonical version per show
    For each candidate, pick the highest-quality release group and merge others into it (or trash).✓ Copiado
    → Clean per-show folders

Resultado: One folder per show with consistent naming.

Combinações

Combine com outros MCPs para 10× de alavancagem

media-library-organizer-skill + filesystem

Edit NFO files or custom sidecars during the same session

While organizing, also add .nfo files for each movie with TMDB id.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
scan root path Start of any organize session 0 — local
clean_junk root path, safe_only=true First destructive pass 0
merge_duplicates duplicate pair list After duplicates approved 0
normalize_names root path After cleanup 0
verify_tmdb show paths, TMDB_API_KEY Completeness check TMDB free quota

Custo e limites

O que custa rodar

Cota de API
TMDB: free tier generous for home libraries
Tokens por chamada
Low — skill mostly orchestrates shell
Monetário
Free
Dica
Scan-only first; don't burn tokens on the full analysis until you've committed to cleanup

Segurança

Permissões, segredos, alcance

Escopos mínimos: Filesystem read/write on the library root only
Armazenamento de credenciais: TMDB key in env
Saída de dados: TMDB API for completeness checks (public metadata only)
Nunca conceda: Run as root on the media disk — use a user with write on just the library

Solução de problemas

Erros comuns e correções

Everything flagged as 'junk'

You pointed it at a non-media folder — confirm root

Verificar: ls /media/downloads
TMDB verify returns 401

TMDB_API_KEY missing or wrong

Verificar: curl https://api.themoviedb.org/3/movie/550?api_key=$TMDB_API_KEY
Jellyfin still doesn't detect after rename

Force library rescan; verify folder matches Jellyfin's expected naming

Alternativas

media-library-organizer-skill vs. outros

AlternativaQuando usarTroca
FileBotYou want a GUI with prebuilt rulesPaid, no Claude loop
tinyMediaManagerMetadata-focused rather than junk cleanupNo merge / scattered-episode handling

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills