Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Executes implementation plans by dispatching isolated subagents per task with two-stage spec and code quality review.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/review-package
1#!/usr/bin/env bash2# Generate a review package: commit list, stat summary, and the net3# diff with extended context, written to a file the reviewer reads in one4# call. Using the recorded per-task BASE (not HEAD~1) keeps multi-commit5# tasks intact.6#7# Usage: review-package BASE HEAD [OUTFILE]8# Default OUTFILE: <repo-root>/.superpowers/sdd/review-<base7>..<head7>.diff9# (named per range, so a re-review after fixes gets a distinct fresh file).10set -euo pipefail1112if [ $# -lt 2 ] || [ $# -gt 3 ]; then13echo "usage: review-package BASE HEAD [OUTFILE]" >&214exit 215fi1617base=$118head=$21920git rev-parse --verify --quiet "$base" >/dev/null || { echo "bad BASE: $base" >&2; exit 2; }21git rev-parse --verify --quiet "$head" >/dev/null || { echo "bad HEAD: $head" >&2; exit 2; }2223if [ $# -eq 3 ]; then24out=$325else26dir=$("$(cd "$(dirname "$0")" && pwd)/sdd-workspace")27out="$dir/review-$(git rev-parse --short "$base")..$(git rev-parse --short "$head").diff"28fi2930{31echo "# Review package: ${base}..${head}"32echo33echo "## Commits"34git log --oneline "${base}..${head}"35echo36echo "## Files changed"37git diff --stat "${base}..${head}"38echo39echo "## Diff"40git diff -U10 "${base}..${head}"41} > "$out"4243commits=$(git rev-list --count "${base}..${head}")44echo "wrote ${out}: ${commits} commit(s), $(wc -c < "$out" | tr -d ' ') bytes"45