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

audiobooks

Skill4 starsChanged 21 days agoMITView on GitHub

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.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    AudiobookBay Downloader: Search and download audiobooks from AudiobookBay.

    line 13
  2. Very specific:

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

    line 17
  3. Distinctive:

    After download, organize to the appropriate library folder.

    line 99
  4. Very specific:

    Use uv as the Python package manager.

    line 106
  5. Very specific:

    Create temporary files in $WORKSPACE_PATH/temp/.

    line 107

≈ “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

Audiobook Manager

Core Capabilities

  1. Audiobook Organizer: Download missing covers, scan library, and embed metadata.
  2. AudiobookBay Downloader: Search and download audiobooks from AudiobookBay.

Configuration

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

# AudiobookBay credentials
AUDIOBOOKBAY_URL=https://audiobookbay.nl/
AUDIOBOOKBAY_USERNAME=your_username
AUDIOBOOKBAY_PASSWORD=your_password

# Library path
AUDIOBOOKS_PATH=/path/to/audiobooks

Library Information

  • Main Library: Configured via AUDIOBOOKS_PATH in .env
  • Structure: $AUDIOBOOKS_PATH/Author Name/Audiobook Title/

Reference

  • Core Code Snippets: scripts/core/
  • Utility Code Snippets: scripts/utils/
  • CLI Tool: scripts/cli/

Workflow: Identify & Fix Missing Covers

  1. Scan: List all audiobooks missing covers (cover.jpg, folder.jpg, embedded art).
  2. Search: Find cover art on Audible (start with audible.ca), Amazon, or Google Images.
  3. Download & Organize: Save as cover.jpg in the book's folder.
  4. Embed: Embed metadata and cover image into the audio files (.m4b, .mp3, etc.).

Usage Examples (CLI)

# Scan library for missing covers
uv run python skills/audiobooks/scripts/cli/cover_manager.py scan --report

# List missing covers
uv run python skills/audiobooks/scripts/cli/cover_manager.py list --by-author

# Process a specific book (download & embed)
uv run python skills/audiobooks/scripts/cli/cover_manager.py process -i <INDEX> -u "<IMAGE_URL>"

# Embed existing cover into files
uv run python skills/audiobooks/scripts/cli/cover_manager.py embed -c cover.jpg -a "$AUDIOBOOKS_PATH/Author/Title"

Python Module Structure

  • core/scanner.py: Library scanning logic.
  • core/embedder.py: Cover embedding (mutagen).
  • core/downloader.py: Cover downloading.
  • utils/image_handler.py: Image conversion.
  • utils/audio_handler.py: Audio file detection.

AudiobookBay Downloader

Reference

  • Code Snippets: scripts/audiobookbay/

Usage Example

from skills.audiobooks.scripts.audiobookbay.search import search, enrich_with_magnets
from skills.audiobooks.scripts.audiobookbay.client import AudiobookbayClient

# Simple search
results = search("Arifureta", max_pages=2)

# Get magnet links for all results
results = enrich_with_magnets(results)

# Print results
for result in results:
    print(result.title, result.magnet_link)

Important Notes for AudiobookBay

  • Download ebooks to $WORKSPACE_PATH/temp/audiobookbay_downloads/ initially.
  • After download, organize to the appropriate library folder.
  • Respect rate limits (1 request/2s).

General Notes

  • Use uv as the Python package manager.
  • Create temporary files in $WORKSPACE_PATH/temp/.
  • Handle errors gracefully (missing directories, network issues).
  • Backup original files before modifying metadata if requested.

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.