/ 目录 / 演练场 / media-library-organizer-skill
● 社区 Innei ⚡ 即开即用

media-library-organizer-skill

作者 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.

为什么要用

核心特性

实时演示

实际使用效果

media-library-organizer-skill.replay ▶ 就绪
0/0

安装

选择你的客户端

~/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
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.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 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

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
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "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
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.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"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.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"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

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

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: media-library-organizer-skill

Prep a messy download library for Jellyfin

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

何时使用: Before pointing Jellyfin at a folder full of release-group-named chaos.

前置条件
  • 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
步骤
  1. Scan and analyze
    Use media-library-organizer on /media/downloads. Scan-only — list junk, duplicates, scattered episodes.✓ 已复制
    → Report with 3 sections: junk / duplicates / scattered
  2. Auto-clean junk (safe tier)
    Proceed with junk cleanup (.DS_Store, SMB metadata, empty dirs).✓ 已复制
    → Small deletions, nothing risky
  3. Confirm and merge duplicates
    Now consolidate duplicates — I'll approve each.✓ 已复制
    → One-by-one approvals with title/year/quality shown
  4. Normalize folder names
    Rename to Title (Year) format — warn if anything is currently seeding.✓ 已复制
    → Seed warning surfaces before renames
  5. Verify via TMDB
    Cross-check episode counts against TMDB — list missing.✓ 已复制
    → Per-show missing-episode list

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

注意事项
  • 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
搭配使用: filesystem

Consolidate an anime library with mixed release groups

👤 Anime collectors ⏱ ~45 min intermediate

何时使用: Your anime library has 3 release groups per show across different folders.

步骤
  1. Scan
    Scan /anime for scattered-episode patterns across release groups.✓ 已复制
    → 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).✓ 已复制
    → Clean per-show folders

结果: One folder per show with consistent naming.

组合

与其他 MCP 搭配,撬动十倍杠杆

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.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
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

成本与限制

运行它的成本

API 配额
TMDB: free tier generous for home libraries
每次调用 Token 数
Low — skill mostly orchestrates shell
费用
Free
提示
Scan-only first; don't burn tokens on the full analysis until you've committed to cleanup

安全

权限、密钥、影响范围

最小权限: Filesystem read/write on the library root only
凭据存储: TMDB key in env
数据出站: TMDB API for completeness checks (public metadata only)
切勿授予: Run as root on the media disk — use a user with write on just the library

故障排查

常见错误与修复

Everything flagged as 'junk'

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

验证: ls /media/downloads
TMDB verify returns 401

TMDB_API_KEY missing or wrong

验证: 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

替代方案

media-library-organizer-skill 对比其他方案

替代方案何时用它替代权衡
FileBotYou want a GUI with prebuilt rulesPaid, no Claude loop
tinyMediaManagerMetadata-focused rather than junk cleanupNo merge / scattered-episode handling

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills