prepare-pr
Prepare a GitHub PR for merge by rebasing onto main, fixing review findings, running gates, committing fixes, and pushing to the PR head branch.
Skill by NJX-njx
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/njx-njx-prepare-pr
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prepare-pr
What's inside
- Skill name
prepare-pr- Description
- Prepare a GitHub PR for merge by rebasing onto main, fixing review findings, running gates, committing fixes, and pushing to the PR head branch. Use after /reviewpr. Never merge or push to main.
- License
- MIT
- Instructions
- 250 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Prepare PR
**See also:** [pr-workflow](../../workflows/pr-workflow.md) for the full PR workflow and maintainer checkpoints.
## Overview
Prepare a PR branch for merge with review fixes, green gates, and an updated head branch.
## Inputs
- Ask for PR number or URL.
- If missing, auto-detect from conversation.
- If ambiguous, ask.
## Safety
- Never push to `main` or `origin/main`. Push only to the PR head branch.
- Never run `git push` without specifying remote and branch explicitly. Do not run bare `git push`.
- Do not run gateway stop commands. Do not kill processes. Do not touch port 18792 (browser CDP) or 19001 (gateway).
- Do not run `git clean -fdx`.
- Do not run `git add -A` or `git add .`. Stage only specific files changed.
## Execution Rule
- Execute the workflow. Do not stop after printing the TODO checklist.
- If delegating, require the delegate to run commands and capture outputs.
## Known Footguns
- If you see "fatal: not a git repository", you are in the wrong directory. Use workspace root (`git rev-parse --show-toplevel`) or ask user.
- Do not run `git clean -fdx`.
- Do not run `git add -A` or `git add .`.
## Completion Criteria
- Rebase PR commits onto `origin/main`.
- Fix all BLOCKER and IMPORTANT items from `.local/review.md`.
- Run gates and pass.
- Commit prep changes.
- Push the updated HEAD back to the PR head branch.
- Write `.local/prep.md` with a prep summary.
- Output exactly: `PR is ready for /mergepr`.
## First: Create a TODO Checklist
Create a checklist of all prep steps, print it, then continue and execute the commands.
## Setup: Use a Worktree
Use an isolated worktree for all prep work.
```sh
REPO_ROOT=$(git rev-parse --show-toplevel)
cd "$REPO_ROOT"
# Sanity: confirm you are in the repo
git rev-parse --show-toplevel
WORKTREE_DIR=".worktrees/pr-<PR>"
```
Run all commands inside the worktree directory.
## Load Review Findings (Mandatory)
```sh
if [ -f .local/review.md ]; then
echo "Found review findings from /reviewpr"
else
echo "Missing .local/review.md. Run /reviewpr first and save findings."
exit 1
fi
# Read it
sed -n '1,200p' .local/review.md
```
## Steps
1. Identify PR meta (author, head branch, head repo URL)
```sh
gh pr view <PR> --json number,title,author,headRefName,baseRefName,headRepository,body --jq '{number,title,author:.author.login,head:.headRefName,base:.baseRefName,headRepo:.headRepository.nameWithOwner,body}'
contrib=$(gh pr view <PR> --json author --jq .author.login)
head=$(gh pr view <PR> --json headRefName --jq .headRefName)
head_repo_url=$(gh pr view <PR> --json headRepository --jq .headRepository.url)
```
2. Fetch the PR branch tip into a local ref
```sh
git fetch origin pull/<PR>/head:pr-<PR>
```
3. Rebase PR commits onto latest main
```sh
# Move worktree to the PR tip first
git reset --hard pr-<PR>
# Rebase onto current main
git fetch origin main
git rebase origin/main
```
If conflicts happen:
- Resolve each conflicted file.
- Run `git add <resolved_file>` for each file.
- Run `git rebase --continue`.
If the rebase gets confusing or you resolve conflicts 3 or more times, stop and report.
4. Fix issues from `.local/review.md`
- Fix all BLOCKER and IMPORTANT items.
- NITs are optional.
- Keep scope tight.
Keep a running log in `.local/prep.md`:From NJX-njx/opensoul, MIT.
More from NJX-njx/opensoul
- 0.511score
slack
NJX-njx
Use when you need to control Slack from OpenSoul via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
merge-pr
NJX-njx
Merge a GitHub PR via squash after /preparepr.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
healthcheck
NJX-njx
Host security hardening and risk-tolerance configuration for OpenSoul deployments.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
review-pr
NJX-njx
Review-only GitHub pull request analysis with the gh CLI.
SkillDFreshness: D★ 59Claude Code +9 - 0.491score
1password
NJX-njx
Set up and use 1Password CLI (op).
SkillDFreshness: D★ 59Claude Code +9 - 0.486score
apple-notes
NJX-njx
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes).
SkillDFreshness: D★ 59Claude Code +9 - 0.486score
bluebubbles
NJX-njx
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillDFreshness: D★ 59Claude Code +9 - 0.483score
prose
NJX-njx
OpenProse VM skill pack.
SkillDFreshness: D★ 59Claude Code +9 - 0.483score
apple-reminders
NJX-njx
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete).
SkillDFreshness: D★ 59Claude Code +9 - 0.483score
github
NJX-njx
Interact with GitHub using the `gh` CLI.
SkillDFreshness: D★ 59Claude Code +9 - 0.480score
blogwatcher
NJX-njx
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
SkillDFreshness: D★ 59Claude Code +9 - 0.480score
coding-agent
NJX-njx
Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.
SkillDFreshness: D★ 59Claude Code +9
Signals
- Stars
- 59
- Forks
- 10
- Open issues
- 0
- Last commit (this folder)
- Mar 1, 2026 (8 months ago)
- Last release
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NJX-njx/opensoul
- Website
- opensoul-web.vercel.app/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.257score
prepare-pr
Fallenproud
Prepare a GitHub PR for merge by rebasing onto main, fixing review findings, running gates, committing fixes, and pushing to the PR head branch.
SkillDFreshness: D★ 1Claude Code +9 - 0.244score
prepare-pr
cogpy
Prepare a GitHub PR for merge by rebasing onto main, fixing review findings, running gates, committing fixes, and pushing to the PR head branch.
SkillDFreshness: DClaude Code +9
More from NJX-njx
- 0.511score
healthcheck
NJX-njx
Host security hardening and risk-tolerance configuration for OpenSoul deployments.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
slack
NJX-njx
Use when you need to control Slack from OpenSoul via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
review-pr
NJX-njx
Review-only GitHub pull request analysis with the gh CLI.
SkillDFreshness: D★ 59Claude Code +9 - 0.511score
merge-pr
NJX-njx
Merge a GitHub PR via squash after /preparepr.
SkillDFreshness: D★ 59Claude Code +9 - 0.491score
1password
NJX-njx
Set up and use 1Password CLI (op).
SkillDFreshness: D★ 59Claude Code +9 - 0.486score
bluebubbles
NJX-njx
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillDFreshness: D★ 59Claude Code +9
Cite this page
prepare-pr skill. Agent Mart. https://agentmart.dev/skills/njx-njx-prepare-pr (last updated 2026-10-24)