sonarr
Skill81 starsChanged 8 months agoMITView on GitHub
This skill should be used when managing TV shows in Sonarr. Use when the user asks to "add a TV show", "search Sonarr", "find a series", "add to Sonarr", "remove a show", "check if show exists", "Sonarr library", "TVDB lookup", or mentions TV show management or Sonarr operations.
- Reads credentials
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- bytestashSkill
- gh-address-commentsSkill
- homelab-healthSkill
- homelab-setupSkill
- linkdingSkill
- memosSkill
- notebooklmSkill
- paperless-ngxSkill
- plexSkill
- prowlarrSkill
- qbittorrentSkill
- radarrSkill
- radicaleSkill
- sabnzbdSkill
- tailscaleSkill
- tautulliSkill
- zfsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 12 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Search and add TV shows to your Sonarr library with support for monitor options, quality profiles, and search-on-add.
- Distinctive: line 23
Search for TV shows by name
- Distinctive: line 24
Add shows to your library with configurable options
- Distinctive: line 25
Check if shows already exist
- Distinctive: line 26
Remove shows (with optional file deletion)
- Very specific: line 33
Add credentials to .env file: ~/.claude-homelab/.env
- Distinctive: line 48
All commands return JSON output.
- Distinctive: line 81
Important: Always ask the user if they want to delete files when removing!
- Distinctive: line 93
When the user asks about TV shows:
- Distinctive: line 102
Always include TVDB links when presenting search results:
- Distinctive: line 109
Search for the show
- Distinctive: line 112
Add show (searches for episodes by default)
- Distinctive: line 128
All data operations return JSON
- Very specific: line 146
CRITICAL: When invoking scripts from this skill via the zsh-tool, ALWAYS use pty: true.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sonarr TV Show Management Skill
⚠️ MANDATORY SKILL INVOCATION ⚠️
YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:
- "add a TV show", "search Sonarr", "find a series", "add to Sonarr"
- "remove a show", "delete show", "check if show exists"
- "Sonarr library", "TV show management", "add show"
- Any mention of Sonarr or managing TV shows
Failure to invoke this skill when triggers occur violates your operational requirements.
Search and add TV shows to your Sonarr library with support for monitor options, quality profiles, and search-on-add.
Purpose
This skill enables management of your Sonarr TV show library:
- Search for TV shows by name
- Add shows to your library with configurable options
- Check if shows already exist
- Remove shows (with optional file deletion)
- View quality profiles and root folders
Operations include both read and write actions. Always confirm before removing shows with file deletion.
Setup
Add credentials to .env file: ~/.claude-homelab/.env
SONARR_URL="http://localhost:8989"
SONARR_API_KEY="<your_api_key>"
SONARR_DEFAULT_QUALITY_PROFILE="1" # Optional: defaults to 1 if not setConfiguration 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)
Commands
All commands return JSON output.
Search for Shows
bash scripts/sonarr.sh search "Breaking Bad"
bash scripts/sonarr.sh search "The Office"Output: Numbered list with TVDB IDs, titles, years, and overview.
Check if Show Exists
bash scripts/sonarr.sh exists <tvdbId>Output: Boolean indicating if show is in library.
Add a Show
bash scripts/sonarr.sh add <tvdbId> # Searches immediately (default)
bash scripts/sonarr.sh add <tvdbId> --no-search # Add without searchingRemove a Show
bash scripts/sonarr.sh remove <tvdbId> # Keep files
bash scripts/sonarr.sh remove <tvdbId> --delete-files # Delete files tooImportant: Always ask the user if they want to delete files when removing!
Get Configuration
bash scripts/sonarr.sh configOutput: Available root folders and quality profiles with their IDs.
Workflow
When the user asks about TV shows:
- "Add Breaking Bad to Sonarr" → Run
search "Breaking Bad", present results with TVDB links, thenadd <tvdbId> - "Is The Office in my library?" → Run
exists <tvdbId> - "Remove Game of Thrones" → Ask about file deletion, then run
remove <tvdbId>with appropriate flag - "What quality profiles do I have?" → Run
config
Presenting Search Results
Always include TVDB links when presenting search results:
- Format:
[Title (Year)](https://thetvdb.com/series/SLUG) - Show numbered list for user selection
- Include year and brief overview
Adding Shows
- Search for the show
- Present results with TVDB links
- User picks a number
- Add show (searches for episodes by default)
Parameters
add command
<tvdbId>: TVDB ID of the show (required)--no-search: Don't search for episodes after adding
remove command
<tvdbId>: TVDB ID of the show (required)--delete-files: Also delete media files (default: keep files)
Notes
- Requires network access to your Sonarr server
- Uses Sonarr API v3
- All data operations return JSON
- Quality profile IDs vary by installation — use
configto discover yours - The
SONARR_DEFAULT_QUALITY_PROFILEfrom.envis used when adding shows (defaults to 1)
Reference
- Sonarr API Documentation
- TVDB — TV show database
For detailed local reference, see:
- API Endpoints - Complete endpoint reference with parameters
- Quick Reference - Common operations with copy-paste examples
- Troubleshooting - Authentication, connection, and error solutions
🔧 Agent Tool Usage Requirements
CRITICAL: When invoking scripts from this skill via the zsh-tool, ALWAYS use pty: true.
Without PTY mode, command output will not be visible even though commands execute successfully.
Correct invocation pattern:
<invoke name="mcp__plugin_zsh-tool_zsh-tool__zsh">
<parameter name="command">./skills/SKILL_NAME/scripts/SCRIPT.sh [args]</parameter>
<parameter name="pty">true</parameter>
</invoke>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

