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.
Drive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge.
$ npx skills add dyoshikawa/rulesync --skill goal-pr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install dyoshikawa/rulesync goal-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/dyoshikawa/rulesync.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.rulesync/skills/goal-pr .claude/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .claude/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-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 dyoshikawa/rulesync --skill goal-pr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install dyoshikawa/rulesync goal-pr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.rulesync/skills/goal-pr .agents/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .agents/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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 dyoshikawa/rulesync --skill goal-pr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install dyoshikawa/rulesync goal-pr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.rulesync/skills/goal-pr .cursor/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .cursor/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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/dyoshikawa/rulesync.git --path .rulesync/skills/goal-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 dyoshikawa/rulesync --skill goal-pr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install dyoshikawa/rulesync goal-pr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.rulesync/skills/goal-pr .gemini/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .gemini/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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 dyoshikawa/rulesync goal-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 dyoshikawa/rulesync --skill goal-pr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .github/skills && cp -r skills-src/.rulesync/skills/goal-pr .github/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .github/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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 dyoshikawa/rulesync --skill goal-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 dyoshikawa/rulesync goal-pr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/dyoshikawa/rulesync.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.rulesync/skills/goal-pr .opencode/skills/goal-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 "goal-pr" agent skill from https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/goal-pr into .opencode/skills/goal-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "goal-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.
goal-prDrive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge.
Goal PR is an agent skill from dyoshikawa/rulesync. Drive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge. Use when the user wants to finish a PR by reviewing, fixing, and merging it, or triggers on "the goal-pr skill".
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Pull requests. The repository describes itself as: A Utility CLI for AI Coding Agents. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 625bf98. 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:
gitghpnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, gh and pnpm, 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.
Goal PR loads about 1.4k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 837 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 dyoshikawa/rulesync at commit 625bf98, republished under its MIT licence (© dyoshikawa). 837 words, ~1,423 tokens.
.claude/skills/goal-pr/SKILL.md (or your agent's skills folder).target_pr = the user's request
This skill drives a pull request all the way to merge. It repeatedly runs
the review-pr skill, fixes every finding of severity mid or above, and merges the PR
once a review round reports no mid-or-above findings.
If target_pr is provided (e.g. 123, #123, or a PR URL), use it.
Otherwise, look for the PR of the current branch:
gh pr view --json number,title,state,headRefName 2>/dev/nullIf no PR exists yet, create one (this satisfies the "PR is the goal" intent):
commit-push-pr skill to commit the current changes, push the
branch, and open a PR.target_pr to the freshly created PR number.Confirm that the current local branch is the PR's head branch, because the fix phase below must commit and push fixes onto that branch. If they differ, ask the user how to proceed and stop.
The loop exits when a single review round satisfies both of:
mid, high, or critical (only low findings,
or none at all, may remain).fail or
pending.Set a hard safety cap of 10 iterations. If the exit condition is still not met at the cap:
mid (no high or
critical), merge anyway: record the remaining findings with the
create-scrap-issue skill so they are tracked, then go to Section 3.
mid findings are not merge blockers.high / critical finding remains, or CI is red), stop the
loop and report the remaining findings and failing CI instead of merging.Repeat the following until the exit condition is satisfied or the cap is hit.
Use the review-pr skill with target_pr. It assigns each finding a
severity (low / mid / high / critical) and a sequential number, and also
reports the GitHub Actions workflow status.
Note: the review-pr skill only reads remote state and must not switch the local branch.
Keep that constraint intact during the review phase.
Use both the findings and the GitHub Actions status from the review result.
mid + high + critical == 0 and CI is green (no fail / pending
check): exit the loop and go to Section 3.mid-or-above findings, or any CI check is failing: proceed to
the fix phase to address them.pending: wait for the checks to
finish (re-check with gh pr checks <pr>), then re-evaluate. Do not proceed to
merge while checks are pending.Fix every finding of severity mid or above on the current branch (you may also
fix low findings opportunistically). Unlike the review phase, this phase works
on the local branch directly:
Edit the relevant files to address each mid-or-above finding. If you
intentionally reject a finding, record the reason and treat it as resolved.
Run pnpm cicheck (or the narrower pnpm cicheck:code / cicheck:content
when appropriate) and fix any failures before continuing.
Stage only the files you changed for the fix (review git status first so
unrelated or generated files are not swept in), commit with a descriptive
message, and push to the PR's head branch:
git status
git add <changed files>
git commit -m "<message>"
git push origin HEADEmit a short status line such as
Iteration N — mid: X, high: Y, critical: Z; pushed fixes, then return to
Section 2-1 so the updated PR (and its CI) is reviewed again.
Only reach this step once the exit condition in Section 1 holds — clean findings
and green CI. Merge the PR by using the merge-pr skill with
target_pr. That skill verifies the PR is open, checks GitHub Actions status,
merges with gh pr merge --admin --merge, posts a thank-you comment, and cleans
up the local branch.
Safety rules for the merge:
fail or pending. gh pr merge --admin
bypasses required checks, so it must not be used to force past red or
in-progress CI. If CI is failing, return to the fix phase; if it is pending,
wait..github/**) or the
release/publish pipeline, or adds a new runtime dependency, do not
auto-merge. Stop and ask the user to confirm, since these changes carry
higher risk. Bumping an existing dependency, adding a dev dependency, or
editing package.json scripts and metadata does not need confirmation.After the loop ends, report to the user:
Merged (exit condition met and PR merged), Merged at cap
(only mid findings left at the cap; merged with a scrap issue), or Capped
(a high / critical finding or red CI left at the cap; not merged).© dyoshikawa, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .rulesync/skills/goal-pr of dyoshikawa/rulesync.
Open the folder on GitHubat commit 625bf98
Goal 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 |
|---|---|---|---|---|---|---|
| Goal PR this skilldyoshikawa/rulesync | 1.5k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Check PRonyx-dot-app/onyx | 32k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| PR Design DocOpenHands/OpenHands | 90k | — | ~2.4k | Automated safety check: Pass | MIT | |
| WooCommerce Code Reviewwoocommerce/woocommerce | 11k | 3 repos | ~1.1k | Automated safety check: Pass | Custom licence |
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.
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
onyx-dot-app/onyx
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.
OpenHands/OpenHands
For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…
woocommerce/woocommerce
Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.
payloadcms/payload
A skill your agent uses when a Payload pull request needs a concise visual walkthrough for reviewers.
dyoshikawa/rulesync
Maps rulesync feature implementations to upstream coding-agent documentation.
dyoshikawa/rulesync
Babysit a Dependabot dependency-bump PR all the way to merge: verify the author is the genuine Dependabot bot, diagnose and resolve any CI failure (excluding or fixing a breaking bump when needed)…
dyoshikawa/rulesync
Commit current changes, push to remote, and create or update a pull request.
dyoshikawa/rulesync
Manages git worktrees using git-worktree-runner (gtr). An agent skill from dyoshikawa/rulesync.
dyoshikawa/rulesync
Cut a release end to end: use the draft-release skill to open the release PR and draft GitHub release, wait for CI to turn green, run the merge-pr skill to merge the release PR, then update the…
dyoshikawa/rulesync
List open pull requests where the ball is in the author's court: CI is failing, review comments are unaddressed, or a maintainer question is awaiting the author's reply.
Categories
Drive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge. Goal PR is an agent skill from dyoshikawa/rulesync. Drive a pull request to a clean state and merge it: run the review-pr skill, fix every mid-or-above finding, and repeat until no mid-or-above findings remain, then merge.
Goal PR fits situations like: the user wants to finish a PR by reviewing; triggers on the goal-pr skill.
Run `npx skills add dyoshikawa/rulesync --skill goal-pr -a claude-code`. Or copy the skill folder (.rulesync/skills/goal-pr in dyoshikawa/rulesync) into .claude/skills/goal-pr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add dyoshikawa/rulesync --skill goal-pr -a codex`. Or copy the skill folder (.rulesync/skills/goal-pr in dyoshikawa/rulesync) into .agents/skills/goal-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 dyoshikawa/rulesync --skill goal-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/goal-pr, .gemini/skills/goal-pr, .github/skills/goal-pr and .opencode/skills/goal-pr in your project.
Going by SKILL.md and its folder, Goal PR needs the command-line tools its instructions call (git, gh and pnpm).
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.
Goal 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 1.4k tokens (SKILL.md is roughly 5.7k 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 Goal PR: Finishing a Development Branch (obra/superpowers, 297k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and PR Design Doc (OpenHands/OpenHands, 90k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
dyoshikawa (a GitHub user) maintains it in dyoshikawa/rulesync, which has 1,509 GitHub stars. The repository holds 40 skills in this directory. The repository was last updated on October 9, 2026.
Source: dyoshikawa/rulesync on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.