summaryrefslogtreecommitdiff
path: root/tests/skill-triggering/run-all.sh
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2025-12-11 21:10:00 -0800
committerJesse Vincent <jesse@fsck.com>2025-12-17 16:44:52 -0800
commitae0ef56b442c106e4faec603bf65ba89c6c2cf39 (patch)
tree2ffaa4f8b2f3fd0226933e9c909ed24fd8ea28e5 /tests/skill-triggering/run-all.sh
parent030a222af19c1f3a93c6eb876a7422d8e4fc0162 (diff)
Add skill triggering test framework
Creates tests/skill-triggering/ to validate skills trigger correctly from naive prompts (without explicitly naming the skill). Tests 6 skills: - systematic-debugging - test-driven-development - writing-plans - dispatching-parallel-agents - executing-plans - requesting-code-review All 6 tests pass - skills trigger correctly based on their descriptions.
Diffstat (limited to 'tests/skill-triggering/run-all.sh')
-rwxr-xr-xtests/skill-triggering/run-all.sh60
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/skill-triggering/run-all.sh b/tests/skill-triggering/run-all.sh
new file mode 100755
index 0000000..bab5c2d
--- /dev/null
+++ b/tests/skill-triggering/run-all.sh
@@ -0,0 +1,60 @@
+#!/bin/bash
+# Run all skill triggering tests
+# Usage: ./run-all.sh
+
+set -e
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+PROMPTS_DIR="$SCRIPT_DIR/prompts"
+
+SKILLS=(
+ "systematic-debugging"
+ "test-driven-development"
+ "writing-plans"
+ "dispatching-parallel-agents"
+ "executing-plans"
+ "requesting-code-review"
+)
+
+echo "=== Running Skill Triggering Tests ==="
+echo ""
+
+PASSED=0
+FAILED=0
+RESULTS=()
+
+for skill in "${SKILLS[@]}"; do
+ prompt_file="$PROMPTS_DIR/${skill}.txt"
+
+ if [ ! -f "$prompt_file" ]; then
+ echo "⚠️ SKIP: No prompt file for $skill"
+ continue
+ fi
+
+ echo "Testing: $skill"
+
+ if "$SCRIPT_DIR/run-test.sh" "$skill" "$prompt_file" 3 2>&1 | tee /tmp/skill-test-$skill.log; then
+ PASSED=$((PASSED + 1))
+ RESULTS+=("✅ $skill")
+ else
+ FAILED=$((FAILED + 1))
+ RESULTS+=("❌ $skill")
+ fi
+
+ echo ""
+ echo "---"
+ echo ""
+done
+
+echo ""
+echo "=== Summary ==="
+for result in "${RESULTS[@]}"; do
+ echo " $result"
+done
+echo ""
+echo "Passed: $PASSED"
+echo "Failed: $FAILED"
+
+if [ $FAILED -gt 0 ]; then
+ exit 1
+fi