# Commit push PR

> Commit push PR is an open-source agent skill for developer tools. Takes jj commits through description, bookmarks, push, and stacked GitHub PRs. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/jeffh/claude-plugins/tree/main/jj/skills/commit-push-pr
- **Repository:** https://github.com/jeffh/claude-plugins
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** commit-push-pr
- **Collection:** https://github.com/jeffh/claude-plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through shipping a Jujutsu (jj) stack to GitHub. It works in three stages: writing commit descriptions for undescribed changes, creating one bookmark per commit tracked against origin, and pushing before opening a pull request for each bookmark. Each PR is based on the previous bookmark in the stack, or on trunk for the first one, and is opened as ready for review rather than as a draft.

The skill relies on the GitHub CLI (gh) and jj commands such as jj status, jj log, jj bookmark and jj git push. It first checks the GitHub login, remotes, working-copy state and open PRs, and it reuses existing bookmarks and PRs instead of duplicating them. If the repository has a PR template at .github/PULL_REQUEST_TEMPLATE.md, the body follows that template; otherwise it writes a short body without a test plan section. It is designed to avoid adding AI attribution or co-author lines to commits and PRs.

It is meant for the whole jj-to-PR flow. Plain commits and rebasing are handled by other skills in the same collection, and the skill asks how to proceed when a push or PR step fails.

## When your agent uses it

> Run the full jj-to-PR workflow — describe changes, create per-commit bookmarks, push to origin, and open stacked pull requests with sensible defaults. This skill should be used when the user wants to "commit and open a PR", "push and create PRs", or ship a jj stack. Fills out a repo PR template (.github/PULL_REQUEST_TEMPLATE.md) when present; never adds Claude attribution or a Test plan section unless the template asks for it. Not for plain commits (use jj:commit) or rebasing (use jj:rebase).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/jeffh/claude-plugins/tree/HEAD/jj/skills/commit-push-pr)
- [License: Apache-2.0](https://github.com/jeffh/claude-plugins/tree/HEAD/jj/skills/commit-push-pr)

## Features

- **Commit description writing:** Adds descriptions to undescribed commits in the working stack before any bookmarks are made.
- **Per-commit bookmark creation:** Creates one tracked bookmark per commit, named after the commit with a GitHub username prefix.
- **Stacked pull requests:** Opens one PR per bookmark, each based on its parent bookmark or trunk.
- **PR template support:** Fills in the repository's pull request template sections when one exists.
- **Existing state checks:** Reviews remotes, status, the stack log and open PRs so existing work is reused.

## Good for

- Open pull requests for my jj stack of commits
- Push my changes to origin and create stacked PRs
- Create bookmarks for each commit in my current stack
- Fill out the PR template for my changes and publish it

## Install

### Claude Code

This skill ships in the `jj` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add jeffh/claude-plugins
/plugin install jj@jeffh-claude-plugins
```

Or copy only this skill to `~/.claude/skills/commit-push-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/commit-push-pr &&
cp -R "$tmp/jj/skills/commit-push-pr" ~/.claude/skills/commit-push-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/commit-push-pr` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/commit-push-pr` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/commit-push-pr &&
cp -R "$tmp/jj/skills/commit-push-pr" ~/.agents/skills/commit-push-pr &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/commit-push-pr` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/commit-push-pr` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/commit-push-pr &&
cp -R "$tmp/jj/skills/commit-push-pr" ~/.cursor/skills/commit-push-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/commit-push-pr` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/jeffh/claude-plugins.git --path jj/skills/commit-push-pr
```

Or copy the folder to `~/.gemini/skills/commit-push-pr` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/commit-push-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/jeffh/claude-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/commit-push-pr &&
cp -R "$tmp/jj/skills/commit-push-pr" ~/.copilot/skills/commit-push-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/commit-push-pr` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/jeffh/claude-plugins.git
```

Then copy `claude-plugins/jj/skills/commit-push-pr` into your agent's skills folder as `commit-push-pr`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which tools does Commit push PR need?

It uses the jj command line tool for version control and the GitHub CLI (gh) to read the login and open or create pull requests.

### Does Commit push PR add Claude attribution to commits or PRs?

No. The skill's rules forbid co-author information and Claude attribution.

### Does Commit push PR add a test plan section to PRs?

Only if the repository's PR template asks for one. Without a template it leaves the test plan section out.

### Are PRs opened as drafts?

No, by default they are published and not drafts, pushed to the origin remote.

### How do I install Commit push PR in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/commit-push-pr to use it in all your projects, or to .claude/skills/commit-push-pr in one project. Or install the jj plugin, which includes it: /plugin marketplace add jeffh/claude-plugins, then /plugin install jj@jeffh-claude-plugins.

### Does Commit push PR run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Commit push PR?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Commit push PR?

The closest alternatives to Commit push PR are Make PR easy to review, GitHub workflow, Commit, Gh stack and PR.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.
- [Commit](https://ai-powered.com/skills/commit-jeffh): Commit is an open-source agent skill for developer tools.
- [Gh stack](https://ai-powered.com/skills/gh-stack): Gh stack is an open-source agent skill for developer tools.
- [PR](https://ai-powered.com/skills/pr): PR is an open-source agent skill for developer tools.
- [Get PR comments](https://ai-powered.com/skills/get-pr-comments): Get PR comments is an open-source agent skill for developer tools.
- [Iterate PR](https://ai-powered.com/skills/iterate-pr): Iterate PR is an open-source agent skill for developer tools.
- [PR writer](https://ai-powered.com/skills/pr-writer): PR writer is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/commit-push-pr
