agentleFS
ArunskiOrgArunskiOrg/BenArunskiUtils/skills/tts/SKILL.md

tts

Skill1 starsChanged 4 days agoMITView on GitHub

Convert a text/markdown document into spoken-word MP3 audio, after rewriting the source into speech-friendly prose (making non-text elements readable aloud). Use when the user asks to convert a document to audio, to read something aloud, mentions TTS or "text to speech", or says to "speak" something. Do NOT auto-engage on bare "say" / "tell me" idioms — those usually want a visual reply; instead ask "btw, do you want mp3 output?" - in that case, only run this skill if they confirm.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use Video Generation, VLM and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • huang-x-hSkill

    Video Generation

    Implement AI-powered video generation capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to generate videos from text prompts or images, create video content programmatically, or build applications that produce video outputs. Supports asynchronous task management with status polling and result retrieval.

    Also in 6 projects that use this

  • huang-x-hSkill

    VLM

    Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images, describe visual content, or create applications that combine image understanding with conversational AI. Supports image URLs and base64 encoded images for multimodal interactions.

    Also in 6 projects that use this

  • dav-niu474Skill

    gift-evaluator

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation. Use this skill when users upload photos of gifts (alcohol, tea, supplements, etc.) to inquire about their value, authenticity, or how to respond socially. Integrates visual perception, market valuation, and HTML card generation.

    Also in 5 projects that use this

  • dav-niu474Skill

    Podcast Generate

    Generate podcast episodes from user-provided content or by searching the web for specified topics. If user uploads a text file/article, creates a dual-host dialogue podcast (or single-host upon request). If no content is provided, searches the web for information about the user-specified topic and generates a podcast. Duration scales with content size (3-20 minutes, ~240 chars/min). Uses z-ai-web-dev-sdk for LLM script generation and TTS audio synthesis. Outputs both a podcast script (Markdown) and a complete audio file (WAV).

    Also in 5 projects that use this

  • +2 more from huang-x-h
  • +6 more from dav-niu474
  • Other versions29 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 29

    1. GetStream/Agents★ 8.2ksame name
    2. jjyaoao/HelloAgents★ 3.2ksame name
    3. NoizAI/skills★ 526same name
    4. getsentry/junior★ 425same name
    5. marswaveai/skills★ 83same name
    6. sneakers-the-rat/muse-skills★ 28same name
    7. crazynomad/skills★ 27same name
    8. obra/muse-skills★ 20same name
    9. wpgaurav/WordPress-skills★ 19same name
    10. momori777/Artemis★ 14same name

    19 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check whether <SKILL_DIR>/.bootstrap-verified exists.

    line 20
  2. Distinctive:

    Always ask for Output folder with AskUserQuestion (single-select).

    line 28
  3. Distinctive:

    Evaluate doubts (primary thread): Read Pass 2's returned JSON.

    line 69

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

tts — document to speech

Turns a document into an MP3: (1) rewrite it into speech-friendly prose, (2) render with a neural TTS engine (edge-tts by default). TTS engines mangle code, symbols, lists, and markdown, so the rewrite is where the value is.

Requirements

  • Python 3.10+ to run this skill's own scripts.
  • A neural TTS engine, verified once via the bootstrap step below. edge-tts is the default this skill is built around; see resources/bootstrap.py for other free and paid options.

What this skill executes, sends over the network, and writes to disk is disclosed in README.md, "Permissions and network egress".

Bootstrap

Check whether <SKILL_DIR>/.bootstrap-verified exists.

  • If it exists, an engine is already verified — skip straight to Inputs. (python3 <SKILL_DIR>/resources/bootstrap.py --verified prints which one, if you need to mention it.)
  • If it doesn't, read and follow <SKILL_DIR>/resources/bootstrap-instructions.md in full.

Inputs

  1. Confirm the Source file — a path passed with the request. If none was given, ask for one. Accept .md, .txt, or any plain-text file. (For PDFs, extract text first, e.g. with pdftotext.)
  2. Always ask for Output folder with AskUserQuestion (single-select). Options:
    • Current directory
    • Source document's folder — include this option ONLY if it differs from the current directory
    • Other (let the user type a path)

The output filename is <source-basename>.mp3 in the chosen folder.

Procedure

The rewrite is token-heavy but mechanical, so it runs in spawned agents that write to files and return only a short summary, keeping the primary thread cheap. The primary thread does input-gathering and orchestration; agents do the rewrite in two (sometimes three) passes, each loading only its own rules — the primary thread never opens the rule docs or the source doc.

Path variables used below:

  • <SOURCE> — the source file path.
  • <basename> — the source filename without extension.
  • <SKILL_DIR> — the folder containing this SKILL.md (you already know this path — it's wherever you read this file from).
  • <TEMP> — a tts-skill folder under the OS temp directory. Resolve it once with python3 -c "import tempfile, os; print(os.path.join(tempfile.gettempdir(), 'tts-skill'))", then create it if absent. All files UTF-8, no BOM.
  1. Pass 1 — structure and code. Spawn one agent (subagent_type: general-purpose, model: sonnet) with prompt: "Follow <SKILL_DIR>/agents/pass1-structural-rewriter.md. ## Input\n<JSON below>", expecting {"status", "heading_scheme", "doubts"} back:
    {
      "source": "<SOURCE>",
      "rules_reference": "<SKILL_DIR>/reference/preprocessing-rules-1.md",
      "output_path": "<TEMP>/<basename>-pass1.txt",
      "skill_dir": "<SKILL_DIR>",
      "temp": "<TEMP>",
      "basename": "<basename>"
    }
  2. Pass 2 — token-level sweep. Same type/model, prompt: "Follow <SKILL_DIR>/agents/pass2-token-sweep.md. ## Input\n<JSON below>", expecting {"status", "significant_doubts"} back:
    {
      "input_document": "<TEMP>/<basename>-pass1.txt",
      "rules_reference": "<SKILL_DIR>/reference/preprocessing-rules-2.md",
      "output_path": "<TEMP>/<basename>-pass2.txt",
      "skill_dir": "<SKILL_DIR>",
      "temp": "<TEMP>",
      "basename": "<basename>"
    }
  3. Evaluate doubts (primary thread). Read Pass 2's returned JSON.
    • significant_doubts empty → <basename>-pass2.txt is the final edited copy.
    • Non-empty → surface them to the operator as candidate skill improvements (so the rules can be tightened), AND spawn a third agent, same type/model, prompt: "Follow <SKILL_DIR>/agents/pass3-doubt-resolver.md. ## Input\n<JSON below>". Its output file, <TEMP>/<basename>-pass3.txt, becomes the final edited copy:
      {
        "input_document": "<TEMP>/<basename>-pass2.txt",
        "rules_reference_1": "<SKILL_DIR>/reference/preprocessing-rules-1.md",
        "rules_reference_2": "<SKILL_DIR>/reference/preprocessing-rules-2.md",
        "doubts": ["<Pass 2's significant_doubts>"],
        "output_path": "<TEMP>/<basename>-pass3.txt"
      }
  4. Convert (primary thread). Tell the user up front that conversion started. Run python3 <SKILL_DIR>/scripts/render.py <final -passN.txt> -o "<output folder>/<basename>.mp3" and relay its output verbatim: it checks the engine's CLI is installed before starting, and if the render call itself fails (e.g. a sandboxed shell blocking the network call), it prints the exact command for the user to run themselves. Offer --list-voices or a different --rate if the user wants one.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.