Skip to content
Back to skills

Verify

BSecurity

Route local edit-loop builds and tests by diff in mlx-serve using scripts/ci-changes.sh so iteration stays fast and pre-PR checks cover everything the diff reaches. Use whenever building, testing, iterating on or preparing a PR.

  • 2,750 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 3, 2026
ai-agentsswiftbashnodetestinggitsecurity

Security analysis

B88/100
  • criticalPipes output to a shell interpreter

Pro shows the line behind each finding and how to fix it

Scanned December 3, 2026

npx -y skills add ddalcu/mlx-serve --skill verify --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Verify?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Verify
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/ddalcu-verify/badge)](https://www.skillsdirectory.com/skills/ddalcu-verify)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verify
description: Route local edit-loop builds and tests by diff in mlx-serve using scripts/ci-changes.sh so iteration stays fast and pre-PR checks cover everything the diff reaches. Use whenever building, testing, iterating on or preparing a PR.
---

## Verify by diff

Classify the branch (committed + staged + unstaged + untracked) before choosing build flags or test suites:

```bash
{ git diff --name-only upstream/main...HEAD 2>/dev/null || git diff --name-only origin/main...HEAD; git diff --name-only; git diff --cached --name-only; git ls-files --others --exclude-standard; } | sort -u | tee /dev/stderr | bash scripts/ci-changes.sh
```

`scripts/ci-changes.sh` prints `zig`, `swift` and `slow` (including non-`app/` files that Swift tests read, such as `src/plugins/*/config.zig`, `src/host/media_jobs/`, `build.zig` and `NOTICE`). If a diff spans multiple rows below, run the union. Always keep `.zig-toolchain` on `PATH` (`export PATH="$PWD/.zig-toolchain:$PATH"`).

| Changed paths | Fast edit loop | Pre-PR checks | Skip |
|---|---|---|---|
| `app-web/` + `src/html/index.html` only | `cd app-web && npx vitest run test/<file>.test.ts` | `cd app-web && npm test && npm run build`, `zig build lint -Dlint-strict`, `zig build -Doptimize=ReleaseFast -Dunits=true`, `zig build test -Dtest-filter="index page"`, `bash tests/test_index_page.sh` | `bash app/test.sh` |
| `app/` (Swift) only | `bash app/test.sh --filter <Suite>` | `bash app/test.sh`, `FAST_DEV=1 bash app/build.sh` | Zig builds/tests, `app-web/` |
| `src/plugins/<name>/` | `zig build check`, `zig build test -Dtest-filter="<name>"` | `zig build lint -Dlint-strict`, `zig build -Doptimize=ReleaseFast -Dunits=true`, `zig build test -Dtest-filter="<name>"` on a real Mac, full `zig build test` (+ `bash app/test.sh` if `swift=true`) | `app-web/` |
| `src/{host,engines,sdk,kernels}/` | `zig build check`, `zig build test -Dtest-filter="<area>"` | `zig build lint -Dlint-strict`, `zig build -Doptimize=ReleaseFast -Dunits=true`, matching `tests/test_*.sh`, full `zig build test` (+ `-Dslow-tests` if `slow=true`; + `bash app/test.sh` if `swift=true`) | `app-web/` |
| `website/` only | `bash tests/test_website_pages.sh` | `bash tests/test_website_pages.sh`, `node tests/website_tier_list_logic.mjs` | Zig, Swift, `app-web/` |
| Docs / `.md` only | — | Check links and `git diff --stat` | All builds/tests |

### Build rules
- `-Dunits=true` is the macOS default (~30s incremental rebuild vs ~3m30s single-unit LLVM `-O3`); use `zig build -Doptimize=ReleaseFast -Dunits=false` for single-unit perf measurements.
- Always build with `-Doptimize=ReleaseFast` when running or measuring; never judge inference speed on `Debug`.
- `zig build test` does not refresh `zig-out/bin/mlx-serve`; rebuild before running `tests/*.sh`.

Before pushing or opening a PR, follow `CONTRIBUTING.md` and `REVIEW.md` for all TDD, diff-hygiene, evidence (UI screenshots, perf tables/charts), security, self-review and post-PR monitoring gates.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.