Add PR lifecycle hooks: Copilot reviewer enforcement, monitoring reminder, and monitor agent tuning#25
Conversation
…oring after gh pr create Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/4b58f439-58b7-48be-9e21-fdb5c4975ac5 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
…eadability Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/4b58f439-58b7-48be-9e21-fdb5c4975ac5 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
… on gh pr create Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/4b58f439-58b7-48be-9e21-fdb5c4975ac5 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/4b58f439-58b7-48be-9e21-fdb5c4975ac5 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
…der regex Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/4b58f439-58b7-48be-9e21-fdb5c4975ac5 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
…t restart Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/0819218d-f7ef-40c8-ae9a-7962ca512562 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
…, and finishing-a-development-branch Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/0819218d-f7ef-40c8-ae9a-7962ca512562 Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
… hook text Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/7cdce8b4-93c0-40dc-a40f-9aba4ab5bb7d Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds new GitHub CLI lifecycle hooks to nudge agents toward consistent PR hygiene (adding Copilot reviewer post-create and starting PR monitoring), and updates the pr-monitoring skill to better handle multi-PR sessions with lower GitHub API usage.
Changes:
- Add a PreToolUse hook to inject a reminder about adding
"@copilot"as a reviewer aftergh pr create. - Add a PostToolUse hook to remind agents to start
superpowers:pr-monitoringaftergh pr create. - Update
pr-monitoringguidance for multi-PR monitoring, worktree usage, and longer polling/session limits; alignfinishing-a-development-branchtext accordingly.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/pr-monitoring/SKILL.md | Expands monitoring guidance to cover multi-PR sessions, worktrees, bot-thread handling, and a 60-min / 10-min polling cadence. |
| skills/finishing-a-development-branch/SKILL.md | Adjusts autonomous-mode wording to prefer a single monitor agent for multiple PRs. |
| hooks/pretool-pr-review-reminder | New PreToolUse reminder injected before gh pr create about adding "@copilot" reviewer post-creation. |
| hooks/posttool-pr-created | New PostToolUse reminder injected after gh pr create to ensure superpowers:pr-monitoring is started. |
| hooks/hooks.json | Registers the new PreToolUse and PostToolUse hooks for Bash tool calls. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot apply changes based on the comments in this thread |
Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/14f51239-1ee9-4c89-8bf3-2353ea0d333a Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Agent-Logs-Url: https://github.com/GoCodeAlone/claude-superpowers/sessions/14f51239-1ee9-4c89-8bf3-2353ea0d333a Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Applied all 6 changes from the review (commits 695dabf and 3c7eed2):
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
intel352
left a comment
There was a problem hiding this comment.
Approved after checks passed and addressed review threads were resolved.
hooks/pretool-pr-review-reminder: soften hook from blocking to reminder; quote"@copilot"hooks/pretool-pr-review-reminder: switch reminder construction from string concatenation to heredochooks/posttool-pr-created: only emit reminder when PR creation succeeded (pr_url non-empty)skills/pr-monitoring/SKILL.md: add step to derive run-id fromgh pr checks --json detailsUrloutput before callinggh run viewskills/pr-monitoring/SKILL.md: adddatabaseId/urlto GraphQL reviewThreads query + document REST reply-in-thread mechanismskills/pr-monitoring/SKILL.md: after 3 failed revision rounds, leave thread unresolved and surface in timeout report (do NOT resolve)skills/pr-monitoring/SKILL.md: fix Safety Limits table — "leave thread unresolved, surface in timeout report" instead of "resolve thread"skills/pr-monitoring/SKILL.md: fix duplicate step label c. → d. in CI failure workflow steps