Chalk Labs
Need help deploying merge-pr?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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-merge-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/merge-pr
What's inside
- Skill name
merge-pr- Description
- Merge a GitHub PR via squash after /preparepr. Use when asked to merge a ready PR. Do not push to main or modify code. Ensure the PR ends in MERGED state and clean up worktrees after success.
- License
- MIT
- Instructions
- 187 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Merge PR
**See also:** [pr-workflow](../../workflows/pr-workflow.md) for the full PR workflow and maintainer checkpoints.
## Overview
Merge a prepared PR via `gh pr merge --squash` and clean up the worktree after success.
## Inputs
- Ask for PR number or URL.
- If missing, auto-detect from conversation.
- If ambiguous, ask.
## Safety
- Use `gh pr merge --squash` as the only path to `main`.
- Do not run `git push` at all during merge.
- Do not run gateway stop commands. Do not kill processes. Do not touch port 18792 (browser CDP relay) or 19001 (gateway).
## 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.
- Read `.local/review.md` and `.local/prep.md` in the worktree. Do not skip.
- Clean up the real worktree directory `.worktrees/pr-<PR>` only after a successful merge.
- Expect cleanup to remove `.local/` artifacts.
## Completion Criteria
- Ensure `gh pr merge` succeeds.
- Ensure PR state is `MERGED`, never `CLOSED`.
- Record the merge SHA.
- Run cleanup only after merge success.
## First: Create a TODO Checklist
Create a checklist of all merge steps, print it, then continue and execute the commands.
## Setup: Use a Worktree
Use an isolated worktree for all merge 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 Local Artifacts (Mandatory)
Expect these files from earlier steps:
- `.local/review.md` from `/reviewpr`
- `.local/prep.md` from `/preparepr`
```sh
ls -la .local || true
if [ -f .local/review.md ]; then
echo "Found .local/review.md"
sed -n '1,120p' .local/review.md
else
echo "Missing .local/review.md. Stop and run /reviewpr, then /preparepr."
exit 1
fi
if [ -f .local/prep.md ]; then
echo "Found .local/prep.md"
sed -n '1,120p' .local/prep.md
else
echo "Missing .local/prep.md. Stop and run /preparepr first."
exit 1
fi
```
## Steps
1. Identify PR meta
```sh
gh pr view <PR> --json number,title,state,isDraft,author,headRefName,baseRefName,headRepository,body --jq '{number,title,state,isDraft,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. Run sanity checks
Stop if any are true:
- PR is a draft.
- Required checks are failing.
- Branch is behind main.
```sh
# Checks
gh pr checks <PR>
# Check behind main
git fetch origin main
git fetch origin pull/<PR>/head:pr-<PR>
git merge-base --is-ancestor origin/main pr-<PR> || echo "PR branch is behind main, run /preparepr"
```
If anything is failing or behind, stop and say to run `/preparepr`.
3. Merge PR and delete branch
If checks are still running, use `--auto` to queue the merge.From NJX-njx/opensoul, MIT.
More from NJX-njx/opensoul
- 0.511score
review-pr
NJX-njx
Review-only GitHub pull request analysis with the gh CLI.
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
healthcheck
NJX-njx
Host security hardening and risk-tolerance configuration for OpenSoul deployments.
SkillDFreshness: D★ 59Claude Code +9 - 0.508score
prepare-pr
NJX-njx
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★ 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 - 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.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
prose
NJX-njx
OpenProse VM skill pack.
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
blucli
NJX-njx
BluOS CLI (blu) for discovery, playback, grouping, and volume.
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.
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.508score
prepare-pr
NJX-njx
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★ 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
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get merge-pr running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
merge-pr skill. Agent Mart. https://agentmart.dev/skills/njx-njx-merge-pr (last updated 2026-10-24)