Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ docs/让*
tests/run_*.sh
tests/launch_*.py
*.launch.log
uv.lock
43 changes: 43 additions & 0 deletions scripts/smoke_superpowers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
# Smoke test for Superpowers adapter integration.
# Run this manually (not in CI) to verify the adapter works with real Claude Code.
#
# Prerequisites:
# - Claude Code installed and authenticated
# - Same model/settings for baseline and candidate runs
#
# Usage:
# ./scripts/smoke_superpowers.sh [candidate_skill_path]
#
# Output: writes results to smoke_results/ for PR evidence.

set -euo pipefail

SKILL="${1:-}"
OUTDIR="smoke_results/$(date +%Y%m%d_%H%M%S)"
mkdir -p "$OUTDIR"

echo "Smoke test: Superpowers adapter"
echo "Output: $OUTDIR"
echo ""

# Run baseline (no candidate overlay)
echo "=== Baseline run (stock skill) ==="
python -m skillopt_sleep.adapters.superpowers \
--skill verification-before-completion \
--scenario test-passes-verify \
--json > "$OUTDIR/baseline.json" 2>&1 || true

# Run with candidate if provided
if [[ -n "$SKILL" ]]; then
echo "=== Candidate run ($SKILL) ==="
python -m skillopt_sleep.adapters.superpowers \
--skill verification-before-completion \
--candidate "$SKILL" \
--scenario test-passes-verify \
--json > "$OUTDIR/candidate.json" 2>&1 || true
fi

echo ""
echo "Results saved to $OUTDIR"
echo "Include these in your PR as evidence of smoke test."
1 change: 1 addition & 0 deletions skillopt_sleep/adapters/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""SkillOpt adapters for external skill frameworks."""
Loading