Tooluck logoTooluck
SKILL.md

audiobook

Agent skill frombenchflow-ai/skillsbench

Create audiobooks from web content or text files. Handles content fetching, text processing, and TTS conversion with automatic fallback between ElevenLabs, OpenAI TTS, and gTTS.

How to install audiobook

install audiobook
# install the skillsbench pack with the skills CLI
npx skills add benchflow-ai/skillsbench

# or add only this skill to Claude Code: copy the folder

tasks-extra/pg-essay-to-audiobook/environment/skills/audiobook/

# into

~/.claude/skills/audiobook/ (all projects)

.claude/skills/audiobook/ (one project)

tasks-extra/pg-essay-to-audiobook/environment/skills/audiobook/SKILL.md

Apache-2.0Full file
1# Audiobook Creation Guide
2
3Create audiobooks from web articles, essays, or text files. This skill covers the full pipeline: content fetching, text processing, and audio generation.
4
5## Quick Start
6
7```python
8import os
9
10# 1. Check which TTS API is available
11def get_tts_provider():
12 if os.environ.get("ELEVENLABS_API_KEY"):
13 return "elevenlabs"
14 elif os.environ.get("OPENAI_API_KEY"):
15 return "openai"
16 else:
17 return "gtts" # Free, no API key needed
18
19provider = get_tts_provider()
20print(f"Using TTS provider: {provider}")
21```
22
23## Step 1: Fetching Web Content
24
25### IMPORTANT: Verify fetched content is complete
26
27WebFetch and similar tools may return summaries instead of full text. Always verify:
28
29```python
30import subprocess
31
32def fetch_article_content(url):
33 """Fetch article content using curl for reliability."""
34 # Use curl to get raw HTML - more reliable than web fetch tools
35 result = subprocess.run(
36 ["curl", "-s", url],
37 capture_output=True,
38 text=True
39 )
40 html = result.stdout
41
42 # Strip HTML tags (basic approach)
43 import re
44 text = re.sub(r'<script[^>]*>.*?</script>', '', html, flags=re.DOTALL)
45 text = re.sub(r'<style[^>]*>.*?</style>', '', html, flags=re.DOTALL)
46 text = re.sub(r'<[^>]+>', ' ', text)
47 text = re.sub(r'\s+', ' ', text).strip()
48
49 return text
50```
51
52### Content verification checklist
53
54Before converting to audio, verify:
55…

Excerpt shown under the repository's Apache-2.0 license.

More skills in skillsbench

Keep exploring

Similar skill repositories

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates