settings-and-tuning
Configure TTS voices, speed, timeouts, queue depth, and bot settings. TRIGGERS - configure tts, change voice, tts speed
What this skill does
# Settings and Tuning Configure all adjustable parameters for the TTS engine, Telegram bot, and supporting infrastructure. All settings are centralized in the mise.toml SSoT. > **Platform**: macOS (Apple Silicon) > **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. ## When to Use This Skill - Changing TTS voice (English, Chinese, or macOS `say` voices) - Adjusting speech speed - Tuning TTS timeouts or queue depth - Configuring notification rate limiting or circuit breakers - Adjusting prompt executor throttling - Modifying session picker limits - Changing audit log retention --- ## Requirements | Component | Required | Installation | | ----------- | ----------- | ------------------------------------------------- | | mise | Yes | `brew install mise` (for env loading) | | Bot running | Recommended | Changes to TTS/queue settings require bot restart | --- ## Workflow Phases ### Phase 0: Read Current Configuration Read the current mise.toml to see all active settings: ```bash cat ~/.claude/automation/claude-telegram-sync/mise.toml ``` All configurable values live in the `[env]` section. The file is the single source of truth for the entire stack. ### Phase 1: Identify What to Change Present the config groups to the user via AskUserQuestion. Config groups: | Group | Settings | Description | | --------------- | ---------------------------------------------------------------------- | ----------------------------------------------- | | TTS Voice | `TTS_VOICE_EN`, `TTS_VOICE_ZH`, `TTS_VOICE_SAY_EN`, `TTS_VOICE_SAY_ZH` | Voice selection per language | | TTS Speed | `TTS_SPEED` | Speech rate multiplier | | TTS Timeouts | `TTS_GENERATE_TIMEOUT_MS`, `TTS_SAY_TIMEOUT_MS` | Generation and playback timeouts | | TTS Queue | `TTS_MAX_QUEUE_DEPTH`, `TTS_STALE_TTL_MS`, `TTS_MAX_TEXT_LEN` | Queue limits and staleness | | TTS Signal | `TTS_SIGNAL_SOUND` | Signal sound path (empty to disable) | | Rate Limiting | `NOTIFICATION_MIN_INTERVAL_MS`, `SUMMARIZER_*` | Notification and summarizer throttling | | Prompt Executor | `PROMPT_*` | Prompt execution throttling and circuit breaker | | Session Picker | `SESSION_*` | Session scanning and display limits | | Audit | `AUDIT_RETENTION_DAYS` | Log retention period | | Model | `HAIKU_MODEL` | Claude model for Agent SDK calls | ### Phase 2: Edit Configuration Edit the appropriate line(s) in `~/.claude/automation/claude-telegram-sync/mise.toml`. Use the Edit tool to make precise changes to specific values. ### Phase 3: Validate and Apply 1. Verify the edited value is within the valid range (see [Config Reference](./references/config-reference.md)) 2. If TTS, queue, or rate limiting settings changed, restart the bot: ```bash # Option A: If using mise tasks cd ~/.claude/automation/claude-telegram-sync && mise run bot:restart # Option B: Manual restart pkill -f "bun.*main.ts" && cd ~/.claude/automation/claude-telegram-sync && bun --watch run src/main.ts ``` 1. Confirm new settings are active by checking bot logs or testing the affected feature --- ## TodoWrite Task Templates ### Template: Settings Adjustment ``` 1. [Read] Read current mise.toml configuration 2. [Identify] Present config groups to user via AskUserQuestion 3. [Select] User selects setting category to modify 4. [Edit] Update mise.toml with new values 5. [Validate] Verify values are in valid range 6. [Apply] Restart bot to apply changes (if TTS or queue settings changed) 7. [Verify] Confirm new settings are active ``` --- ## Post-Change Checklist After modifying this skill: 1. [ ] Verify all config groups in SKILL.md match current mise.toml 2. [ ] Update config-reference.md if new env vars were added 3. [ ] Test that changed settings take effect after bot restart 4. [ ] Update `references/evolution-log.md` with change description ## Troubleshooting | Issue | Cause | Solution | | -------------------------- | -------------------------------- | ------------------------------------------------------ | | Settings not taking effect | Bot not restarted | Restart bot after changing mise.toml | | mise.toml parse error | Invalid TOML syntax | Check for missing quotes or unescaped chars | | Voice not found | Invalid voice name | Check voice catalog (Kokoro voices are case-sensitive) | | Speed too fast/slow | Value out of range | Use 0.5 to 2.0 range for TTS_SPEED | | Circuit breaker stuck open | Too many failures | Wait for breaker timeout or restart bot | | Timeout too short | TTS generation slow on first run | Model warmup takes longer; increase timeout | --- ## Reference Documentation - [Config Reference](./references/config-reference.md) - Full reference table with all env vars, defaults, valid ranges, and component ownership - [mise.toml Reference](./references/mise-toml-reference.md) - Hub/spoke mise architecture, secret loading, and task file structure - [Evolution Log](./references/evolution-log.md) - Change history for this skill ## Post-Execution Reflection After this skill completes, reflect before closing the task: 0. **Locate yourself.** — Find this SKILL.md's canonical path (Glob for this skill's name) before editing. All corrections target THIS file and its sibling references/ — never other documentation. 1. **What failed?** — Fix the instruction that caused it. If it could recur, add it as an anti-pattern. 2. **What worked better than expected?** — Promote it to recommended practice. Document why. 3. **What drifted?** — Any script, reference, or external dependency that no longer matches reality gets fixed now. 4. **Log it.** — Every change gets an evolution-log entry with trigger, fix, and evidence. Do NOT defer. The next invocation inherits whatever you leave behind. --- ---
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.