Interacts with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Includes Python scripts for common operations.
Ships in audiobook-skills. 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.
All settings are loaded from the .env file in the workspace root.
AUDIOBOOKSHELF_HOST=http://localhost/audiobookshelf
AUDIOBOOKSHELF_USERNAME=your_username
AUDIOBOOKSHELF_PASSWORD=your_password
scripts/| Script | Purpose |
|---|---|
api_client.py | Common client setup patterns (async and sync) |
list_libraries.py | List all libraries from the server |
get_library_items.py | Get books with filtering by author/series |
dump_library_to_json.py | Export all books from a library to JSON |
search_authors.py | Search and manage authors |
update_book_metadata.py | Update book metadata via PATCH API |
update_audio_metadata.py | Update local audio file metadata using mutagen |
scan_libraries.py | Trigger library rescans |
scan_audiobook_directory.py | Scan local directories for audiobook info |
from aioaudiobookshelf import SessionConfiguration, get_admin_client_by_token
async with aiohttp.ClientSession() as session:
session_config = SessionConfiguration(session=session, url=SERVER_URL, token=API_KEY)
abs_client = await get_admin_client_by_token(session_config=session_config)
libraries = await abs_client.get_all_libraries()
headers = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
response = requests.patch(url, headers=headers, json=payload, timeout=10)
from mutagen.mp4 import MP4
audio = MP4(file_path)
audio.tags['\xa9ART'] = [author]
audio.save()
scripts/ for reusable patterns before creating new scriptsapi_client.py as starting point for new API scriptsupdate_audio_metadata.py patterns for local file metadata updates$WORKSPACE_PATH/temp/scripts/api_client.py (opens in a new tab)scripts/dump_library_to_json.py (opens in a new tab)scripts/get_author_metadata.py (opens in a new tab)scripts/get_library_items.py (opens in a new tab)scripts/list_author_books.py (opens in a new tab)scripts/list_libraries.py (opens in a new tab)scripts/scan_audiobook_directory.py (opens in a new tab)scripts/scan_libraries.py (opens in a new tab)scripts/search_authors.py (opens in a new tab)scripts/update_audio_metadata.py (opens in a new tab)scripts/update_author_photos.py (opens in a new tab)scripts/update_book_metadata.py (opens in a new tab)scripts/update_series_metadata.py (opens in a new tab)scripts/verify_series_metadata.py (opens in a new tab)skill.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
/audiobook-skills:audiobookshelffrom audiobook-skills
npx claudepluginhub hevangel/media-agent-skills --plugin audiobook-skills