Kokoro-FastAPI: Skill for Claude Code

.claude/skills/adding-normalizer/SKILL.md

adding-normalizer is a skill for Claude Code from remsky/Kokoro-FastAPI. It costs 44 tokens per session (531 once invoked), scanned A, original, Apache-2.0.

A guide for adding a language-specific text normalizer to Kokoro-FastAPI. Text normalization turns items such as numbers, currencies, times, and URLs into words before speech software pronounces them.

In plain words
What is it for?
Use it to add or change normalization for a language in the Python text-processing service.
Why use it?
It explains the required interface, language registry, processing order, and tests so a new normalizer fits the existing speech pipeline.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is remsky/Kokoro-FastAPI's own configuration. It tells Claude Code how to work on Kokoro-FastAPI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Kokoro-FastAPI configures →

About the project

Kokoro-FastAPI is a Dockerized FastAPI service that turns text into speech using the Kokoro-82M model through an OpenAI-compatible API. It is used by developers and self-hosters who need multilingual, multi-speaker speech generation, captions, phonemes, or an optional web interface.

remsky/Kokoro-FastAPI · 5,614 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to remsky/Kokoro-FastAPI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/remsky/Kokoro-FastAPI/master/.claude/skills/adding-normalizer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/remsky/Kokoro-FastAPI

Made for: Claude Code.

Wrote 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.

agentmods badge for adding-normalizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/remsky/kokoro-fastapi/adding-normalizer/github.svg)](https://agentmods.dev/skills/remsky/kokoro-fastapi/adding-normalizer)
Your own site
<a href="https://agentmods.dev/skills/remsky/kokoro-fastapi/adding-normalizer"><img src="https://agentmods.dev/badge/skills/remsky/kokoro-fastapi/adding-normalizer/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.

agentmods 80×15 button for adding-normalizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/remsky/kokoro-fastapi/adding-normalizer"><img src="https://agentmods.dev/badge/skills/remsky/kokoro-fastapi/adding-normalizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 531 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00531
Opus 5.5 $0.00018 $0.00212
Sonnet 5.5 $0.00009 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured today against content hash e454dc9f42ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adding-normalizer 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 today.

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.

.claude/skills/adding-normalizer/SKILL.md · 31 lines

What it actually says

Read AGENTS.md and CONTRIBUTING.md first, house rules live there.

Adding a language normalizer

Text normalization (numbers, money, time, URLs, etc. spelled out before phonemization) is per language. Only English is implemented; other languages skip normalization and rely on the phonemizer.

Where things live

api/src/services/text_processing/normalization/:

  • base.py: Normalizer, the contract. pass_order() is the pass order, normalize() runs it. The language-neutral passes (quotes, CJK punctuation, whitespace) are implemented; every other pass is a hook that returns its input unchanged until overridden. Override pass_order() if a language needs a different order.
  • english.py: EnglishNormalizer, the reference implementation.
  • english_data.py: the English tables, TLDs, units, symbol readings, currencies.
  • __init__.py: LANGUAGES, the registry. Lang codes come from lang_codes on each class.

Adding one

  1. Create normalization/<language>.py with a Normalizer subclass. Set lang_codes to the Kokoro pipeline codes it serves (p for Portuguese, e for Spanish, etc.). Override the hooks you need, numbers first (money is spelled out there too); espeak already reads bare digits, so the value is in currency, time, and units. num2words is in the lock and covers cardinals for most languages.
  2. Add an instance to LANGUAGES in __init__.py.
  3. Add api/tests/test_normalizer_<language>.py with a CASES table of (input, expected) rows, mirroring test_normalizer.py. test_normalizer_contract.py runs the never-raises and idempotence properties on every registered language automatically.

Testing

  • Keep regexes linear. test_normalizer_redos.py shows the flood inputs that have bitten before.
  • uv run pytest api/tests/test_normalizer*.py, then uv run --only-group lint ruff format . and uv run --only-group lint ruff check . --fix before staging.
Changes

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.

  1. today Changed e454dc9f42ee
  2. 1mo ago First seen · 31 lines · 44 tokens per session scan A 6beab396ed67

Subscribe to this mod's changes

adding-normalizer is a skill published in the GitHub repository remsky/Kokoro-FastAPI (5,614 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 531 once invoked, about $0.0002 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-09-08.

Related

Other skills, from other repositories

datamodel-code-generator

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects.…

koxudaxi/datamodel-code-generator · 147 tokens

fastapi-expert

Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.

personamanagmentlayer/pcl · 49 tokens

mastering-python-skill

Modern Python coaching covering language foundations through advanced production patterns. Use when asked to "write Python code", "explain Python concepts", "set up a Python project", "configure Poetry or PDM", "write pytest tests", "create a FastAPI endpoint", "run uvicorn server", "configure alembic migrations"…

SpillwaveSolutions/agent-brain · 127 tokens

docker_packaging

A set of rules and templates for packaging a Python MCP service in Docker. Docker packages an application and its dependencies into a repeatable container that can run on another machine.

fdueblab/Micro-Agent · 0 tokens

validate-python-stack

Validate the Python Template repository or a project generated from it. Use before committing, publishing, deploying, or reviewing a stack to check catalog compilation, rendering, dependencies, formatting, tests, security workflows, skills, and representative runtime behavior.

leynier/python-template · 51 tokens

asyncio

Python asyncio - Modern concurrent programming with async/await, event loops, tasks, coroutines, primitives, aiohttp, and FastAPI async patterns.

bobmatnyc/claude-mpm-skills · 32 tokens