setup
Set up the speech plugin's text-to-speech prerequisites: check reports Python, espeak-ng, the hook-installed Python packages and the Kokoro model files; apply install-model downloads the pinned Kokoro-82M model, tokenizer and English voices (about 340 MB) into the plugin data directory, or the model_dir option's folder. Use when: 'set up speech', 'set up text to speech', 'download the kokoro model', 'is narrate ready', or /speech:narrate stopped with exit 2. Never installs espeak-ng.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- description
- Set up the speech plugin's text-to-speech prerequisites: check reports Python, espeak-ng, the hook-installed Python packages and the Kokoro model files; apply install-model downloads the pinned Kokoro-82M model, tokenizer and English voices (about 340 MB) into the plugin data directory, or the model_dir option's folder. Use when: 'set up speech', 'set up text to speech', 'download the kokoro model', 'is narrate ready', or /speech:narrate stopped with exit 2. Never installs espeak-ng.
- argument-hint
- [check|apply] [install-model]
- user-invocable
- true
- disable-model-invocation
- true
03 SKILL.md 正文
Purpose
The plugin owns no consumer-project configuration. Its two userConfig options are set through
/plugin configure, never by this skill: model_dir moves the Kokoro model folder, and
elevenlabs_model picks the elevenlabs backend's default model. Its prerequisites have three
owners:
| Prerequisite | Who installs it |
|---|---|
| Python 3.12 or later, Node.js, espeak-ng | The user. espeak-ng is GPL-3.0, so the plugin never installs or ships it. |
| numpy and onnxruntime | The plugin's SessionStart hook, from the hash-locked requirements.txt. |
| Kokoro model, tokenizer, voices | apply install-model (this skill), from the pinned revision. |
Non-interactive: never prompt. Run the action, report what it printed, stop.
check (read-only, default)
${CLAUDE_PLUGIN_ROOT}/scripts/check.py owns every probe. It reads the declared entries in
${CLAUDE_PLUGIN_ROOT}/prerequisites.json, so the install hints are never restated here. Run it:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check.py" --data-dir "${CLAUDE_PLUGIN_DATA}" \
--model-dir '${user_config.model_dir}'
Where python3 is not on PATH, run this and the assets.py command below with python; the
SessionStart hook accepts either. Keep --model-dir exactly as shown, in single quotes; the
scripts handle an unset model_dir option (reference/plugin-options.md).
It prints one PASS or FAIL row per prerequisite, then a summary, and exits 1 when any row
fails. Report the rows as printed. A FAIL row carries its remedy: install hints for a tool, the
repair command for the Python packages, or apply install-model for the model.
apply install-model
Downloads the files ${CLAUDE_PLUGIN_ROOT}/scripts/kokoro-assets.json pins, from that revision,
into the model_dir option's folder, or ${CLAUDE_PLUGIN_DATA}/models/ when it is unset. Each
file is hashed as it downloads and kept only when its sha256 matches the pin. Files already present
are skipped, so a rerun is safe.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/assets.py" fetch --data-dir "${CLAUDE_PLUGIN_DATA}" \
--model-dir '${user_config.model_dir}'
It prints the asset folder and exits 0 when every file is present. On a failed download or a hash
mismatch it exits 1 with the file name and reason, and keeps no partial file. Report the folder, or
the error. Then run check and report its rows as the observed state.
Bare apply has nothing to configure: say so and name apply install-model.
apply never installs espeak-ng, Python, Node.js or the Python packages. For a missing tool, report
the install hints check printed. For the packages, report the repair command check printed.
Next
/speech:narrate <script file>
Gotchas
- The model files come from huggingface.co (Kokoro-82M, Apache-2.0). A network that blocks it fails
apply install-modelwith the URL in the error. - A new pin in
kokoro-assets.jsondownloads into a new folder beside the old one. Remove the old folder by hand if disk space matters;checkprints the folder in use.
04 同仓库更多 Skills
track
Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.
reviewer-media
Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
route
Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.
principles
Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.
write
Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').