codex-triage
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Triage unresolved GitHub review threads (chatgpt-codex-connector, Cursor Bugbot, and any other review bot or human) — classify against current HEAD, fix real findings in one batch, reply, then resolve. Use when gating a merge, when branch protection blocks on conversation resolution, or when a bot re-reviews after push.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apple-notesSkill
- board-opsSkill
- closeoutSkill
- deploy-verifySkill
- dns-and-registrarsSkill
- drive-grok-tuiSkill
- fleet-coordinationSkill
- fleet-infraSkill
- land-laneSkill
- mac-cleanupSkill
- owner-copySkill
- pickup-seatSkill
- secret-handoffSkill
- sentence-gapSkill
- session-startSkill
- unstick-prSkill
- windows-releaseSkill
- phone-harnessSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Do not classify from the stale diff hunk.
- Distinctive: line 37
Do not resolve without a reply.
- Distinctive: line 51
Never blind-resolve to force a merge.
- Distinctive: line 65
If NOT on main, open a follow-up PR from the same branch.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review-thread triage (Universal)
Name is historical (codex-connector). Apply to every unresolved thread on the PR: Codex, Cursor Bugbot, Copilot, humans.
Unresolved threads block merge on every protected fleet repo even when checks are green.
1. Fetch unresolved threads
OWNER="$(gh repo view --json owner --jq .owner.login)"
REPO="$(gh repo view --json name --jq .name)"
gh api graphql -f query="query { repository(owner:\"$OWNER\", name:\"$REPO\") { pullRequest(number: <N>) { reviewThreads(first: 100) { nodes { id isResolved path line comments(first: 10) { nodes { author { login } body diffHunk } } } } } } }" \
--jq '.data.repository.pullRequest.reviewThreads.nodes | map(select(.isResolved==false))'2. Classify against current HEAD
Three buckets only:
- addressed — already fixed on this branch after the comment.
- false_positive — bot misread context, or the rule does not apply here.
- real — valid. For money-path / auth / execution / policy / billing files, have a second agent (or a frontier child) adversarially verify before you change behavior.
Do not classify from the stale diff hunk. Read the file at HEAD.
3. Fix reals in one batch
One commit with a regression test per behavior change. Push before resolving any thread (race in step 5).
4. Reply, then resolve
Do not resolve without a reply.
gh api graphql -f query='mutation($t:ID!,$b:String!){addPullRequestReviewThreadReply(input:{pullRequestReviewThreadId:$t,body:$b}){comment{id}}}' -F t=<threadId> -f b=<text>
gh api graphql -f query='mutation($t:ID!){resolveReviewThread(input:{threadId:$t}){thread{isResolved}}}' -F t=<threadId>Reply shape (file/PR text = two ASCII spaces between sentences):
- Real:
Fixed in <short-sha>. <function>. Test: test/foo.test.ts. - False positive: why the rule does not apply, then resolve.
- Addressed already: cite the SHA that landed the fix.
Never blind-resolve to force a merge. The gate exists because some findings are real (commit-author, licenses, money-path).
5. Auto-merge race
The instant the last thread resolves and CI is green, auto-merge fires. Bots re-review every push and often never converge.
- Resolving the last thread is merging the PR. Triple-check first.
- Round-2 comments often land on an already-merged PR. Before resolving as "fixed," confirm the fix reached main:
git fetch origin
git merge-base --is-ancestor <fix-sha> origin/main && echo "on main" || echo "NOT on main"If NOT on main, open a follow-up PR from the same branch. Expect squash-merge conflicts — merge main in; this branch's newer rounds win in its own files.
6. Stop at round 2–3
Later rounds on a merged PR are mostly noise. Triage genuine hazards; surface the rest to the owner (Notes + board comment). the agent's job on these is the security/contract read, not infinite bot ping-pong.
Canon
/Users/jay/apps/AGENT-SYNC.md— Merge requirements- App
AGENTS.mdPre-Commit / Handoff - Skills:
unstick-pr,land-lane
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

