Pr blocker min repro

From jleechanorg/claude-commands · View interactive version

Pr blocker min repro is an AI agent skill from the GitHub repository jleechanorg/claude-commands. PR blocker minimal repro ladder for BYOK and related regressions

How to use this skill

Skill file

Workflow type: workflow. Scope: github.

Overview

The four-layer minimal repro protocol provides a fast escalation ladder for PR blockers:

1) unit -> 2) end2end -> 3) testing_mcp -> 4) testing_ui browser.

Use this when a PR has unresolved blocker beads and you need evidence-backed status updates quickly.

Rules

Blocker Discovery

If beads list is unstable, query the JSONL database directly (requires .beads/ to be initialized in the repo):

[ -f .beads/issues.jsonl ] && \
jq -r 'select(.labels // [] | index("pr-blocker")) | [.id, .title, .status, .priority] | @tsv' \
  .beads/issues.jsonl | sort -t$'\t' -k4 -n

Project-specific examples and runtime limits

The commands below are retained BYOK examples. Resolve the actual project's documented

runner, test paths, provider authorization, fixtures, and ports before using them.

Do not assume ./vpython exists or invoke providers merely to verify skill discovery.

When invoked through 4layer, its ordered, pass-only ladder owns escalation: a missing

runner/fixture is unsupported, not permission to jump layers. The environmental

browser pattern below applies only after the required preceding layers pass.

Use the existing authorized issue tracker; Beads commands do not authorize creating a

new tracker or posting notes externally. Preserve evidence without exposing secrets.

Quick Start Commands

1) Unit

./vpython -m pytest \
  $PROJECT_ROOT/tests/test_settings_api.py::TestSettingsAPI::test_update_and_clear_byok_key_reflects_has_custom_flag \
  $PROJECT_ROOT/tests/test_settings_api.py::TestSettingsAPI::test_update_settings_allows_openrouter_provider -q

2) End-to-End

./vpython -m pytest \
  $PROJECT_ROOT/tests/test_end2end/test_faction_settings_end2end.py::TestFactionSettingsEndToEnd::test_byok_api_key_clear_roundtrip \
  $PROJECT_ROOT/tests/test_end2end/test_llm_provider_end2end.py::TestLLMProviderSettingsEndToEnd::test_round_trips_openrouter_and_gemini_preferences -q

3) MCP / HTTP Local Server

./vpython testing_mcp/faction/test_faction_settings_real.py \
  --byok-providers gemini,openrouter,cerebras \
  --byok-parallel-workers 1

4) Browser (Final Escalation)

BYOK_CASES=1,2 \
BYOK_PARALLEL=true \
BYOK_PROVIDERS=gemini,openrouter,cerebras \
BYOK_TEST_PORT=8088 \
./vpython testing_ui/streaming/test_streaming_byok_browser.py

Evidence Review Checklist

rg -n "status: 400|Failed to create campaign|non-stream|invalid-key validation message|did not update state|Traceback" \
  /tmp/$PROJECT_NAME/browser/byok-parallel-*/**/worker.log

Advanced Patterns

Bead Update Template

Use this pattern in bead notes:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.