Stats
Actions
Tags
From sub-test-engineer
Runs a workflow completion check on Stop and a dependency/requirement resolver on every Write/Edit. Writes files via the resolver script.
2 events · 2 hooks
Safety signals detected in this hook configuration
Where this hook configuration is defined
Defined inline in plugin.json manifest
Event handlers and matchers — expand Raw Configuration for the full JSON
root=$(git rev-parse --show-toplevel 2>/dev/null); if [ -n "$root" ]; then changed=$(git -C "$root" diff --name-only HEAD -- '*Test.kt' '*Test.java' '*Spec.kt' '*.test.ts' '*.spec.ts' 2>/dev/null); if [ -z "$changed" ]; then echo '[Hook] No test changes — skipping'; exit 0; fi; cd "$root" && if [ -f gradlew ]; then ./gradlew test --quiet 2>&1 | tail -5; elif [ -f package.json ]; then npm test -- --silent 2>&1 | tail -10; fi; result=$?; if [ $result -ne 0 ]; then echo 'Generated tests failed. Fix before ending.'; exit 2; fi; fiEdit|Writefile=$(echo "$CLAUDE_TOOL_INPUT" | jq -r '.file_path // .path // empty' 2>/dev/null); if [ -n "$file" ] && echo "$file" | grep -qE '(Test|Spec)\.(kt|java|ts|tsx)$'; then echo "[Hook] Compile-checking test: $file"; cd "$(git rev-parse --show-toplevel 2>/dev/null || echo .)" && if echo "$file" | grep -qE '\.(kt|kts)$'; then ./gradlew compileTestKotlin --quiet 2>&1 | tail -10 || true; elif echo "$file" | grep -qE '\.java$'; then ./gradlew compileTestJava --quiet 2>&1 | tail -10 || true; elif echo "$file" | grep -qE '\.(ts|tsx)$'; then npx tsc --noEmit 2>&1 | tail -10 || true; fi; finpx claudepluginhub hungrytech/hungrytech-claude-skills --plugin sub-test-engineer