spar-readylisted
Install: claude install-skill wnjoon/sparring
# spar-ready
Turns a spec into a plan and stops. It never runs the review loop; `spar-fight`
does that. This skill mirrors the Claude-hosted `/spar:ready` command.
## 1. Setup
**Before running the block below**, write whatever the user passed — flags and
the spec path or description, byte for byte — to `.claude/spar-args.txt` with your
file-writing tool, creating `.claude` if it does not exist. Never paste their text
into the shell block; the block reads the file as data.
```bash
set -e
SPAR_ROOT="${SPAR_PLUGIN_ROOT:-}"
[ -n "$SPAR_ROOT" ] || SPAR_ROOT=@@SPAR_PLUGIN_ROOT@@
[ -d "$SPAR_ROOT" ] || { echo "Error: set SPAR_PLUGIN_ROOT to sparring's plugins/spar." >&2; exit 1; }
git rev-parse --git-dir >/dev/null 2>&1 || { echo "Error: spar-ready must run inside a git repository." >&2; exit 1; }
if [ -f .claude/spar-plan.local.md ]; then echo "Error: a plan is already ready. Run spar-fight, or spar-cancel first." >&2; exit 1; fi
if [ -f .claude/spar.local.md ]; then echo "Error: a fight loop is already active. Use spar-cancel first." >&2; exit 1; fi
# Arguments arrive in a FILE, never pasted into this block — a spec description is
# arbitrary prose, and a line matching a heredoc delimiter would close the heredoc
# early and hand the rest to the shell. Read once, then removed.
RDY_ARGS_FILE=".claude/spar-args.txt"
RDY_RAW="$(cat "$RDY_ARGS_FILE" 2>/dev/null || true)"
rm -f "$RDY_ARGS_FILE"
RESOLVED="$("$SPAR_ROOT/commands/spar-ready-resolve.sh" "$RDY_RAW")" || { printf '%s\n' "