Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Bring one of the maintainer's own stale pull requests (a branch on jggonz/os8088 that main has moved past) back to mergeable - merge main into it in a scratch worktree, decide whether it is still…
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jggonz/os8088 refresh-stale-pr --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .claude/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .claude/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-prType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jggonz/os8088 refresh-stale-pr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .agents/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .agents/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jggonz/os8088 refresh-stale-pr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .cursor/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .cursor/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jggonz/os8088.git --path .claude/skills/refresh-stale-pr--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jggonz/os8088 refresh-stale-pr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .gemini/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .gemini/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jggonz/os8088 refresh-stale-prInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .github/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .github/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jggonz/os8088 --skill refresh-stale-pr -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jggonz/os8088 refresh-stale-pr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jggonz/os8088.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/refresh-stale-pr .opencode/skills/refresh-stale-pr && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "refresh-stale-pr" agent skill from https://github.com/jggonz/os8088/tree/main/.claude/skills/refresh-stale-pr into .opencode/skills/refresh-stale-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "refresh-stale-pr", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
refresh-stale-prBring one of the maintainer's own stale pull requests (a branch on jggonz/os8088 that main has moved past) back to mergeable - merge main into it in a scratch worktree, decide whether it is still…
Refresh Stale PR is an agent skill from jggonz/os8088. Bring one of the maintainer's own stale pull requests (a branch on jggonz/os8088 that main has moved past) back to mergeable - merge main into it in a scratch worktree, decide whether it is still valid and still needed against what main now contains, fix what main's drift broke or what the PR got wrong, run the gates and an end-to-end check against real build artefacts, push to the PR's own branch, rewrite the PR body's validation, and (only when asked) squash-merge it. Use when the user asks whether a PR is…
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `LESSONS.md`).
It sits in Development, covering Pull requests and Git worktrees. The licence is MIT.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 95f7e97. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitghpython3makeFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Refresh Stale PR loads about 2.6k tokens when it runs. Until then it costs about 178 tokens; SKILL.md has 1,236 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jggonz/os8088 at commit 95f7e97, republished under its MIT licence (© jggonz). 1,236 words, ~2,574 tokens.
.claude/skills/refresh-stale-pr/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.The PRs this is for are the maintainer's own: a branch on jggonz/os8088,
usually one focused change, cut from a main that has since moved by tens of
commits. Nobody else is going to push to it. The question is never "is this
code good in the abstract" - it was good enough to open - but "is it still
right on the main that exists today, and does anyone still need it".
It exists because PR #200 (the imager keeping SYSTEM.CFG) was 28 commits
stale, merged with no conflict at all, passed every test it shipped - and was
still wrong on today's main: #203 had taken FAT16 volumes to 2GB and the
in-OS installer writes partition type 06h past 32MB, which the PR's reader
refused. Git, the PR's tests and the fast tier all reported nothing. Finding
it took reading what main gained around the PR, not in its files.
Read LESSONS.md before step 3.
The user is the maintainer. Decisions that are theirs - close a PR, change
its scope, merge it - go through AskUserQuestion or wait for their word;
everything else you decide and record in the PR body.
The number(s) may arrive as the argument (/refresh-stale-pr 200, or
200 201 for several, done one at a time). With none, list the candidates -
the open PRs whose base has moved - and ask:
gh pr list --state open --json number,title,headRefName,headRepositoryOwner,updatedAt,isDraftThen the facts:
gh pr view <N> --json number,title,state,isDraft,headRefName,headRepositoryOwner,\
baseRefName,mergeable,mergeStateStatus,additions,deletions,changedFiles,body,commits
gh pr view <N> --json comments,reviews --jq '.comments[].body, .reviews[].body'
git fetch -q origin main <headRef>
BASE=$(git merge-base origin/main origin/<headRef>)
git rev-list --count $BASE..origin/main # how stale
gh pr diff <N> --name-onlyheadRepositoryOwner is not jggonz ⇒ stop and use review-fork-pr:
pushing to origin would not update a fork's PR (that skill's LESSONS §1).state is not OPEN ⇒ say so and stop.Tell the user the shape in two lines: what it does, how far behind, which files, conflicting or not.
git rev-parse --is-shallow-repository # true => git fetch --unshallow first (docs/UPSTREAM.md rule 0)
git worktree list | grep <headRef> # the branch is often ALREADY checked out elsewhereThe PR's branch is usually still checked out in the worktree it was written
in (../os8088-<feature>), so git worktree add <path> <headRef> refuses.
Do not touch that worktree - it may hold the user's uncommitted work. Make a
local branch off the remote head instead, and push it to the PR's branch by
name at the end:
git worktree add -b pr<N>-refresh /tmp/pr<N> origin/<headRef>/tmp/pr<N>, not the scratchpad: QMP and the zharness use AF_UNIX sockets
with a ~104-byte path limit, and a scratchpad path is too long for them. The
user's main checkout stays untouched for the whole run - other sessions write
to it.
main incd /tmp/pr<N> && git merge --no-edit origin/mainA conflict is resolved by docs/UPSTREAM.md's defaults (ours for what the
PR deliberately changed, theirs for what it merely lacks). Then the checks a
clean merge reports nothing about:
grep -oE '^#+ [0-9.]+' SPEC.md | sort | uniq -d # a § number both sides took
python3 tools/checkdocs.py
python3 tools/os88index.py --check # docs/INDEX.md is generatedA § number main took while the PR sat open is the common collision: the
PR's section renumbers (it is the newcomer now), with every reference to it.
Run the PR's own tests on the merged tree before editing anything - that separates "main's drift broke it" from "my fix broke it".
This is the step the skill exists for. Two questions, answered with evidence:
Still needed? - has main already done this, or removed the thing it
changes?
git log --oneline $BASE..origin/main -- <every file the PR touches>
git log --oneline $BASE..origin/main --grep '<the feature's key words>'Grep main for the PR's new function names, flags and SPEC wording. If
main superseded it, the answer is to recommend closing, with the
commit that superseded it - ask before closing, never close unasked.
Still valid? - the PR's files merging cleanly says nothing about the code they call or the formats they read. For every module, tool, constant and on-disk format the PR depends on (not just the ones it edits):
git diff $BASE origin/main --stat -- <dependencies>
git diff $BASE origin/main -- <dependency> | less # read itThen read the commit titles of everything main gained and ask, of each one
in the PR's subject area, does the PR's assumption still hold? Usual
suspects: a format version bump (PKG_FMT, DRV_VER, SC_VER), a file
that moved (SYSTEM/, APPDATA/), a limit that grew (volume size, cluster
size, entry count), a new geometry, an API slot relayout, a knob made
default. Check the kernel's own acceptance rules (what it mounts, what it
reads, what version it refuses) against what the PR accepts - a host tool
stricter than the kernel refuses real users' disks.
Say the verdict to the user plainly - valid and needed / needs fixes / superseded - with the commit or file that decides it, before fixing.
Fixes go in their own commit after the merge commit, with a message that
names what main changed and why the PR's old assumption broke. Each fix
gets a test that fails without it. Update the PR's SPEC.md section and docs
in the same commit - SPEC.md is updated before or with the code, never after
(CLAUDE.md).
Keep improvements inside the PR's scope. A tempting adjacent cleanup is a separate PR; a refresh that grows is a review nobody asked for.
Cheapest first, and every one on the MERGED tree:
python3 -m unittest tests/unit/<the PR's tests>.py
make -j8 > /tmp/pr<N>-make.log 2>&1; echo "exit $?" # the fast tier rides it
make test-full > /tmp/pr<N>-full.log 2>&1; echo "exit $?" # the pre-merge gateRead the exit code and the os88test: summary line, not a wrapper's tail -
make failing after a green-looking last line is a known trap. A SKIP (needs marty|cc) row is environment, and is reported as skipped with its
reason, never as passed.
Then an end-to-end check against a real artefact, because unit tests
build their own fixtures and fixtures encode the author's assumptions (that
is exactly how #200's 04h-only reader passed its own tests). Use what the
change actually consumes: the main checkout's build/ images, a volume laid
out the way the kernel or installer lays one out, os88disk.py --verify-hdd / --verify on whatever the change writes. A change with a UI
claim gets the functional-check skill's on-the-glass pass.
Every check you write must be able to fail. A comparison of a value with itself prints "ok" forever (LESSONS.md §3).
git push origin HEAD:<headRef>
gh pr view <N> --json commits --jq '.commits[-1].oid' # the PR moved?Append to the PR body - never replace the author's text - a section headed
Brought up to date with main (<date>): what was merged (how many commits,
conflicts or not), each fix with the main change that made it necessary,
and the validation with real numbers (tests, tiers with pass/fail/skip,
the end-to-end check and what it ran on). Keep the body's "still
outstanding" line honest - a hardware test nobody ran is still outstanding.
End with the Claude Code attribution line.
gh pr view <N> --json body -q .body > /tmp/pr<N>-body.md
# ...append...
gh pr edit <N> --body-file /tmp/pr<N>-body.mdReady-to-merge is the deliverable. Merge only when the invocation asked for it ("...then merge it") or the user says so now; otherwise ask once, with the verdict and the evidence in the question.
gh pr merge <N> --squash --admin
gh pr view <N> --json state,mergeCommit -q '.state + " " + .mergeCommit.oid'--admin because the ruleset wants a review the sole maintainer cannot
give. One gh mutation per command - never chain merge, retarget and
branch delete with &&; a stacked PR's base vanishing closes it.
git worktree remove /tmp/pr<N> && git branch -D pr<N>-refresh
git -C <main checkout> pull --ff-only # only if that checkout is clean and on mainLeave the PR's original worktree and remote branch alone unless the user asks - it may hold work in progress, and a merged branch is theirs to delete.
The report: the verdict (valid / fixed / superseded) and what decided it, each fix in a sentence, the gates with their numbers, what was NOT tested and why, and the merge commit or the PR link.
review-fork-pr (pushing elsewhere, hand-holding comment).review-fork-pr's workflow shape or /code-review rather than inventing one.© jggonz, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .claude/skills/refresh-stale-pr of jggonz/os8088.
Open the folder on GitHubat commit 95f7e97
Refresh Stale PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Refresh Stale PR this skilljggonz/os8088 | 104 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Pre-Release PR Triagejamiepine/voicebox | 57k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Cap Feature Building WorkflowCapSoftware/Cap | 23k | — | ~2.5k | Automated safety check: Warn | Custom licence | |
| Om Auto Fix Issuego-musicfox/go-musicfox | 2.6k | 1 repos | ~5k | Automated safety check: Notes | GPL-3.0 | |
| Codewhale Landing Workflowcodewhale-hq/Codewhale | 41k | — | ~1.6k | Automated safety check: Pass | MIT |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
jamiepine/voicebox
Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.
CapSoftware/Cap
Builds a Cap feature in an isolated Git worktree with disposable dev resources, verification, a recorded demo and a neutral pull request, started with /building.
go-musicfox/go-musicfox
Fix or implement a tracker issue end to end from a single command — takes an issue id or a plain problem description (filed first via om-prepare-issue), classifies, then drives the bug autofix chain…
codewhale-hq/Codewhale
Decides how verified work should reach main, directly, in a worktree or on an integration branch, while keeping contributor credit and respecting merge gates.
jtenniswood/espcontrol
Clean up completed Git branches and worktrees for this repository both locally and on GitHub.
jggonz/os8088
Functionally verify a change on the glass before it merges - boot the built OS in QEMU, drive the actual UI the change proposes (mouse, keys, menus) over QMP, screenshot the evidence for every…
jggonz/os8088
Build a native 8086 assembly remake of a console/arcade game (reference = a disassembly or source tree) as an os8088 package, the way apps/drmario (DrMarco), apps/1942 and apps/excitebike were made…
jggonz/os8088
Port an existing program - written in C or in any other language - to os8088 as a C package (SPEC.md §73), the way apps/cword ported Microsoft Word 1.1a.
jggonz/os8088
Review an incoming pull request that comes from someone else's fork of os8088 - fetch it, merge main into it, review it with a team of agents for memory safety, lost-from-main regressions, redraw…
jggonz/os8088
Build os8088 and publish the floppy images to the os8088.com website repo as a pull request, plus a GitHub release on the OS repo.
jggonz/os8088
Give an os8088 package a COLOUR FACE on VGA/EGA - fewer redraws first, then a neater layout, styled panes and bevelled, picture-faced buttons with their captions inside - while the Hercules and CGA…
Categories
Bring one of the maintainer's own stale pull requests (a branch on jggonz/os8088 that main has moved past) back to mergeable - merge main into it in a scratch worktree, decide whether it is still…. Refresh Stale PR is an agent skill from jggonz/os8088. Bring one of the maintainer's own stale pull requests (a branch on jggonz/os8088 that main has moved past) back to mergeable - merge main into it in a scratch worktree, decide whether it is still valid and still needed against what main now contains, fix what main's drift broke or what the PR got wrong, run the gates and an end-to-end check against real build artefacts, push to the PR's own branch, rewrite the PR body's validation, and (only when asked) squash-merge it.
Refresh Stale PR fits situations like: the user asks whether a PR is still valid; bring main into an older PR; make a stale PR ready to merge.
Run `npx skills add jggonz/os8088 --skill refresh-stale-pr -a claude-code`. Or copy the skill folder (.claude/skills/refresh-stale-pr in jggonz/os8088) into .claude/skills/refresh-stale-pr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jggonz/os8088 --skill refresh-stale-pr -a codex`. Or copy the skill folder (.claude/skills/refresh-stale-pr in jggonz/os8088) into .agents/skills/refresh-stale-pr in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jggonz/os8088 --skill refresh-stale-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refresh-stale-pr, .gemini/skills/refresh-stale-pr, .github/skills/refresh-stale-pr and .opencode/skills/refresh-stale-pr in your project.
Going by SKILL.md and its folder, Refresh Stale PR needs the command-line tools its instructions call (git, gh, python3 and make). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Refresh Stale PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Refresh Stale PR: Finishing a Development Branch (obra/superpowers, 297k stars), Pre-Release PR Triage (jamiepine/voicebox, 57k stars), Cap Feature Building Workflow (CapSoftware/Cap, 23k stars) and Om Auto Fix Issue (go-musicfox/go-musicfox, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jggonz (a GitHub user) maintains it in jggonz/os8088, which has 104 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: jggonz/os8088 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.