diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-05-13 12:07:30 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-05-13 12:15:16 -0700 |
| commit | ad2db13001d57250f109a251fbbf199d1d5660b3 (patch) | |
| tree | 93316d4b2061e6f06c4b114bf590eb3bb1c968ee /evals/bin/skill-called | |
| parent | 3d6dc90c6d2b28ec449df94ff60f43797d1cfad6 (diff) | |
Move eval harness to submodulecodex/sup-251-superpowers-evals-submodule
Diffstat (limited to 'evals/bin/skill-called')
| -rwxr-xr-x | evals/bin/skill-called | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/evals/bin/skill-called b/evals/bin/skill-called deleted file mode 100755 index cf4fc50..0000000 --- a/evals/bin/skill-called +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -# Verify a specific superpowers Skill was invoked at least once. -# -# Usage: skill-called <skill-name> -# Example: skill-called superpowers:systematic-debugging -# -# Wraps the common case of `tool-arg-match Skill '.skill == "<name>"'` so -# scenario YAML doesn't have to embed jq quoting. -set -euo pipefail -command -v jq >/dev/null || { echo "jq required"; exit 127; } - -SKILL_NAME="$1" -FILE="tool_calls.jsonl" - -if [ ! -s "$FILE" ]; then - echo "FAIL: tool_calls.jsonl missing or empty" - exit 1 -fi - -COUNT=$( - jq -s --arg name "$SKILL_NAME" \ - '[.[] | select(.tool == "Skill" and (.args.skill // "") == $name)] | length' \ - "$FILE" -) - -if [ "$COUNT" -gt 0 ]; then - echo "PASS: Skill($SKILL_NAME) called $COUNT time(s)" - exit 0 -else - echo "FAIL: Skill($SKILL_NAME) never called" - exit 1 -fi |
