audiobookshelf
Skill4 starsChanged 21 days agoMITView on GitHub
Interact with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Use when working with Audiobookshelf server instances.
- Reads credentials
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audiobooksSkill
- copilot-sdkSkill
- ebookSkill
- imdbSkill
- internetarchiveSkill
- jellyfinSkill
- kavitaSkill
- libgenSkill
- nyaaSkill
- plexSkill
- qbittorrentSkill
- tvdbSkill
- ytsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
All settings are loaded from the .env file in the workspace root.
- Very specific: line 75
Use api_client.py as starting point for new API scripts
- Very specific: line 76
Use update_audio_metadata.py patterns for local file metadata updates
- Very specific: line 77
Put generated scripts under $WORKSPACE_PATH/temp/
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Audiobookshelf API
Configuration
All settings are loaded from the .env file in the workspace root.
AUDIOBOOKSHELF_HOST=http://localhost/audiobookshelf
AUDIOBOOKSHELF_USERNAME=your_username
AUDIOBOOKSHELF_PASSWORD=your_passwordReference
- API documentation: https://api.audiobookshelf.org/
- Code Snippets:
scripts/
Python API Packages
- aioaudiobookshelf: Async Python library for Audiobookshelf
Available 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 |
Key Patterns
Async API with aioaudiobookshelf
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()Sync API with requests
headers = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
response = requests.patch(url, headers=headers, json=payload, timeout=10)Local Audio Metadata with mutagen
from mutagen.mp4 import MP4
audio = MP4(file_path)
audio.tags['\xa9ART'] = [author]
audio.save()Instructions
- Review code snippets in
scripts/for reusable patterns before creating new scripts - Use
api_client.pyas starting point for new API scripts - Use
update_audio_metadata.pypatterns for local file metadata updates - Put generated scripts under
$WORKSPACE_PATH/temp/
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.

