agentleFS
hevangelhevangel/media-agent-skills/skills/tvdb/SKILL.md

tvdb

Skill4 starsChanged 20 days agoMITView on GitHub

Search and retrieve TV series, movie, and people info from TheTVDB. Get details by ID, list episodes, seasons, and artwork. Use when looking up TV/movie metadata from TheTVDB.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search and retrieve TV series, movie, episode, and people information from TheTVDB using the official tvdb_v4_official Python package (TVDB …

    line 10
  2. Distinctive:

    All methods return Python dicts parsed from TVDB API JSON responses

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

TheTVDB Lookup

Search and retrieve TV series, movie, episode, and people information from TheTVDB using the official tvdb_v4_official Python package (TVDB API v4).

Environment Variables

TVDB_API_KEY=your-api-key-here

Reference

Available Scripts

ScriptPurpose
tvdb_client.pyCore client: wraps tvdb_v4_official with env-based auth
search.pySearch TVDB by query (series, movies, people)
get_series.pyGet TV series info by TVDB ID
get_movie.pyGet movie info by TVDB ID
get_episodes.pyList episodes for a series
get_person.pyGet person info by TVDB ID

How It Works

  1. Authenticates using TVDB_API_KEY from .env via the tvdb_v4_official.TVDB client
  2. The client obtains a bearer token automatically (valid for 1 month)
  3. All methods return Python dicts parsed from TVDB API JSON responses

Search Parameters

ParameterTypeDescription
queryStringSearch term (series name, movie title, person)
typeStringFilter: series, movie, person
yearIntegerFilter by year
limitIntegerMax results to return

Usage

Search for a Series or Movie

from tvdb_client import get_client

tvdb = get_client()
results = tvdb.search("Breaking Bad", type="series")
for r in results:
    print(f"{r['name']} ({r.get('year', 'N/A')}) - ID: {r.get('tvdb_id')}")

Get Series Details by ID

from tvdb_client import get_client

tvdb = get_client()
series = tvdb.get_series(81189)  # Breaking Bad
print(series["name"], series.get("year"))

Get Extended Series Info (with seasons, characters, etc.)

from tvdb_client import get_client

tvdb = get_client()
series = tvdb.get_series_extended(81189)
for season in series.get("seasons", []):
    print(f"Season {season['number']} ({season['type']['name']})")

List Episodes for a Series

from tvdb_client import get_client

tvdb = get_client()
info = tvdb.get_series_episodes(81189, season_type="default", page=0)
for ep in info["episodes"]:
    print(f"S{ep['seasonNumber']:02d}E{ep['number']:02d} - {ep['name']}")

Get Movie Details

from tvdb_client import get_client

tvdb = get_client()
movie = tvdb.get_movie(31)  # Avengers
print(movie["name"])

# Extended info with characters
movie_ext = tvdb.get_movie_extended(31)
for c in movie_ext.get("characters", []):
    print(f"  {c.get('name')} - {c.get('personName')}")

Get Person Info

from tvdb_client import get_client

tvdb = get_client()
person = tvdb.get_person_extended(253463)
print(person["name"])

Get Next Airing for a Series

from tvdb_client import get_client

tvdb = get_client()
next_aired = tvdb.get_series_nextAired(81189)
print(next_aired)

Key API Methods

MethodDescription
search(query, **kwargs)Search across series, movies, people
get_series(id)Basic series record
get_series_extended(id)Full series with seasons, characters, artwork
get_series_episodes(id, season_type, page)Paginated episode list
get_series_nextAired(id)Next airing episode
get_series_artworks(id, lang)Series artwork
get_movie(id)Basic movie record
get_movie_extended(id)Full movie with characters, artwork
get_episode(id)Basic episode record
get_episode_extended(id)Full episode details
get_season(id)Basic season record
get_season_extended(id)Full season with episodes
get_person(id)Basic person record
get_person_extended(id)Full person with roles
get_all_genres()List all genres

CLI Usage

cd skills/tvdb/scripts
uv run python search.py "Breaking Bad"
uv run python search.py "Breaking Bad" --type series
uv run python search.py "Avengers" --type movie --year 2012
uv run python get_series.py 81189
uv run python get_series.py 81189 --extended
uv run python get_movie.py 31
uv run python get_movie.py 31 --extended
uv run python get_episodes.py 81189
uv run python get_episodes.py 81189 --season 1
uv run python get_person.py 253463

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.