Skip to content
Skills Library
Personal productivity · Tool integration

audiobookshelf

/audiobookshelf

Interact with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Use when working with Audiobookshelf server instances.

Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
16
Scripts
14
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 14 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/api_client.py, scripts/dump_library_to_json.py, scripts/get_author_metadata.py, scripts/get_library_items.py, scripts/list_author_books.py, scripts/list_libraries.py, scripts/scan_audiobook_directory.py, scripts/scan_libraries.py, scripts/search_authors.py, scripts/update_audio_metadata.py, scripts/update_author_photos.py, scripts/update_book_metadata.py, scripts/update_series_metadata.py,

What it does and when to use it

Interact with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Use when working with Audiobookshelf server instances.

Original author description

Interact with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Use when working with Audiobookshelf server instances.

How it works

  1. Configuration
  2. Reference
  3. Python API Packages
  4. Available Scripts
  5. Key Patterns
  6. Instructions
Original SKILL.md headings · 72 lines, 253 words
SKILL.md preview
---
name: audiobookshelf
description: "Interact with the Audiobookshelf API to manage audiobook libraries, update metadata, scan directories, and manage authors. Use when working with Audiobookshelf server instances."
license: MIT
compatibility: Requires Python 3.13+, uv, and aioaudiobookshelf
---

# Audiobookshelf API

## Configuration

All settings are loaded from the `.env` file in the workspace root.

```env
AUDIOBOOKSHELF_HOST=http://localhost/audiobookshelf
AUDIOBOOKSHELF_USERNAME=your_username
AUDIOBOOKSHELF_PASSWORD=your_password
```

## Reference

- API documentation: https://api.audiobookshelf.org/
- Code Snippets: `scripts/`

## Python API Packages

- [aioaudiobookshelf](https://pypi.org/project/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

```python
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

```python
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

```python
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.py` as starting point for new API scripts
- Use `update_audio_metadata.py` patterns for local file metadata updates
- Put generated scripts under `$WORKSPACE_PATH/temp/`
Files in this package (16)
  • SKILL.md 2 KB
  • skill.json 1 KB
  • scripts/api_client.py 6 KB
  • scripts/dump_library_to_json.py 5 KB
  • scripts/get_author_metadata.py 4 KB
  • scripts/get_library_items.py 8 KB
  • scripts/list_author_books.py 3 KB
  • scripts/list_libraries.py 1 KB
  • scripts/scan_audiobook_directory.py 11 KB
  • scripts/scan_libraries.py 7 KB
  • scripts/search_authors.py 10 KB
  • scripts/update_audio_metadata.py 11 KB
  • scripts/update_author_photos.py 4 KB
  • scripts/update_book_metadata.py 7 KB
  • scripts/update_series_metadata.py 3 KB
  • scripts/verify_series_metadata.py 2 KB

Versions

The database has no other skills named audiobookshelf.

Database snapshot: 13.11.2026 · package version a072ec9bd625 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100audiobooks
    Manage audiobooks: download missing covers, organize metadata, embed cover art, and download from AudiobookBay. Use when working with audiobook libraries, cover images, or AudiobookBay searches.
  • 100kavita
    Interact with the Kavita reading server API to manage ebook/manga libraries, list series, get metadata, and trigger library rescans. Use when working with Kavita servers.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.