From tts-tg-sync
One-time bootstrap for Kokoro TTS, Telegram bot, and BotFather setup. TRIGGERS - tts setup, kokoro install, telegram bot setup
How this skill is triggered — by the user, by Claude, or both
Slash command
/tts-tg-sync:setup [--check|--install][--check|--install]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Full-stack bootstrap: Kokoro TTS engine, Telegram bot, BotFather token, secrets, symlinks.
Full-stack bootstrap: Kokoro TTS engine, Telegram bot, BotFather token, secrets, symlinks.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
| Component | Required | Check |
|---|---|---|
| Bun | Yes | bun --version |
| mise | Yes | mise --version |
| uv | Yes | uv --version |
| Python 3.14 | Yes | uv run --python 3.14 python --version |
| Homebrew | Yes | brew --version |
/usr/bin/env bash << 'PREFLIGHT_EOF'
echo "=== TTS Telegram Sync Preflight ==="
for cmd in bun mise uv brew; do
if command -v "$cmd" &>/dev/null; then
echo " [OK] $cmd: $($cmd --version 2>&1 | head -1)"
else
echo " [FAIL] $cmd not found"
fi
done
PREFLIGHT_EOF
Run the Kokoro TTS engine installer:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/tts-tg-sync}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --install
This creates a Python 3.14 venv at ~/.local/share/kokoro/, installs MLX-Audio deps, downloads the Kokoro-82M-bf16 MLX model, and verifies MLX Metal acceleration.
Guide the user through Telegram BotFather setup:
/newbot (or verify existing bot with /mybots)mkdir -p ~/.claude/.secrets
echo "BOT_TOKEN=<token>" > ~/.claude/.secrets/ccterrybot-telegram
echo "CHAT_ID=<chat_id>" >> ~/.claude/.secrets/ccterrybot-telegram
chmod 600 ~/.claude/.secrets/ccterrybot-telegram
Use AskUserQuestion to ask if user has an existing bot token or needs to create one.
Create symlinks in ~/.local/bin/ for all TTS shell scripts:
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/tts-tg-sync}"
mkdir -p ~/.local/bin
for script in tts_kokoro.sh tts_kokoro_audition.sh tts_read_clipboard.sh tts_read_clipboard_wrapper.sh tts_speed_up.sh tts_speed_down.sh tts_speed_reset.sh; do
ln -sf "$PLUGIN_DIR/scripts/$script" ~/.local/bin/"$script"
done
# Test Kokoro health
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/tts-tg-sync}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --health
# Test bot connectivity
source ~/.claude/.secrets/ccterrybot-telegram
curl -s "https://api.telegram.org/bot${BOT_TOKEN}/getMe" | jq .ok
| Issue | Cause | Solution |
|---|---|---|
| uv not found | Not installed | brew install uv |
| Not Apple Silicon | Intel Mac or Linux | Requires M1+ Mac (MLX Metal) |
| Model download slow | Large first download | ~400MB, wait for completion |
| Token invalid | Typo or expired | Re-verify with /mybots in BotFather |
| Symlinks broken | Plugin path changed | Re-run symlink creation step |
After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.
npx claudepluginhub terrylica/cc-skills --plugin tts-tg-syncOne-time bootstrap for Kokoro TTS engine, Telegram bot, and BotFather setup. TRIGGERS - setup tts, install kokoro, botfather
Install Kokoro TTS engine on Apple Silicon. TRIGGERS - install kokoro, setup tts, kokoro install, tts setup.
Generate spoken audio from text using the local Kokoro TTS engine. Use when the user asks to "say" something, requests a voice message, or wants text converted to speech.