-
Notifications
You must be signed in to change notification settings - Fork 0
Tests
sync-wiki edited this page Sep 6, 2026
·
1 revision
Generated from the repo's README by
scripts/sync-wiki.sh. Edit the README, not this page.
Zero-dependency validation suite using Node's built-in test runner:
node --testValidates every JSON file, hook config and event names, skill/agent frontmatter, shell syntax, skill registration, and file paths referenced in SKILL.md, then runs the hook + statusline against sample input. Runs in CI on Ubuntu and macOS (bash 3.2, BSD coreutils) plus shellcheck (.github/workflows/test.yml).
Smoke-test one-liners:
CLAUDE_PLUGIN_ROOT=$(pwd) CLAUDE_PROJECT_DIR=$(pwd) bash hooks/scripts/session-start.sh # empty stdout = all files under threshold
echo '{"context_window":{"used_percentage":72},"workspace":{"current_dir":"'"$PWD"'"},"model":{"display_name":"Fable 5"}}' | bash scripts/statusline-command.sh
CLAUDE_PLUGIN_ROOT=$(pwd) bash skills/config/debug-hooks/scripts/validate-hooks.sh hooks/hooks.json
claude plugin validate . --strict