The gate took its root from `git rev-parse --show-toplevel || pwd`, so running it by absolute path from another directory found no skills and exited 2. Derive the root from the script's own location; the optional argument still overrides it. The real-corpus test accepted exit 0 or 1, so it only caught a crash. It now asserts exit 0. New cases cover a foreign cwd, a skill without references/sources.md being skipped, several failing skills all being reported, and an errored skill alongside a failing one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EGHFJextYtVQseaHPDDhxB
7.8 KiB
Executable File
7.8 KiB
Executable File