piper-plus: Command for Claude Code

.claude/commands/review-language.md

review-language is a command for Claude Code from ayutaz/piper-plus. It costs 0 tokens per session (2,370 once invoked), scanned A, original, MIT.

A command for reviewing a newly added language in the Piper speech-synthesis project across its Python, Rust, C++, C# and JavaScript code.

In plain words
What is it for?
Checking phoneme rules, preprocessing and inference paths, language registration, generated configuration, and consistency across five platforms.
Why use it?
Adding a language can require matching pronunciation rules, language mappings and shared character codes in several parts of a project.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

This is ayutaz/piper-plus's own configuration. It tells Claude Code how to work on piper-plus 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 piper-plus configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ayutaz/piper-plus. 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/ayutaz/piper-plus/dev/.claude/commands/review-language.md
Clone the repo
git clone --depth 1 https://github.com/ayutaz/piper-plus

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 review-language

README.md
[![agentmods](https://agentmods.dev/badge/commands/ayutaz/piper-plus/review-language/github.svg)](https://agentmods.dev/commands/ayutaz/piper-plus/review-language)
Your own site
<a href="https://agentmods.dev/commands/ayutaz/piper-plus/review-language"><img src="https://agentmods.dev/badge/commands/ayutaz/piper-plus/review-language/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 review-language

Your own site · 80×15
<a href="https://agentmods.dev/commands/ayutaz/piper-plus/review-language"><img src="https://agentmods.dev/badge/commands/ayutaz/piper-plus/review-language.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,370 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.00000 $0.02370
Opus 5.5 $0.00000 $0.00948
Sonnet 5.5 $0.00000 $0.00474
Haiku 4.5 $0.00000 $0.00237

Measured 3d ago against content hash 0e74d36c10fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-language 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 3d 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.

.claude/commands/review-language.md · 180 lines

How it starts

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

新言語実装レビュー

piper-plus の新言語実装を徹底的にレビューするスキルです。引数 $ARGUMENTS に言語コード (例: sv, de) を指定してください。

前提条件

  • Python テストは uv run python -m pytest で実行
  • 10エージェント並列でレビュー実施
  • 実装済みの全ターゲット (Python/Rust/C++/C#/JS-WASM) を検証し、Kotlin/Swift G2P の mirror が存在する場合は併せて確認

レビュー手順

Step 1: 10エージェント並列レビュー

以下の10エージェントを 並列 で起動してレビューを実施:

Agent 1: Python G2P 品質
  • src/python/g2p/piper_plus_g2p/$ARGUMENTS.py を読み、全G2Pルールの正確性を検証
  • 代表的な10単語のスポットチェック (言語固有の音韻規則に基づく)
  • 例外語リストの完全性確認
  • IPA シンボルの正確性 (ɡ≠g, ɧ≠ɕ 等)
Agent 2: Python 前処理・推論パス
  • src/python/piper_train/preprocess.py — --language $ARGUMENTS が動作するか
  • src/python/piper_train/infer_onnx.py — ヘルプテキスト、_detect_dominant_language
  • src/python/piper_train/tools/prepare_multilingual_dataset.py — LANGUAGE_ID_MAP
  • src/python/g2p/piper_plus_g2p/registry.py — 登録確認
  • src/python/g2p/piper_plus_g2p/encode/id_maps.py — shared phoneme ID map
  • config.json 生成パス (phoneme_id_map, language_id_map, num_languages)
Agent 3: PUA 整合性 (実装済み全ターゲット + Kotlin/Swift mirror)
  • Python token_mapper.py — FIXED_PUA_MAPPING、_PUA_START
  • Rust token_map.rs — FIXED_PUA_MAP、PUA カウントテスト
  • C++ ソース — PUA 定数定義
  • C# OpenJTalkToPiperMapping.cs — TokenToChar エントリ
  • 全プラットフォームで同一コードポイントを使用しているか
  • 既存言語との PUA 衝突がないか
Agent 4: Rust 実装完全性
  • src/rust/piper-core/src/phonemize/$ARGUMENTS.rs — 全ルール実装
  • src/rust/piper-core/src/phonemize/mod.rs — module export
  • src/rust/piper-core/src/voice.rs — ケース処理 + default_latin
  • src/rust/piper-plus-g2p/src/multilingual.rs — 言語検出 (core は re-export)
  • src/rust/piper-cli/src/main.rs — SUPPORTED_LANGUAGES
  • TODO/FIXME/unimplemented! の有無
Agent 5: C++ 実装完全性
  • src/cpp/$ARGUMENTS_phonemize.cpp/.hpp — 全ルール実装
  • src/cpp/piper.cpp — ディスパッチ + #include
  • src/cpp/language_detector.cpp/.hpp — 言語検出
  • cmake/PiperCommon.cmake — PIPER_COMMON_SOURCES への登録
  • src/cpp/tests/CMakeLists.txt — テストターゲットとソース link
  • ASCII化されたダイアクリティカルマーク (ö→o 等) がないか 要注意
Agent 6: C# 実装完全性
  • G2P エンジン — Python の全ルールが移植されているか
  • Phonemizer ラッパー — IPhonemizer 準拠
  • PUA マッピング — OpenJTalkToPiperMapping
  • UnicodeLanguageDetector — 言語検出
  • CLI Program.cs — ケース処理
  • スタブ実装でないことを確認 (TODO/character-level fallback 検出)

Read the full file on GitHub · 180 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. 3d ago Changed 0e74d36c10fd
  2. 14d ago Changed f71ad12d5888
  3. 2mo ago First seen · 180 lines · 0 tokens per session scan A 29fece1d6f06

Subscribe to this mod's changes

review-language is a command published in the GitHub repository ayutaz/piper-plus (239 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,370 tokens. 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.