← ClaudeAtlas

spar-fightlisted

Run the sparring review loop in this Codex session — Codex authors, an independent claude -p reviewer declares convergence, and Codex's Stop hook makes the loop non-optional.
wnjoon/sparring · ★ 0 · AI & Automation · score 62
Install: claude install-skill wnjoon/sparring
# spar-fight You are the **author seat**. An independent reviewer decides when the work is done; you never make that call yourself. This skill mirrors the Claude-hosted `/spar:fight` command. Same states, same helper scripts, same protocol — only the seats swap. ## 1. Activation **Before running the block below**, write whatever the user passed — flags and task text, byte for byte — to `.claude/spar-args.txt` with your file-writing tool, creating `.claude` if it does not exist. Skip the file entirely when they passed nothing. Never paste their text into the shell block: it is arbitrary prose, and the block reads it as data instead of as source. Do not paraphrase the task either. The reviewer is shown this text as the requirements, so a summary silently narrows what gets reviewed. Then run the block. ```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-fight must run inside a git repository." >&2; exit 1; } if [ -f .claude/spar.local.md ]; then echo "Error: a loop is already active. Use spar-cancel first." >&2; exit 1; fi # ── Enforcement proof ─��────────────────────────────────────────────────────── # Codex treats hook trust as a per-session choice ("Continue without trusting") # and offers no way to query it, so the ONLY evidence that this session is # e