ReferencesUniversal Commands

Universal Verification Commands

This reference is used by worker-dev, verifier, loop-self-healing, and spec-refiner to find the commands that verify code in a given project.

Discovery order

Commands are resolved in priority order. Lower levels are only used when higher levels yield nothing.

PrioritySourceHow
1 — HighestProject task runnerRead Makefile, justfile, Taskfile.yml, tasks.py, Rakefile, mix.exs aliases, lefthook.yml
2Manifest scripts sectionpackage.json → scripts, pyproject.toml → tool scripts, composer.json → scripts
3 — FallbackIdiomatic per-language defaultsTable below — only when steps 1 and 2 yield nothing

Fallback commands by stack

TypeScript / JavaScript

Actionnpmpnpmyarnbun
Typechecknpx tsc --noEmitpnpm exec tsc --noEmityarn tsc --noEmitbun x tsc --noEmit
Testnpx jest / npx vitest runpnpm testyarn testbun test
Lintnpx eslint .pnpm lintyarn lintbun lint
Buildnpx tsc / npx vite buildpnpm buildyarn buildbun run build

Python

ActionCommand
Typecheckmypy <package> / pyright
Testpytest / nox / tox
Lintruff check / flake8 / pylint
Format checkruff format --check . / black --check .

Go

ActionCommand
Build / Typecheckgo build ./...
Testgo test ./...
Lintgolangci-lint run / go vet ./...
Format checkgofmt -l .

Rust

ActionCommand
Typecheckcargo check --all-targets
Testcargo test --all
Lintcargo clippy --all-targets -- -D warnings
Format checkcargo fmt --check

Ruby

ActionCommand
Testbundle exec rspec
Lintbundle exec rubocop

Java

ActionMavenGradle
Testmvn test./gradlew test
Lintmvn checkstyle:check./gradlew checkstyleMain
Buildmvn package./gradlew build

Kotlin

ActionCommand
Test./gradlew test
Lint./gradlew ktlintCheck / ./gradlew detekt

.NET (C# / F#)

ActionCommand
Testdotnet test
Lintdotnet format --verify-no-changes
Builddotnet build

Elixir

ActionCommand
Testmix test
Lintmix credo --strict
Format checkmix format --check-formatted
Buildmix compile --warnings-as-errors

PHP

ActionCommand
Testvendor/bin/phpunit / vendor/bin/pest
Lintvendor/bin/phpstan analyse
Format checkvendor/bin/pint --test

Flutter / Dart

ActionCommand
Testflutter test / dart test
Lintflutter analyze / dart analyze
Format checkdart format --set-exit-if-changed .

Swift (iOS)

ActionCommand
Testxcodebuild test -scheme <scheme> -destination '...' / swift test
Lintswiftlint lint
Format checkswiftformat --lint .

Monorepo orchestrators

ToolCommand
Nxnx run-many --target=test --all
Turborepoturbo run test
pnpm workspacepnpm -r test
Bazelbazel test //...

Hard rule

When authoring spec §8, always prefer commands from the project’s own task runner or manifest scripts. The fallback table is a last resort for new projects without configured scripts. If even the fallback does not apply, mark §8 with TBD — verification commands missing; clarify with user before implementation.