| name | run-checks |
| description | Run the project quality gate through the auto-detected package manager and test runner, then summarize failures concisely. |
| when_to_use | Use WHEN asked to run checks, verify the build, make sure it passes, or verify work before a PR — including the verification step of `/implementation` after realizing To-Do items. Safe for Claude to run before declaring work done. This is the lightweight author-time gate; the final pipeline gate is `/ci-gate`, which also fixes failures and records the result. |
| argument-hint | (no args) |
| model | inherit |
Run the quality gate
Run every step through the detector. Never hardcode the package manager or runner.
source "${CLAUDE_PROJECT_DIR}/.claude/lib/detect-toolchain.sh"
echo "Toolchain: PM=$PM, tests=$TEST_RUNNER, root=$PROJECT_ROOT"
run_typecheck
run_lint
run_tests
run_build
Order: typecheck, lint, tests, build. After a failure, capture the signal and
continue independent steps. Mark missing scripts or binaries as skipped.