next-batchlisted
Install: claude install-skill opendatadiscovery/odd-team
# /next-batch — autonomous rev-2 batch driver
This skill is the inner-body of the overnight autonomous loop. One invocation = one full batch end-to-end. `/loop 75m /next-batch` fires this every 75 minutes; each invocation runs to completion synchronously within a single agent turn.
## Path resolution (run BEFORE pre-flight)
The agent-prompt templates in this SKILL use `<WORKSPACE_ROOT>`, `<REPO_ROOT>`, and `<DOCS_REPO>` as placeholders so the SKILL does not embed any maintainer-specific absolute path. The orchestrator (you, the agent invoking the SKILL) MUST substitute them at runtime before passing prompts to subagents. Resolve them like this:
```bash
WORKSPACE_ROOT=$(git rev-parse --show-toplevel) # current repo root
REPO_ROOT=$(realpath "$WORKSPACE_ROOT/../odd-platform")
DOCS_REPO=$(realpath "$WORKSPACE_ROOT/../documentation")
```
Substitute these into every Agent prompt below. Never hardcode an absolute path into a committed file (memory: `feedback_no_hardcoded_absolute_paths`).
## Pre-flight (FIRST 5 actions in order — abort if any fails)
0. **Resolve sprint branch.** Read `state/sprint-themes.yaml` and extract `policy.push_target_branch`. This is the long-lived sprint branch every batch commits to. Substitute `<SPRINT_BRANCH>` everywhere below with that value. If the key is absent or empty → ABORT with "sprint-themes.yaml policy.push_target_branch unset".
1. **Branch check.** `git rev-parse --abbrev-ref HEAD` must equal `<SPRINT_BRANCH>`. If it doesn't, ABOR