augment
$
npx mdskill add terrylica/cc-skills/augmentUpgrades Kokoro TTS engine dependencies, model, and scripts
- Solves outdated dependencies and model weights in Kokoro TTS
- Uses Bash, Glob, Read, and AskUserQuestion tools for execution
- Follows a three-step workflow: health check, upgrade, verification
- Delivers updated versions through script execution and file updates
SKILL.md
.github/skills/augmentView on GitHub ↗
---
name: augment
description: Augment Kokoro TTS engine — upgrade dependencies and model. Renamed from 'upgrade' to avoid clashing with Claude Code's built-in.
allowed-tools: Read, Bash, Glob, AskUserQuestion
---
# Augment Kokoro TTS
Upgrade MLX-Audio dependencies, re-download the model, and update bundled scripts.
> **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
## Workflow
### Step 1: Pre-upgrade health check
```bash
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/kokoro-tts}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --health
cat ~/.local/share/kokoro/version.json
```
### Step 2: Execute upgrade
```bash
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/kokoro-tts}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --upgrade
```
This upgrades:
- Python packages: `mlx-audio`, `soundfile`, `numpy`
- Model weights: re-downloaded from `mlx-community/Kokoro-82M-bf16`
- Bundled scripts: `kokoro_common.py` and `tts_generate.py` re-copied from plugin
- `version.json`: rewritten with new versions
### Step 3: Post-upgrade verification
```bash
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/kokoro-tts}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --health
cat ~/.local/share/kokoro/version.json
# Test synthesis
~/.local/share/kokoro/.venv/bin/python ~/.local/share/kokoro/tts_generate.py \
--text "Upgrade verification" --voice af_heart --lang en-us --speed 1.0 \
--output /tmp/kokoro-upgrade-test.wav && echo "OK"
```
## Rollback
If upgrade breaks TTS, do a clean reinstall:
```bash
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/kokoro-tts}"
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --uninstall
bash "$PLUGIN_DIR/scripts/kokoro-install.sh" --install
```
Model cache is preserved across uninstall, so reinstall reuses the cached model.
## Troubleshooting
| Issue | Cause | Solution |
| ------------------- | ------------------------- | ----------------------------------------------- |
| Upgrade fails | No internet or PyPI down | Check connectivity, retry |
| Import error after | mlx-audio incompatibility | Clean reinstall: `--uninstall` then `--install` |
| Model download slow | Large download | Wait for HuggingFace download to complete |
## Post-Execution Reflection
After this skill completes, reflect before closing the task:
0. **Locate yourself.** — Find this SKILL.md's canonical path before editing.
1. **What failed?** — Fix the instruction that caused it.
2. **What worked better than expected?** — Promote to recommended practice.
3. **What drifted?** — Fix any script, reference, or dependency that no longer matches reality.
4. **Log it.** — Evolution-log entry with trigger, fix, and evidence.
Do NOT defer. The next invocation inherits whatever you leave behind.
More from terrylica/cc-skills
- academic-pdf-to-gfmConvert academic PDF papers to GitHub-renderable GFM markdown with math equations. TRIGGERS - PDF, GitHub markdown, math
- adaptive-wfo-epochAdaptive epoch selection for Walk-Forward Optimization. TRIGGERS - WFO epoch, epoch selection, WFE optimization, overfitting epochs.
- adr-code-traceabilityAdd ADR references to code for traceability. TRIGGERS - ADR traceability, code reference, document decision in code.
- adr-graph-easy-architectASCII architecture diagrams for ADRs via graph-easy. TRIGGERS - ADR diagram, architecture diagram, ASCII diagram.
- agent-reach>
- agentic-process-monitorMonitor background processes from Claude Code using sentinel files, heartbeat liveness, and subagent polling. Best practices and.
- alpha-forge-preshipAlpha Forge quality gates for PR review - RNG determinism, URL validation, parameter validation, manifest sync.
- article-extractorExtract MQL5 articles and documentation. TRIGGERS - MQL5 articles, MetaTrader docs, mql5.com resources.
- ascii-diagram-validatorValidate ASCII diagram alignment in markdown. TRIGGERS - diagram alignment, ASCII art, box-drawing diagrams.
- asciinema-analyzerSemantic analysis of asciinema recordings. TRIGGERS - analyze cast, keyword extraction, find patterns in recordings.