/timbroddin-skills:codex-review-loopfrom timbroddin-skills
Automates repeated Codex PR review-fix cycles: posts @codex review, waits for results, applies fixes, and loops until clean or cap reached.
Ships in timbroddin-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Drive the GitHub Codex bot through repeated review-fix rounds on the current pull request: post @codex review, wait for the bot to finish, apply fixes for every actionable remark, push, and request another review. Repeat until Codex comes back with nothing actionable or you hit the iteration cap.
This is a closed loop you run mostly unattended. The work per round is: request → wait → read findings → fix → push → request again. The two things that make it reliable are (1) detecting precisely when this round's review has landed (not a stale one), and (2) waiting an amount of time that matches how long Codex actually takes rather than a fixed guess.
Confirm these before starting; if one is missing, say so and stop rather than guessing.
gh is installed and authenticated (gh auth status).gh pr view --json number,url,headRefName,state. If there's no PR, offer to create one (gh pr create) — Codex reviews PRs, not bare branches.Knowing the bot's mechanics is what lets you wait correctly instead of sleeping blindly:
@codex review (optionally with focus, e.g. @codex review for security regressions).You will detect "this round is done" by recording the moment you post the trigger, then polling for a Codex-authored review whose timestamp is after that moment. Anchoring on the timestamp is essential — a PR usually already has older reviews, and you must not mistake those for the new one.
Capture the loop parameters and the PR:
gh pr view --json number.chatgpt-codex-connector (a Bot account) but can vary. Don't hardcode blindly — after the first review lands, note the actual author login and reuse it for the rest of the loop.Tell the user the plan in one line: which PR, that you'll loop up to N rounds, and that you'll auto-apply fixes and push.
Record the current UTC time as the round's anchor, then post the trigger:
gh pr comment <PR> --body "@codex review"
Grab the anchor timestamp from the comment you just created so it's authoritative:
gh pr view <PR> --json comments \
--jq '.comments | max_by(.createdAt) | .createdAt'
Don't block the session on a fixed sleep. Use ScheduleWakeup so the loop survives across turns, and learn the cadence from the first round:
T).0.8 × T (a touch early), then poll on ~90–120s intervals. This adapts to the repo — a small diff might review in 90s, a large one in 8 minutes.45 minutes elapse on a single round with no review, stop and report: Codex may be down, the app may not be installed, or the PR may be too large. Don't loop forever.Optional sanity check while waiting: confirm the 👀 reaction appeared on your trigger comment. The reaction count lives on the issue-comment object — find your comment and read its reactions:
gh api repos/{owner}/{repo}/issues/<PR>/comments \
--jq '.[] | select(.created_at >= "<ANCHOR>") | .reactions.eyes'
If after ~3 minutes there's no reaction and no review, that's an early signal the app isn't picking up the job.
Poll for a Codex review created strictly after the anchor. Reviews and their inline comments come from different endpoints; check both:
# New review(s) from the bot since the anchor (body + state)
gh api repos/{owner}/{repo}/pulls/<PR>/reviews \
--jq '[.[] | select(.user.type=="Bot") | select(.submitted_at > "<ANCHOR>")]'
# Inline review comments since the anchor (the actual remarks, with file+line)
gh api repos/{owner}/{repo}/pulls/<PR>/comments \
--jq '[.[] | select(.user.type=="Bot") | select(.created_at > "<ANCHOR>")]'
{owner}/{repo} come from gh repo view --json owner,name. If both queries are empty, the review hasn't landed — go back to step 3 and reschedule. If a review object exists but you want the full inline remarks, the second query is where the line-level findings live.
Read every remark — review body and all inline comments. For each one:
After fixing, run the project's tests/build/lint to confirm you didn't regress anything — verify before you push, don't assert success on faith. Then commit and push to the PR branch:
git add -A && git commit -m "Address Codex review (round <i>)" && git push
Summarize when you stop, every time:
@codex review comment does. That's why step 6 loops back to step 2, not to a wait.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/app-store-asoGenerate optimized Apple App Store metadata recommendations with ASO best practices. Use this skill when analyzing app listings, optimizing metadata (title, subtitle, description, keywords), performing competitive analysis, or validating App Store listing requirements. Triggers on queries about App Store optimization, metadata review, or screenshot strategy./pickupPick up an issue that's ready for an agent and work it end-to-end. Reads the project issue tracker for issues carrying the AFK-ready triage label (default `ready-for-agent`), picks one, checks it's actually ready, then implements it via /tdd or /diagnose and opens a PR. Use when the user wants to grab an issue, work the next ready-for-agent ticket, start AFK work, or run /pickup. This is the "Work" entry point for the to-prd → to-issues → triage → pickup pipeline; it pairs with mattpocock/skills.Other plugins' skills for the same job
/swift-missing-translationsGenerated from the plugin's indexed repository (timbroddin/skills) — no native marketplace selected
npx claudepluginhub p/timbroddin-timbroddin-skills