Use when managing Codex review iterations for a PR and you must enforce preflight risk-layer checks and post-merge learning capture.
Run a 5-minute polling loop for PR review threads, but enforce a preflight Codex Context gate and capture post-merge learning when Codex churn occurs.
gh is authenticated..github/PULL_REQUEST_TEMPLATE.md.gh pr view --json number.Run:
GH_OWNER=<owner>
GH_REPO=<repo>
PR_NUMBER=<number>
gh api graphql -f owner="$GH_OWNER" -f name="$GH_REPO" -F number=$PR_NUMBER -f query='query($owner:String!,$name:String!,$number:Int!){repository(owner:$owner,name:$name){pullRequest(number:$number){reactionGroups{content users{totalCount}} reviewThreads(first:100){nodes{isResolved path line originalLine comments(first:50){nodes{author{login} body createdAt reactions(content: THUMBS_UP){totalCount}}}}} comments(first:100){nodes{author{login} body createdAt reactions(content: THUMBS_UP){totalCount}}}}}}}'
Codex Review: Didn't find any major issues (exact phrase) OR a thumbs-up signal:
👍 or :+1: OR reactions(content: THUMBS_UP).totalCount > 0 OR PR body reactionGroups has content: THUMBS_UP with users.totalCount > 0main, then pull locally. Proceed to Step 6.@codex review.
gh pr comment <PR_NUMBER> --body "@codex review"main on remote (e.g., gh pr merge --merge or project-required strategy).main locally.docs/retrospective/ entries if this repo uses them.Codex Review: Didn't find any major issues or a thumbs-up signal (see Step 3).@codex review if a Risk Layer Trigger applies but the Addendum is incomplete.git push unless this skill is explicitly requested).@codex review without filling Risk Layer Addendum when required.| Excuse | Reality | | ------------------------------------------- | --------------------------------------------------------- | | "Preflight is optional" | If Risk Layer Trigger applies, the addendum is mandatory. | | "Codex asked again, so we can skip context" | Missing context amplifies churn. |
npx skills add victorGPT/codex-pr-review-loop下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer