一键导入
validate-runtime-loading
Use when changing runtime selection, RuntimeOptions, NativeLibraryLoader, runtime package imports, or examples that force runtime order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when changing runtime selection, RuntimeOptions, NativeLibraryLoader, runtime package imports, or examples that force runtime order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when changing whisper.cpp, native build scripts, runtime artifact layout, or native runtime package contents.
Use when tests need deterministic model files, model downloads fail, or WHISPER_TEST_MODEL_PATH is involved.
Use when validating managed .NET changes that do not modify whisper.cpp or native runtime build outputs.
Use when changing Whisper.net managed C# APIs, processors, builders, tests, or examples without changing native runtime outputs.
Use when changing MAUI target frameworks, mobile runtime packaging, or mobile test behavior.
Use when changing CPU NoAvx runtime loading, package imports, or tests that must run without AVX.
| name | Validate runtime loading |
| description | Use when changing runtime selection, RuntimeOptions, NativeLibraryLoader, runtime package imports, or examples that force runtime order. |
Use this skill when a task changes runtime discovery or selection, including RuntimeOptions, RuntimeLibrary, NativeLibraryLoader, runtime targets, dependency checker behavior, or examples that set RuntimeOptions.RuntimeLibraryOrder.
Whisper.net/LibraryLoader/RuntimeLibrary.csWhisper.net/LibraryLoader/RuntimeOptions.csWhisper.net/LibraryLoader/NativeLibraryLoader.csWhisper.net/LibraryLoader/CudaHelper.cs for CUDA-specific probingtools/WhisperNetDependencyChecker/Program.csexamples/MultiRuntime/Program.csruntimes/*.nuspec and runtimes/*/*.targets when package layout changesThe default order is:
Cuda, Cuda12, Vulkan, CoreML, OpenVino, Cpu, CpuNoAvx
Preserve this order unless the task intentionally changes runtime preference behavior. If the order changes, update XML docs and README text together.
With native artifacts present under runtimes/, run the dependency checker for each affected runtime:
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- CpuNoAvx
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- Cuda
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- Cuda12
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- Vulkan
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- CoreML
dotnet run --project .\tools\WhisperNetDependencyChecker\WhisperNetDependencyChecker.csproj -- OpenVino
Then run the managed test suite:
dotnet test .\Whisper.net.slnx --logger "trx"
Only use the preview native libs shortcut when the change is managed-only and does not alter runtime package layout or native outputs.