carry-over-fork-pr
Skill76 starsChanged 8 months agoMITView on GitHub
Take an outside contributor's fork PR to OpenTokenUsage, apply any fixes, and reopen it from a same-repo branch so ai-review runs, crediting them. Use when asked what a contributor's PR wants, to review, finish, or merge a fork PR, or when a PR shows ai-review as skipped.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- release-tagSkill
- tauri-developmentSkill
- tauri-v2Skill
- add-providerSkill
- close-resolved-issuesSkill
- releaseSkill
- run-opentokenusageSkill
- tauri-developmentSkill
- tauri-v2Skill
The file
Files
Carry over a fork PR
poweruserz/ai-review runs only when the PR's head is in this repo, so a fork PR never gets the ai-review
status and the ruleset blocks its merge. Never bypass that. Carry the PR over instead.
1. Read it
gh pr view <n> -R poweruserz/OpenTokenUsage --json title,author,body,isCrossRepository,files,statusCheckRollup
gh pr view <n> -R poweruserz/OpenTokenUsage --comments # summary comments only
gh api repos/poweruserz/OpenTokenUsage/pulls/<n>/comments # inline findings (Greptile, Codex) live hereExplain to the owner in plain words what it changes and why, and check every bot finding in the code. With ponytail ultra, name the parts the need doesn't justify. Wait for the owner's go-ahead before step 2.
2. Branch
git fetch origin pull/<n>/head:pr-<n>
git switch -c <topic-branch> pr-<n>Their commits stay as they are, keeping their authorship. Add the changes on top. Any UI string goes into all
11 locales. Commit with a message file (git commit -F), ending with:
Co-Authored-By: <login> <<id>+<login>@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>The numeric id comes from gh api users/<login> --jq .id.
3. Verify, merge main, push
bunx tsc --noEmit,bun run test, pluscd src-tauri && cargo check && cargo test --libwhen Rust changed.- A reviewer subagent reads the diff before the push.
git merge origin/mainif main moved, so the PR diff shows only this change.- Push, then open a PR whose body starts with "Carries over #
<n>by<login>(fork PRs don't runai-review)", lists what changed on top, and ends with the Claude Code line.
4. Close theirs
Comment on the original PR: thanks, the new PR's link, and what changed on top. Then
gh pr close <n>. Then follow the global ai-review loop (poll, fix findings, merge with a merge commit). If
the PR fixes an issue, close it with the close-resolved-issues skill once it merges.
Deleting the local pr-<n> branch needs the owner's approval (and the git hook blocks git branch -D).
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.

