setup-environment
Setup Environment
Section titled “Setup Environment”HARD GATE — HARD GATE — Environment setup must be idempotent and reproducible. If setup fails, provide clear error messages and remediation steps. Do NOT assume prior state.
Idempotent prep so BUILD phase commands succeed on first run.
Checklist
Section titled “Checklist”- Read
CLAUDE.md/CONVENTIONS.mdfor required runtimes and commands. - Verify runtime versions (
node -v,swift --version, etc.). - Install dependencies (
npm ci,bundle install, etc.) — prefer lockfile installs. - Copy
.env.example→.envif documented; never commit secrets. - Run smoke: lint + one fast test or
--versionon key tools. - Record versions in
specs/state.yamlunder Environment.
BCP Plus Counter (optional)
Section titled “BCP Plus Counter (optional)”The big-counter tool is an optional dependency for BCP Plus 13-dimension story sizing:
# Install from PyPI (recommended)pip install big-counter
# Or from npmnpm install -g big-counterVerify the install: big-counter --version
Skip if BCP Plus sizing is not needed for this project.
Verify
Section titled “Verify”→ verify: test -f CLAUDE.md && grep -q 'Test' CLAUDE.md && echo "OK: CLAUDE.md has test table" || echo "MISSING: test commands"