/sonarr:sonarrfrom sonarr
Manages TV shows in Sonarr: search, add, check existence, remove shows, and view quality profiles/root folders. Supports monitor options and search-on-add.
Ships in sonarr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Search and add TV shows to your Sonarr library with support for monitor options, quality profiles, and search-on-add.
This skill enables management of your Sonarr TV show library:
Operations include both read and write actions.
remove <tvdbId> --delete-files permanently deletes the show's downloaded
files from disk with no undo. Always confirm the exact show and whether the
user wants files deleted before running it — the script has no confirmation
prompt of its own.
Credentials are configured in the plugin settings (userConfig). The plugin setup script writes them to ~/.config/lab-sonarr/config.json, which the scripts parse automatically — no manual file editing. Variables used:
SONARR_URL="http://localhost:8989"
SONARR_API_KEY="<your_api_key>"
SONARR_DEFAULT_QUALITY_PROFILE="1" # Optional: defaults to 1 if not set
Configuration variables:
SONARR_URL: Your Sonarr server URL (no trailing slash)SONARR_API_KEY: API key from Sonarr (Settings → General → API Key)SONARR_DEFAULT_QUALITY_PROFILE: Quality profile ID (optional, defaults to 1)The search-json command returns raw JSON; all other commands return formatted text.
./scripts/sonarr.sh search "Breaking Bad"
./scripts/sonarr.sh search "The Office"
Output: Numbered list with TVDB IDs, titles, years, and TVDB links.
./scripts/sonarr.sh search-json "Breaking Bad"
./scripts/sonarr.sh search-json "The Office"
Output: Raw JSON search results (includes overview and additional metadata).
./scripts/sonarr.sh exists <tvdbId>
Output: Boolean indicating if show is in library.
./scripts/sonarr.sh add <tvdbId> # Searches immediately (default)
./scripts/sonarr.sh add <tvdbId> [profileId] # Use a specific quality profile
./scripts/sonarr.sh add <tvdbId> [profileId] --no-search # Add without searching
Limitation: add always uses the first root folder returned by
Sonarr's API, with no override — on a multi-root-folder instance (e.g.
separate anime/TV folders) this can silently place a show in the wrong
location. If root folder placement matters, verify with config first and
warn the user this can't be overridden via the script.
./scripts/sonarr.sh remove <tvdbId> # Keep files
./scripts/sonarr.sh remove <tvdbId> --delete-files # Delete files too
See ## Safety above — confirm file deletion with the user before running this
with --delete-files.
./scripts/sonarr.sh config
Output: Available root folders and quality profiles with their IDs.
./scripts/sonarr.sh calendar # Next 7 days
./scripts/sonarr.sh calendar 14 # Next 14 days
Output: Air date, show, season/episode, and episode title for each upcoming episode in the window, sorted chronologically.
When the user asks about TV shows:
search "Breaking Bad", present results with TVDB IDs and links, run exists <tvdbId>, then add <tvdbId> if absentsearch "The Office" to identify the TVDB ID, then exists <tvdbId>remove <tvdbId> with appropriate flagconfigAlways include TVDB links when presenting search results:
[Title (Year)](https://thetvdb.com/dereferrer/series/TVDB_ID)search-json<tvdbId>: TVDB ID of the show (required)profileId: Optional quality profile ID (defaults to first available profile)--no-search: Don't search for episodes after adding<tvdbId>: TVDB ID of the show (required)--delete-files: Also delete media files (default: keep files)config to discover yoursSONARR_DEFAULT_QUALITY_PROFILE from plugin settings (config.json) is used when adding shows (defaults to 1)scripts/sonarr.sh implements the commands above and nothing more. The
references/ docs below additionally cover a much larger raw-API surface
(queue, episode monitoring, manual release search/download, RSS sync,
history) via direct curl calls — those aren't wired into the script and
should be treated as advanced/unverified starting points, not a guaranteed
extension of the wrapper's behavior.For detailed local reference, see:
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)references/api-endpoints.md (opens in a new tab)references/quick-reference.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/load-config.sh (opens in a new tab)scripts/sonarr.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dinglebear-ai/yarr --plugin sonarrOther plugins' skills for the same job