Image Handling
This skill encodes images as base64 for inline embedding:
import base64
from pathlib import Path
def encode_image(path: str) -> str:
"""Encode image to base64 for API submission."""
data = Path(path).read_bytes()
return base64.b64encode(data).decode('utf-8')
def decode_response(b64_str: str) -> bytes:
"""Decode base64 response back to binary."""
return base64.b64decode(b64_str)
Base64 encoding is used exclusively for image data transfer, not for code obfuscation.
Podcast Dialogue — Aibrary
Transform any book into a two-person conversational podcast script. Host + Guest expert format, designed for 10-15 minutes of engaging dialogue.
Input
- Book title (required) — the book to discuss
- Author (optional, helps disambiguate)
- Focus areas (optional) — specific themes or chapters to emphasize
- Host personality (optional) — curious beginner, knowledgeable peer, etc. (default: curious and well-read)
- Guest persona (optional) — the expert's background (default: someone deeply familiar with the book's domain)
Workflow
Analyze the book: Identify:
- The author's central thesis and key arguments
- The most interesting, surprising, or controversial ideas
- Real-world examples and stories that make great conversation
- Common questions or misconceptions about the topic
Design the conversation dynamic:
- Host: Asks smart questions, makes connections to real life, represents the listener's perspective. Not a blank slate — has some knowledge but is genuinely curious.
- Guest: Deeply knowledgeable about the book and its domain. Shares insights with enthusiasm, uses stories and analogies, occasionally pushes back on assumptions.
Structure the dialogue:
- Opening banter (1 minute): Natural introduction, hook the listener with why this book matters
- Deep dives (8-10 minutes): 3-4 topic blocks, each starting with a host question and unfolding naturally
- Rapid fire (1-2 minutes): Quick takes on specific points from the book
- Key takeaway (1-2 minutes): Each speaker shares their #1 takeaway
- Closing (30 seconds): Where to learn more, sign-off
Write natural dialogue: The conversation should feel real:
- Include interruptions, agreement, and "hmm, that's interesting" moments
- Let the guest occasionally say "well, actually..." to add depth
- Use the host's follow-up questions to clarify complex ideas
- Include natural laughter markers
[laughs] and reactions
- Avoid making it feel scripted — include filler words sparingly for authenticity
Language: Detect the user's input language and generate the script in the same language.
Output Format
# 🎙️ [Book Title] — Dialogue Podcast Script
**Author**: [Author Name]
**Duration**: ~[X] minutes
**Format**: Host + Guest dialogue
**Host**: [Name/Persona description]
**Guest**: [Name/Persona description]
---
## [OPENING]
**Host**: [Natural opening — welcome, introduce the topic, create intrigue]
**Guest**: [Warm response, adds a hook or surprising fact about the book]
**Host**: [Follow-up that sets the stage for the first topic]
---
## [TOPIC 1]: [Title]
**Host**: [Question or observation that opens the topic]
**Guest**: [Detailed response with story/example from the book]
**Host**: [Follow-up question or real-world connection]
**Guest**: [Deeper exploration, practical implications]
**Host**: [Brief summary or transition to next topic]
---
## [TOPIC 2]: [Title]
**Host**: [New angle or question]
**Guest**: [Response with new insight]
...
---
## [RAPID FIRE]
**Host**: Okay, let's do some rapid fire. [Quick question 1]?
**Guest**: [Brief answer]
**Host**: [Quick question 2]?
**Guest**: [Brief answer]
...
---
## [KEY TAKEAWAYS]
**Host**: If someone takes one thing from this book, what should it be?
**Guest**: [Their #1 takeaway with brief explanation]
**Host**: For me, it's [their #1 takeaway]. [Brief explanation]
---
## [CLOSING]
**Host**: [Thank guest, tell listeners where to find the book/more info]
**Guest**: [Closing thought, encouragement to readers]
---
*Script generated by Aibrary — turning books into conversations worth having.*
Guidelines
- Target 2,500-3,000 words for a 10-15 minute dialogue
- The host should ask questions the listener would ask — be their voice
- Don't make the guest a monologue machine — keep exchanges short and dynamic
- Include at least one moment where the host challenges or pushes back on an idea
- Include at least one moment of genuine surprise or "I never thought of it that way"
- Natural conversation markers:
[laughs], [pause], [thinking]
- Each topic block should have 4-6 exchanges, not long speeches
- The rapid fire section adds energy and covers interesting details without deep diving
- If the book is unknown, say so honestly rather than fabricating dialogue about it
1---2name: aibrary-podcast-dialogue-23description: "[Aibrary] Generate a book dialogue podcast script with two speakers — a host and a guest expert — discussing the book's ideas in a natural conversation. Use when the user wants to create a conversational podcast about a book, turn a book into a two-person discussion, or generate a dialogue-style podcast script. Different from aibrary-podcast-summary (single narrator) and aibrary-podcast-ideatwin (debate format)."4metadata:5 source: https://skillmd.com/skills/knownasnaffy/aibrary-podcast-dialogue-26---78## Image Handling910This skill encodes images as base64 for inline embedding:1112```python13import base6414from pathlib import Path1516def encode_image(path: str) -> str:17 """Encode image to base64 for API submission."""18 data = Path(path).read_bytes()19 return base64.b64encode(data).decode('utf-8')2021def decode_response(b64_str: str) -> bytes:22 """Decode base64 response back to binary."""23 return base64.b64decode(b64_str)24```2526Base64 encoding is used exclusively for image data transfer, not for code obfuscation.2728# Podcast Dialogue — Aibrary2930Transform any book into a two-person conversational podcast script. Host + Guest expert format, designed for 10-15 minutes of engaging dialogue.3132## Input3334- **Book title** (required) — the book to discuss35- **Author** (optional, helps disambiguate)36- **Focus areas** (optional) — specific themes or chapters to emphasize37- **Host personality** (optional) — curious beginner, knowledgeable peer, etc. (default: curious and well-read)38- **Guest persona** (optional) — the expert's background (default: someone deeply familiar with the book's domain)3940## Workflow41421. **Analyze the book**: Identify:43 - The author's central thesis and key arguments44 - The most interesting, surprising, or controversial ideas45 - Real-world examples and stories that make great conversation46 - Common questions or misconceptions about the topic47482. **Design the conversation dynamic**:49 - **Host**: Asks smart questions, makes connections to real life, represents the listener's perspective. Not a blank slate — has some knowledge but is genuinely curious.50 - **Guest**: Deeply knowledgeable about the book and its domain. Shares insights with enthusiasm, uses stories and analogies, occasionally pushes back on assumptions.51523. **Structure the dialogue**:53 - **Opening banter** (1 minute): Natural introduction, hook the listener with why this book matters54 - **Deep dives** (8-10 minutes): 3-4 topic blocks, each starting with a host question and unfolding naturally55 - **Rapid fire** (1-2 minutes): Quick takes on specific points from the book56 - **Key takeaway** (1-2 minutes): Each speaker shares their #1 takeaway57 - **Closing** (30 seconds): Where to learn more, sign-off58594. **Write natural dialogue**: The conversation should feel real:60 - Include interruptions, agreement, and "hmm, that's interesting" moments61 - Let the guest occasionally say "well, actually..." to add depth62 - Use the host's follow-up questions to clarify complex ideas63 - Include natural laughter markers `[laughs]` and reactions64 - Avoid making it feel scripted — include filler words sparingly for authenticity65665. **Language**: Detect the user's input language and generate the script in the same language.6768## Output Format6970```71# 🎙️ [Book Title] — Dialogue Podcast Script7273**Author**: [Author Name]74**Duration**: ~[X] minutes75**Format**: Host + Guest dialogue7677**Host**: [Name/Persona description]78**Guest**: [Name/Persona description]7980---8182## [OPENING]8384**Host**: [Natural opening — welcome, introduce the topic, create intrigue]8586**Guest**: [Warm response, adds a hook or surprising fact about the book]8788**Host**: [Follow-up that sets the stage for the first topic]8990---9192## [TOPIC 1]: [Title]9394**Host**: [Question or observation that opens the topic]9596**Guest**: [Detailed response with story/example from the book]9798**Host**: [Follow-up question or real-world connection]99100**Guest**: [Deeper exploration, practical implications]101102**Host**: [Brief summary or transition to next topic]103104---105106## [TOPIC 2]: [Title]107108**Host**: [New angle or question]109110**Guest**: [Response with new insight]111112...113114---115116## [RAPID FIRE]117118**Host**: Okay, let's do some rapid fire. [Quick question 1]?119120**Guest**: [Brief answer]121122**Host**: [Quick question 2]?123124**Guest**: [Brief answer]125126...127128---129130## [KEY TAKEAWAYS]131132**Host**: If someone takes one thing from this book, what should it be?133134**Guest**: [Their #1 takeaway with brief explanation]135136**Host**: For me, it's [their #1 takeaway]. [Brief explanation]137138---139140## [CLOSING]141142**Host**: [Thank guest, tell listeners where to find the book/more info]143144**Guest**: [Closing thought, encouragement to readers]145146---147148*Script generated by Aibrary — turning books into conversations worth having.*149```150151## Guidelines152153- Target 2,500-3,000 words for a 10-15 minute dialogue154- The host should ask questions the listener would ask — be their voice155- Don't make the guest a monologue machine — keep exchanges short and dynamic156- Include at least one moment where the host challenges or pushes back on an idea157- Include at least one moment of genuine surprise or "I never thought of it that way"158- Natural conversation markers: `[laughs]`, `[pause]`, `[thinking]`159- Each topic block should have 4-6 exchanges, not long speeches160- The rapid fire section adds energy and covers interesting details without deep diving161- If the book is unknown, say so honestly rather than fabricating dialogue about it