piper-plus: Skill for Claude Code

.claude/skills/run-tests/SKILL.md

run-tests is a skill for Claude Code from ayutaz/piper-plus. It costs 52 tokens per session (1,044 once invoked), scanned A, original, MIT.

A test runner for the Piper Plus project, which contains code in several programming languages. It chooses tests from changed files or lets you select Python, Rust, .NET, Go, JavaScript/WebAssembly, C++, or all targets.

In plain words
What is it for?
Use it after code changes to run the relevant language tests, or to run every supported test target in sequence. It includes unit tests, race checks, static checks, solution tests, package tests, and CMake tests where applicable.
Why use it?
It lets developers run tests locally under conditions intended to match continuous integration (CI), before waiting for the remote checks. It also avoids some project-wide test settings that may fail when optional testing tools are missing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../...

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/skills/run-tests/SKILL.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 run-tests

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayutaz/piper-plus/run-tests"><img src="https://agentmods.dev/badge/skills/ayutaz/piper-plus/run-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,044 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.00052 $0.01044
Opus 5.5 $0.00021 $0.00418
Sonnet 5.5 $0.00010 $0.00209
Haiku 4.5 $0.00005 $0.00104

Measured 2mo ago against content hash 6903126046f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

run-tests 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 2mo 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/skills/run-tests/SKILL.md · 125 lines

How it starts

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

piper-plus テスト実行

各言語ランタイムのテストを CI と同じ条件でローカル実行します。

変更ファイル

!git diff --name-only HEAD 2>/dev/null | head -20

ターゲット選択

$ARGUMENTS:

  • python → Python 全体
  • rust → Rust workspace
  • cs → .NET solution
  • go → Go module
  • js → JS/WASM (npm-package)
  • cpp → C++ (cmake build + ctest)
  • all → 上記すべて (順次、失敗しても次に進む)
  • (空) → git diff HEAD の結果から判定 (複数該当ならそれら全部)

各ターゲットの実行コマンド

Python

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 ../../..

注意:

  • pytest.ini の --cov を -o addopts="" で上書き (pytest-cov が無い環境向け)
  • 学習・ベンチマーク系テストは除外 (-m "unit and not training and not benchmark" も可)

Rust

cd src/rust
cargo test -p piper-plus --no-fail-fast
cargo test -p piper-plus --features naist-jdic --no-fail-fast
cd ../..

C# (.NET)

dotnet test src/csharp/PiperPlus.sln -c Release --nologo --verbosity minimal

Go

cd src/go
go vet ./... ./phonemize/...
go test -race -count=1 ./... ./phonemize/...
cd ../..

JavaScript / WASM

cd src/wasm/openjtalk-web
npm run test:npm-package:all
cd ../../..

C++

# 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` (ファイル:行): エラー要約

失敗時のヒント

  • Python ImportError → uv sync で依存をインストール
  • Rust feature not found → cargo build で先にビルドを通す
  • C# build failed → dotnet restore src/csharp/PiperPlus.sln を実行
  • WASM ImportError → cd src/wasm/openjtalk-web && npm install
  • C++ ctest failed → cmake --build build --verbose でビルドエラーを再確認

Read the full file on GitHub · 125 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. 2mo ago First seen · 125 lines · 52 tokens per session scan A 6903126046f6

Subscribe to this mod's changes

run-tests is a skill published in the GitHub repository ayutaz/piper-plus (239 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,044 once invoked, about $0.0002 per session on Opus 5.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

physicsnemo-shard-tensor

Official NVIDIA-authored guidance for PhysicsNeMo ShardTensor domain parallelism — integrate domain parallelism into training/inference scripts (new or existing) with DDP or FSDP2, write and register shard patches to enable new layers/ops, and bootstrap multi-GPU correctness tests. Use when working with ShardTensor…

NVIDIA/physicsnemo · 152 tokens

physicsnemo-discover

Official NVIDIA-authored guidance for navigating PhysicsNeMo — pick the model, datapipe, or example for a SciML/AI4Science task (surrogates, forecasting, downscaling, physics-informed, inverse, generative). Points at existing files via live repo search; never writes code. Do NOT use for installation or environment…

NVIDIA/physicsnemo · 124 tokens

short-drama-delivery-audit

Internal deterministic delivery gate for meta-short-drama. Verifies real-provider image/video receipts, parent-owned paid-submission dispositions, runtime fallback evidence, decodability, and content-versus-final duration with ffprobe.

opensquilla/opensquilla · 51 tokens

meta-pre-commit-quality-gate

Run three quality gates (ruff + mypy + pytest) in parallel over the staged diff, then arbitrate a single BLOCK/APPROVE verdict. Use before committing changes locally when you want a comprehensive pre-commit gate beyond per-file linting — exactly the same gate set CI enforces.

opensquilla/opensquilla · 68 tokens

skill-creator-smoke-test

Internal tool (not user-invocable). Called by meta-skill-creator as a DAG step (kind: agent) to run G3 (positive smoke) and G4 (negative smoke) gates against a candidate meta-skill SKILL.md. Cross-vendor: fixture-generation LLM != classifier LLM. Returns JSON.

opensquilla/opensquilla · 74 tokens

Home Security AI Benchmark

LLM & VLM evaluation suite for home security AI applications.

SharpAI/DeepCamera · 17 tokens