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

tts

Skill1 starsChanged 3 months 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.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ASR, gift-evaluator 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.
  • jjyaoaoSkill

    ASR

    Implement speech-to-text (ASR/automatic speech recognition) capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to transcribe audio files, convert speech to text, build voice input features, or process audio recordings. Supports base64 encoded audio files and returns accurate text transcriptions.

    Also in 6 projects that use this

  • jjyaoaoSkill

    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 4 projects that use this

  • MindrallySkill

    llm

    Large Language Model development, training, fine-tuning, and deployment best practices.

    Also in 4 projects that use this

  • SuperInstanceSkill

    aminer-data-search

    使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6 大组合工作流(学者全景分析、论文深度挖掘、机构研究力分析、期刊论文监控、学术智能问答、专利链分析)以及 28 个独立 API 的直接调用。 即使用户只说"帮我查一下 XXX 学者"或"找找关于 XXX 的论文",也应主动使用此 skill。

    Also in 3 projects that use this

  • SuperInstanceSkill

    auto-target-tracker

    自动目标进度追踪器。在对话中检测到目标相关图片(笔记、进度、截图、记录)时,自动调用 VLM 识别关键信息并记录到目标日记。适用于学习管理、健身追踪、工作进度、习惯养成、创作记录等所有目标管理场景。

    Also in 3 projects that use this

  • +3 more from jjyaoao
  • +4 more from SuperInstance
  • Other versions15 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 15

    1. jjyaoao/HelloAgents★ 3.2ksame name
    2. NoizAI/skills★ 526same name
    3. momori777/Artemis★ 376same name
    4. getsentry/junior★ 365same name
    5. marswaveai/skills★ 78same name
    6. crazynomad/skills★ 27same name
    7. wpgaurav/WordPress-skills★ 17same name
    8. obra/muse-skills★ 14same name
    9. choupiyang/ZAI_SKILLS★ 13same name
    10. LocalKinAI/kinclaw★ 9same name

    5 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 13 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 13 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.9+ 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.