Exit code 0: approval detected or PR closed (treat as pass)
Exit code 1: timed out (treat as incomplete; ask Maintainer)
1---2name: watch-uat-github-pr3description: Watch UAT PR (GitHub)4---56# Watch UAT PR (GitHub)78## Purpose910UAT comment polling is historically brittle. This skill standardizes the watch loop so the agent can reliably wait for Maintainer feedback/approval.1112Preferred: use GitHub chat tools to poll PR state + comments (avoids terminal output/pager issues).13Fallback: use the stable wrapper command.1415Fallback path uses the repo wrapper script `scripts/uat-watch-github.sh`, which repeatedly calls `scripts/uat-github.sh poll` until:1617- approval keywords are detected, or18- the PR is closed/merged, or19- a timeout is reached.2021## Hard Rules2223### Must2425- Use `scripts/uat-watch-github.sh` (single stable command).26- Treat any detected approval (`approved|passed|accept|lgtm`) as UAT passed.27- Stop watching and report when the PR is closed.2829### Must Not3031- Spam comments or post follow-ups while waiting.32- Run many ad-hoc `gh` commands; prefer the wrapper.3334## Actions3536### Preferred: Poll using GitHub chat tools3738Repeatedly:3940- Fetch PR details (state)41- Fetch PR conversation comments42- Stop and report if the PR is closed/merged43- Treat any detected approval (`approved|passed|accept|lgtm`) as UAT passed4445### Fallback: One-command wrapper4647### 1. Watch the PR4849```bash50scripts/uat-watch-github.sh <pr-number>51```5253### 2. Optional: Tune polling interval / timeout5455```bash56scripts/uat-watch-github.sh <pr-number> --interval-seconds 60 --timeout-seconds 360057```5859## Output6061- Exit code `0`: approval detected or PR closed (treat as pass)62- Exit code `1`: timed out (treat as incomplete; ask Maintainer)
Run npx skillmds@latest add oocx/watch-uat-github-pr in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Watch UAT PR (GitHub) It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
oocx (@oocx) published this skill. Their other Agent Skills are listed on their SkillMD profile.