Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix(scripts): replace hardcoded developer paths in test-v1-vs-v2.sh

Trevin Chow378be7cfd5e2
diff --git a/skills/last30days/scripts/test-v1-vs-v2.sh b/skills/last30days/scripts/test-v1-vs-v2.sh
index 50f60858..a809362b 100755
--- a/skills/last30days/scripts/test-v1-vs-v2.sh
+++ b/skills/last30days/scripts/test-v1-vs-v2.sh
@@ -6,7 +6,8 @@ set -euo pipefail
# using `claude --print` to capture real end-to-end output.
SKILL_DIR="$HOME/.claude/skills/last30days"
-REPO_DIR="/Users/mvanhorn/last30days-skill"
+REPO_DIR="${REPO_DIR:-$(cd "$(dirname "$0")/.." && pwd)}"
+CLAUDE="${CLAUDE:-$(command -v claude || echo claude)}"
# Safety: always restore V2 SKILL.md on exit/crash
cleanup() {
@@ -101,7 +102,7 @@ run_version() {
# Run claude --print with the skill invocation
# No timeout — claude --print exits on its own; kill manually if stuck
- if /Users/mvanhorn/.local/bin/claude --print \
+ if "$CLAUDE" --print \
"/last30days $query" \
> "$outfile" 2>"$errfile"; then
local end_time