用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ayutaz/piper-plus --skill run-tests命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | run-tests |
| description | piper-plus の各言語ランタイムのテストを実行します。引数 python/rust/cs/go/js/cpp/all で対象を選択。未指定なら git diff から自動判定。 |
| argument-hint | [python|rust|cs|go|js|cpp|all] |
| disable-model-invocation | true |
| allowed-tools | Bash(uv run *) Bash(cargo test *) Bash(dotnet test *) Bash(go test *) Bash(go vet *) Bash(node --test *) Bash(npm *) Bash(cmake *) Bash(ctest *) Bash(git diff *) |
各言語ランタイムのテストを CI と同じ条件でローカル実行します。
!git diff --name-only HEAD 2>/dev/null | head -20
$ARGUMENTS:
python → Python 全体rust → Rust workspacecs → .NET solutiongo → Go modulejs → JS/WASM (npm-package)cpp → C++ (cmake build + ctest)all → 上記すべて (順次、失敗しても次に進む)git diff HEAD の結果から判定 (複数該当ならそれら全部)cd src/python_run
uv run pytest tests/ -o addopts="" -v --tb=short
cd ../..
# G2P 単体テスト (もし対象なら)
cd src/python/g2p
uv run pytest -o addopts="" -v --tb=short
cd ../../..
注意:
--cov を -o addopts="" で上書き (pytest-cov が無い環境向け)-m "unit and not training and not benchmark" も可)cd src/rust
cargo test -p piper-plus --no-fail-fast
cargo test -p piper-plus --features naist-jdic --no-fail-fast
cd ../..
dotnet test src/csharp/PiperPlus.sln -c Release --nologo --verbosity minimal
cd src/go
go vet ./... ./phonemize/...
go test -race -count=1 ./... ./phonemize/...
cd ../..
cd src/wasm/openjtalk-web
npm run test:npm-package:all
cd ../../..
# Build がまだなら先にビルド
if [ ! -f build/CMakeCache.txt ]; then
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON
fi
cmake --build build --config Release
ctest --test-dir build -C Release --output-on-failure
各ターゲット完了後、以下の形式で報告:
## テスト実行結果
| ランタイム | Pass | Fail | Skip | 時間 |
|----------|------|------|------|------|
| Python (pytest) | 212 | 0 | 20 | 22s |
| Rust (cargo test) | 145 | 0 | 0 | 1m |
| ... | ... | ... | ... | ... |
### 失敗詳細
(失敗があった場合のみ、最初の 3 件まで)
- `test_xxx` (ファイル:行): エラー要約
uv sync で依存をインストールcargo build で先にビルドを通すdotnet restore src/csharp/PiperPlus.sln を実行cd src/wasm/openjtalk-web && npm installcmake --build build --verbose でビルドエラーを再確認all 時)基于 SOC 职业分类