build
$
npx mdskill add soniqo/speech-swift/buildCompile speech-swift with optimized MLX Metal shaders.
- Enables fast inference by pre-compiling Metal shaders.
- Executes make commands via Bash tool integration.
- Selects build mode based on provided release or debug argument.
- Outputs compiled binaries ready for testing or benchmarking.
SKILL.md
.github/skills/buildView on GitHub ↗
---
name: build
description: Build the speech-swift package (release or debug). Use when preparing for testing, benchmarking, or running demos.
disable-model-invocation: false
argument-hint: [release|debug]
allowed-tools: Bash
---
# Build
Build the package in the specified configuration. Default: release.
```bash
config="${ARGUMENTS:-release}"
if [ "$config" = "debug" ]; then
make debug
else
make build
fi
```
The metallib step compiles MLX Metal shaders. Without it, inference runs ~5x slower due to JIT compilation. `make build` handles this automatically.
More from soniqo/speech-swift