Open PR and Monitor
Read
AGENTS.md$develop-a-featurefor fix waves$commit-a-changebefore committingwait_for_pr_feedback.mjs --help
Workflow
- Open a PR or resolve the existing PR. For a new PR, require a clean tree, fetch
origin/main, stop onmain, revieworigin/main..HEAD, run the narrow validation the diff needs, push, and open againstmain. Use a commit-format title, a short body,Closes #<number>when applicable, and ready-for-review unless the user asked for draft. - Return the clickable PR URL immediately.
- Pin the current head SHA. Use
automation_updateto create or update one Codex heartbeat on the current thread to run every five minutes. Do not create a detached automation or duplicate heartbeat. - The heartbeat prompt must name this skill, the PR URL or number, and the pinned head SHA. On each run it must invoke the script exactly once:
node .codex/skills/open-pr-and-monitor/scripts/wait_for_pr_feedback.mjs --pr <number> --head-sha <sha> [--repo <owner/repo>]
- Use that snapshot to check every visible status, top-level comment, review, unresolved thread, and merge-readiness field. If work is still pending, end the heartbeat run without polling.
- For actionable feedback, failures, or conflicts, inspect the exact GitHub surface and respond there. Apply valid fixes through
$develop-a-feature, commit through$commit-a-change, push, then update the heartbeat prompt with the new head SHA. - Stop the heartbeat when the pinned head is green, actionable feedback is resolved, and merge readiness is clean; when the PR is merged or closed; or when the run is genuinely blocked or redirected.
Output
Return only the PR URL.