Kokoro-FastAPI: Skill for Claude Code

.claude/skills/web-contrib/SKILL.md

web-contrib is a skill for Claude Code from remsky/Kokoro-FastAPI. It costs 41 tokens per session (573 once invoked), scanned A, original, Apache-2.0.

Project guidance for contributing to a web audio player built with plain JavaScript modules and no build step. It documents playback behavior, keyboard-accessible menus, downloads, and end-to-end testing requirements.

In plain words
What is it for?
Use it when changing files under the web directory, especially audio streaming, playback controls, popup menus, downloads, or related tests.
Why use it?
It prevents changes from breaking browser playback paths, long listening sessions, accessibility behavior, or established project conventions.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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,414 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/web-contrib/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 web-contrib

README.md
[![agentmods](https://agentmods.dev/badge/skills/remsky/kokoro-fastapi/web-contrib.svg)](https://agentmods.dev/skills/remsky/kokoro-fastapi/web-contrib)
Your own site
<a href="https://agentmods.dev/skills/remsky/kokoro-fastapi/web-contrib"><img src="https://agentmods.dev/badge/skills/remsky/kokoro-fastapi/web-contrib.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00041 $0.00573
Opus 5 $0.00020 $0.00287
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

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

Security

Grade A, and why

web-contrib 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 yesterday.

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/web-contrib/SKILL.md · 30 lines

How it starts

The opening of the file, as written. The whole thing — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web player contributions

Constraints

  • Vanilla JS modules, no framework, no build step. Files under web/src/ are served as-is by the API (/web).
  • web/src/services/AudioService.js owns playback: MSE (audio/mpeg) with a bounded buffer, falling back to blob playback where MSE mp3 is unsupported (Firefox). Any playback change must keep both paths working.
  • Long-session behavior matters: the bounded buffer exists because unbounded MSE appends crashed ~10 min in. Don't reintroduce unbounded growth.
  • A finished MSE stream swaps to the full server-side file so scrubbing and true duration work (canSwapToFileSource / swapToFileSource). Swaps only fire at existing discontinuities: end of playback, pause, seek. Don't trigger one mid-playback.

Standard patterns

  • Popup menus (role="menu") get full keyboard support: ArrowUp/Down walk items with wrap, Escape closes and restores focus to the trigger, focusout closes when focus leaves, first item focused when opened via keyboard. Reference implementations: cast menu in VoiceSelector.js, download menu in App.js. New menus copy that shape.
  • File downloads go through App.triggerDownload(url, name), don't hand-roll anchor clicks.
  • Outside-click dismissal uses closeOnOutsidePress from dismiss.js.
  • Fire-and-forget promises still need a .catch that surfaces via showStatus.
  • Settings checkboxes copy .autoplay-toggle (player.css): one rule, no :hover split, no per-control accent-color, :root sets it.
  • Services take request values as arguments (buildRequestBody(..., responseFormat)). Read a control once in the caller, don't re-query it inside the service.

Testing

  • Unit: npm run test:web (node test runner). New test files go in web/tests/unit/ and must be imported from web/tests/unit/index.test.mjs, it's a manual registry.
  • E2e: npm run test:e2e (Playwright against a static fixture server, no TTS backend needed).
  • Bundled Chromium has no mp3 codec, so real MSE playback needs system Chrome: launch with channel: 'chrome' in the spec/config when a test depends on real decoding.
  • For manual testing against a real backend, mount web/ over the image's copy in the compose file rather than rebuilding per edit.

Read the full file on GitHub · 30 lines

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. yesterday Changed · +2 lines f67e413268a1
  2. 8d ago First seen · 28 lines · 41 tokens per session scan A 040a866de5fe

Subscribe to this mod's changes

web-contrib is a skill published in the GitHub repository remsky/Kokoro-FastAPI (5,414 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 573 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other skills, from other repositories

react-testing

Frontend testing standards using Vitest, React Testing Library, and Playwright. Use when writing UI tests.

aps08/fullstack-clean-architecture · 24 tokens

frontend-testing

Comprehensive frontend testing strategy covering unit, integration, E2E, visual regression, and accessibility testing.

cosmicstack-labs/mercury-agent-skills · 23 tokens

test-implement

Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks, setup, and browser harness. Use when creating or completing frontend tests and generated test skeletons.

shinpr/claude-code-workflows · 48 tokens

angular-testing

Write unit and integration tests for Angular v20+ applications using Vitest or Jasmine with TestBed and modern testing patterns. Use for testing components with signals, OnPush change detection, services with inject(), and HTTP interactions. Triggers on test creation, testing signal-based components, mocking…

Kilo-Org/kilo-marketplace · 94 tokens

angular-testing

Testing Angular 18-21: TestBed, component harnesses (@angular/cdk/testing), Karma+Jasmine (default historical) vs Jest (jest-preset-angular, modern), Angular Testing Library (RTL-style). HttpClient mocking via HttpTestingController. NgRx Effects testing. Cypress / Playwright e2e. Use this skill to: Detect runner…

AratKruglik/claude-sdlc · 185 tokens

vue-testing

Testing Vue 3 SPAs: Vitest + @vue/test-utils, RTL-style alternatives, Pinia testing via createTestingPinia, composable testing, msw for network mocks, Cypress component testing, Playwright e2e. Use this skill to: Set up Vitest for Vue 3 with jsdom + @vue/test-utils. Pick mount vs shallowMount. Test components by…

AratKruglik/claude-sdlc · 155 tokens