Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ssmurfgg04-gif/context-m --skill ttsgit clone --depth 1 https://github.com/ssmurfgg04-gif/context-mWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ssmurfgg04-gif/context-m/tts)<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/tts"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/tts/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ssmurfgg04-gif/context-m/tts"><img src="https://agentmods.dev/badge/skills/ssmurfgg04-gif/context-m/tts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00064 | $0.05041 |
| Opus 5.5 | $0.00026 | $0.02016 |
| Sonnet 5.5 | $0.00013 | $0.01008 |
| Haiku 4.5 | $0.00006 | $0.00504 |
Grade A, and why
TTS scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 736 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TTS (Text to Speech) Skill
This skill guides the implementation of text-to-speech (TTS) functionality using the z-ai-web-dev-sdk package, enabling conversion of text into natural-sounding speech audio.
Skills Path
Skill Location: {project_path}/skills/TTS
This skill is located at the above path in your project.
Reference Scripts: Example test scripts are available in the {Skill Location}/scripts/ directory for quick testing and reference. See {Skill Location}/scripts/tts.ts for a working example.
Overview
Text-to-Speech allows you to build applications that generate spoken audio from text input, supporting various voices, speeds, and output formats for diverse use cases.
IMPORTANT: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.
API Limitations and Constraints
Before implementing TTS functionality, be aware of these important limitations:
Input Text Constraints
- Maximum length: 1024 characters per request
- Text exceeding this limit must be split into smaller chunks
Audio Parameters
- Speed range: 0.5 to 2.0
- 0.5 = half speed (slower)
- 1.0 = normal speed (default)
- 2.0 = double speed (faster)
- Volume range: Greater than 0, up to 10
- Default: 1.0
- Values must be greater than 0 (exclusive) and up to 10 (inclusive)
Format and Streaming
- Streaming limitation: When
stream: trueis enabled, onlypcmformat is supported - Non-streaming: Supports
wav,pcm, andmp3formats - Sample rate: 24000 Hz (recommended)
Best Practice for Long Text
function splitTextIntoChunks(text, maxLength = 1000) {
const chunks = [];
const sentences = text.match(/[^.!?]+[.!?]+/g) || [text];
let currentChunk = '';
for (const sentence of sentences) {
if ((currentChunk + sentence).length <= maxLength) {
currentChunk += sentence;
} else {
if (currentChunk) chunks.push(currentChunk.trim());
currentChunk = sentence;
}
}
if (currentChunk) chunks.push(currentChunk.trim());
return chunks;
}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 736 lines · 64 tokens per session scan A 13b3ef93bb63
TTS is a skill published in the GitHub repository ssmurfgg04-gif/context-m (2 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 5,041 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
TTS compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| TTSssmurfgg04-gif/context-m | Skill | 2 | today | Apache-2.0 | A | 64 | Claude Code, Codex |
| context-engineeringbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| kv-cache-designbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |
| agent-memory-disciplinesickn33/agentic-awesome-skills | Skill | 51k | yesterday | MIT | A | 36 | Claude Code |
| agent-evaluationbojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 133 | Claude Code, Codex |
| post-training-strategybojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 159 | Claude Code, Codex |
| ai-stylebojieli/ai-agent-book | Skill | 61k | yesterday | Apache-2.0 | A | 25 | Claude Code, Codex |