eval-pr
FreeSet up a git worktree to run and evaluate an upstream Pull Request locally in a flat worktree bare clone repository layout.
The English summary is being prepared. Showing the original description.
Evaluate Pull Requests for participant or experimenter UX changes, determine runtime behavioral impact, audit and synthesize Deliberate Lab's 7-part manual experiment test plans, and interactively co-author verification steps.
The English summary is being prepared. Showing the original description.
Run score Not tested
See how to installReview the instructions the agent will receive before you install.
pr-test-plan)This skill equips AI coding agents and human maintainers to evaluate incoming Pull Requests (or active feature worktrees) for participant and experimenter runtime changes, audit existing manual test instructions, and proactively synthesize Deliberate Lab's canonical 7-part manual experiment test plan.
It bridges the gap between high-level code diffs and concrete local verification—eliminating the cognitive burden of reverse-engineering experiment configurations while maintaining strict testing discipline.
Invoke this skill when:
eval-pr to understand how to configure and run an experiment before or after setting up a worktree.flowchart TD
Start["PR / Worktree Input"] --> Step1["Step 1: Code Path Filter<br>(gh pr diff --name-only)"]
Step1 --> TouchRuntime{"Touches frontend/, functions/,<br>utils/, or firestore/?"}
TouchRuntime -->|No| NonRuntime["Stop: Non-Runtime Code Paths<br>(No manual test plan required)"]
TouchRuntime -->|Yes| Step2["Step 2: Behavioral Impact Filter<br>(Diff inspection)"]
Step2 --> ChangesBehavior{"Alters user-experienced<br>runtime behavior?"}
ChangesBehavior -->|No: Pure Refactor / Tests| NoBehaviorChange["Stop: No Behavioral Change<br>(No manual test plan required)"]
ChangesBehavior -->|Yes| Step3["Step 3: Audit Existing Plan<br>(Check PR description against 7-part topology)"]
Step3 --> Step4["Step 4: Deduce / Refine Test Plan<br>(Inspect code diff)"]
Step4 --> Deduce{"Can deduce plan?"}
Deduce -->|Yes: High Confidence| Synthesize["Synthesize / Refine 7-Part Plan"]
Deduce -->|No: Ambiguous / Opaque| TargetedQuestions["Formulate Targeted Questions"]
NonRuntime --> Step5["Step 5: Present Findings Conversationally"]
NoBehaviorChange --> Step5
Synthesize --> Step5
TargetedQuestions --> Step5
Step5 --> Step6{"Step 6: Developer Authorizes<br>PR Comment?"}
Step6 -->|Yes| PostComment["Post comment via gh pr comment"]
Step6 -->|No| Done["Done / Ready for Local Testing"]
Start with an ultra-cheap listing of changed file paths before inspecting diffs, discussions, or CI checks:
# Remote Pull Request
gh pr diff <number> --name-only
# Local Evaluation Worktree or Feature Branch
git diff origin/main...HEAD --name-only
Deliberate Lab runtime experiment software lives in:
frontend/ (participant & experimenter UX, stage components, MobX stores)functions/ (Cloud Functions endpoints & Firestore triggers)utils/ (stage definitions, data schemas, validation)firestore/ (Firestore security rules & indexes)If none of the changed files touch frontend/, functions/, utils/, or firestore/ (e.g., changes strictly reside in .agents/, .github/, docs/, scripts/, README.md, or root configs):
"PR touches only non-runtime paths (
<file-list>). No manual experiment test plan required."
If any touched file is within frontend/, functions/, utils/, or firestore/, proceed to Step 2.
Once confirmed that changes touch runtime directories, inspect the diffs to determine if they actually produce an observable change in participant- or experimenter-experienced runtime behavior:
# Remote Pull Request
./.agents/skills/gh/scripts/gh-pr-view.sh <number>
gh pr diff <number>
# Local Evaluation Worktree or Feature Branch
git diff origin/main...HEAD
git log origin/main...HEAD --oneline
(Note: If operating inside a worktree where ./.agents is not local, reference the container root .agents/skills/gh/scripts/gh-pr-view.sh.)
If the changes fall into any of the following categories:
*.test.ts, test fixtures, or test utilities without modifying production code.package.json, tsconfig.json, linters, or Prettier settings.If no user-experienced behavior is changed:
"PR contains only non-behavioral changes (pure refactor, unit tests, or build configuration). No manual experiment test plan required."
Otherwise (changes affect participant stages, experimenter dashboard controls, agent mediator/participant prompts, Cloud Functions endpoints, or Firestore triggers/rules), proceed to Step 3.
Inspect the PR title, body description, and discussion comments. Evaluate whether the author provided manual verification instructions and whether they are clear, complete, and accurate based on Deliberate Lab's canonical 7-part experiment topology:
InfoStage ➔ ProfileStage ➔ ChatStage ➔ SurveyStage).Whether the PR already included a test plan or not, inspect the code diff to deduce or refine a ready-to-run 7-part test plan:
canDeducePlan = true)When code diffs clearly map to specific stages, UI components, configuration flags, or participant journeys (e.g. adding countdown timers to InfoStageConfig):
canDeducePlan = false)When changes involve subtle backend data migrations, low-level concurrency locks, or private logic without evident UI manifestations:
functions/src/ but does not indicate which participant action triggers this Cloud Function").Present the full evaluation to the developer in markdown:
./run_locally.sh (or paired with eval-pr).Offer to post the formatted test plan as a comment on the GitHub PR:
gh pr comment <number> --body "<formatted-comment>"
gh pr comment behind explicit human approval in the conversation.gh skill's temp file spillover pattern rather than risking truncated markdown.No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Set up a git worktree to run and evaluate an upstream Pull Request locally in a flat worktree bare clone repository layout.
The English summary is being prepared. Showing the original description.
Run GitHub CLI commands and inspect GitHub Issues and Pull Requests cleanly without PTY Glamour terminal truncation or comment-stripping traps.
The English summary is being prepared. Showing the original description.
Reflect on pairing sessions from the AI perspective using the FAR framework (Friction, Ambiguity, Repetition), present observations conversationally, and anchor generalizable improvements as GitHub issues or comments.
The English summary is being prepared. Showing the original description.
Inspect the local Deliberate Lab workspace environment, Node.js version, bare repository worktrees, remotes, git status, and toolchain readiness.
The English summary is being prepared. Showing the original description.
Deterministic synchronization of trunk, PR evaluation worktrees, and drift reporting in Deliberate Lab's bare repository workspace.
The English summary is being prepared. Showing the original description.