AGENT SKILL

PR 阻塞问题最小复现

pr-blocker-min-repro

针对 BYOK 及相关回归问题,提供 PR 阻塞项的最小复现阶梯。

License 许可
MIT
最近更新
2026-11-14
Stars
★ 6
Forks
0

01 前言 Front Matter

name
pr-blocker-min-repro
description
PR blocker minimal repro ladder for BYOK and related regressions

03 SKILL.md 正文

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

  • Run from repo root.
  • Keep provider/user isolation for parallel runs.
  • Stop climbing the ladder only when the blocker is conclusively reproduced.
  • If lower layers pass but browser fails, classify as UI/integration-specific.
  • Always attach concrete evidence paths and log lines to bead notes.

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

  • Confirm each worker reports TEST PASSED or explicit failure.
  • Grep worker logs for blocker signatures:
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
  • Verify screenshot + log consistency (no false screenshot claims).
  • Record exact evidence directory and critical lines per bead.

Advanced Patterns

  • If a layer passes but the bug seems environmental, jump to browser to verify full stack behavior.
  • When multiple providers are involved, isolate failures one provider at a time.
  • Use specific tests, not full suites, to reduce noise.
  • Capture first failure signatures; later errors can be cascading.

Bead Update Template

Use this pattern in bead notes:

  • Repro ladder results: unit=pass|fail, end2end=pass|fail, mcp=pass|fail, browser=pass|fail.
  • Classification: backend, mcp, ui, or external-provider.
  • Evidence: absolute path(s) + key log line(s).
  • Decision: keep open, close, or downgrade priority.

04 同仓库更多 Skills

jleechanorg
jleechanorg/jleechan-skills

disk-reclaim-playbook

Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.

★ 6
jleechanorg
jleechanorg/jleechan-skills

claudea-bench

Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr

Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).

★ 6
jleechanorg
jleechanorg/jleechan-skills

whisper

OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.

★ 6
jleechanorg
jleechanorg/jleechan-skills

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

★ 6
jleechanorg
jleechanorg/jleechan-skills

pr-report

This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.

★ 6