/install castreader-openclaw-skill
CastReader — Read Any Web Page Aloud
Setup (once per session)
cd \x3Cskill-directory> && npm install --silent 2>/dev/null
How to find target (chatId)
User messages look like: [Telegram username id:8716240840 ...]
The number after id: is the target. You MUST use this number in every message tool call.
Example: target is "8716240840".
When user sends a URL, follow these steps:
Step 1: Extract article
node scripts/read-url.js "\x3Curl>" 0
Returns: { title, language, totalParagraphs, totalCharacters, paragraphs[] }
Step 2: Show info + ask user to choose
Reply with this text:
📖 {title}
🌐 {language} · 📝 {totalParagraphs} paragraphs · 📊 {totalCharacters} chars
📋 Summary:
{write 2-3 sentence summary from paragraphs}
Reply a number to choose:
1️⃣ Listen to full article (~{totalCharacters} chars, ~{Math.ceil(totalCharacters / 200)} sec to generate)
2️⃣ Listen to summary only (~{summary_char_count} chars, ~{Math.ceil(summary_char_count / 200)} sec to generate)
STOP. Wait for user to reply 1 or 2.
Step 3a: User chose 1 (full article)
Reply: 🎙️ Generating full audio (~{totalCharacters} chars, ~{Math.ceil(totalCharacters / 200)} seconds)...
node scripts/read-url.js "\x3Curl>" all
Then send the audio file using the message tool:
{"action":"send", "target":"\x3CchatId>", "channel":"telegram", "filePath":"\x3CaudioFile>", "caption":"🔊 {title}"}
Reply: ✅ Done!
Step 3b: User chose 2 (summary only)
Reply: 🎙️ Generating summary audio...
Save the SAME summary text you showed in Step 2 to a file and generate:
echo "\x3Csummary text>" > /tmp/castreader-summary.txt
node scripts/generate-text.js /tmp/castreader-summary.txt \x3Clanguage>
Then send the audio file using the message tool:
{"action":"send", "target":"\x3CchatId>", "channel":"telegram", "filePath":"/tmp/castreader-summary.mp3", "caption":"📋 Summary: {title}"}
Reply: ✅ Done!
Rules
- ALWAYS extract first (index=0), show info, wait for user choice. Never skip.
- ALWAYS send audio files using the
messagetool withtarget(numeric chatId) andchannel("telegram"). Never just print the file path. - Do NOT use built-in TTS tools. ONLY use
read-url.jsandgenerate-text.js. - Do NOT use web_fetch. ONLY use
read-url.js.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install castreader-openclaw-skill - After installation, invoke the skill by name or use
/castreader-openclaw-skill - Provide required inputs per the skill's parameter spec and get structured output
What is Castreader Openclaw Skill?
Read any web page aloud with natural AI voices. Extract article text from any URL and convert it to audio (MP3). Use when the user wants to: listen to a webp... It is an AI Agent Skill for Claude Code / OpenClaw, with 410 downloads so far.
How do I install Castreader Openclaw Skill?
Run "/install castreader-openclaw-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Castreader Openclaw Skill free?
Yes, Castreader Openclaw Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Castreader Openclaw Skill support?
Castreader Openclaw Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).
Who created Castreader Openclaw Skill?
It is built and maintained by vinxu (@vinxu); the current version is v2.1.1.