# Code pull request

> Code pull request is an open-source agent skill for developer tools. Lets your agent open, read, comment on and merge GitHub PRs or GitLab MRs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/martinffx/atelier/tree/main/skills/code-pull-request
- **Repository:** https://github.com/martinffx/atelier
- **GitHub stars:** 53
- **License:** MIT
- **Skill name:** code-pull-request
- **Collection:** https://github.com/martinffx/atelier
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill handles the pull request lifecycle for the branch you are working on. It covers creating a PR or merge request, reading review comments, leaving new comments, replying to existing ones, and merging. Each workflow is described in its own reference file, and the agent first detects whether the repository is hosted on GitHub or GitLab and locates any open request for the current branch.

The skill relies on the platform's command line tool, either gh for GitHub or glab for GitLab, and expects it to be installed and logged in. Every write action, including creating, commenting, responding and merging, is gated so the agent asks the user for explicit confirmation before running the command.

The skill ships as a folder with a SKILL.md and reference documents only, with no bundled scripts. The source is published under the MIT license in the atelier repository and is offered as a Claude Code plugin.

## When your agent uses it

> Manage GitHub pull requests or GitLab merge requests: create, read/leave/respond to comments, and merge. Triggers on "open a PR", "make a PR", "merge this PR", "merge the MR", "read PR comments", "leave a comment on the PR", "respond to a comment", "ship this", or when a feature branch is ready for review.

## What it can access

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

- [Instructions only, no scripts](https://github.com/martinffx/atelier/tree/HEAD/skills/code-pull-request)
- [License: MIT](https://github.com/martinffx/atelier/tree/HEAD/skills/code-pull-request)

## Features

- **Platform detection:** Determines whether the repository uses GitHub or GitLab and finds the open request for the current branch.
- **Create requests:** Opens a pull request or merge request for a ready feature branch after confirmation.
- **Read review comments:** Retrieves existing comments on a pull or merge request so the agent can review them.
- **Leave and reply to comments:** Posts new comments or responses on a request, each gated by human approval.
- **Merge with approval:** Merges a pull or merge request only after the user explicitly confirms the action.
- **Dual platform support:** Handles both GitHub via gh and GitLab via glab with the same set of workflows.

## Good for

- Open a pull request for the feature branch I just finished
- Read the review comments left on my merge request
- Reply to a reviewer's comment on the open PR
- Leave a comment on a pull request explaining a change
- Merge the approved merge request after confirming

## Install

### Claude Code

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

```sh
/plugin marketplace add martinffx/atelier
/plugin install atelier@atelier
```

Or copy only this skill to `~/.claude/skills/code-pull-request`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-pull-request &&
cp -R "$tmp/skills/code-pull-request" ~/.claude/skills/code-pull-request &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-pull-request` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-pull-request` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-pull-request &&
cp -R "$tmp/skills/code-pull-request" ~/.agents/skills/code-pull-request &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-pull-request` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-pull-request` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-pull-request &&
cp -R "$tmp/skills/code-pull-request" ~/.cursor/skills/code-pull-request &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-pull-request` 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/martinffx/atelier.git --path skills/code-pull-request
```

Or copy the folder to `~/.gemini/skills/code-pull-request` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-pull-request`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/martinffx/atelier.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-pull-request &&
cp -R "$tmp/skills/code-pull-request" ~/.copilot/skills/code-pull-request &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-pull-request` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/martinffx/atelier.git
```

Then copy `atelier/skills/code-pull-request` into your agent's skills folder as `code-pull-request`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need installed?

It assumes the relevant CLI, either gh for GitHub or glab for GitLab, is installed and authenticated.

### Does the agent merge or post without asking?

No. Every write action such as creating a request, leaving or responding to a comment, or merging requires explicit human confirmation before the CLI command runs.

### Which hosts are supported?

Both GitHub and GitLab are supported, using gh and glab respectively.

### Are there scripts included?

No, the skill folder contains instructions and reference documents without bundled scripts.

### How do I install Code pull request in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-pull-request to use it in all your projects, or to .claude/skills/code-pull-request in one project. Or install the atelier plugin, which includes it: /plugin marketplace add martinffx/atelier, then /plugin install atelier@atelier.

### Does Code pull request 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 Code pull request?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Code pull request?

The closest alternatives to Code pull request are GitHub workflow, Code review, Iterate PR, Get PR comments and Make PR easy to review.

## Where this comes from

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

## Alternatives

- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review 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.
- [Get PR comments](https://ai-powered.com/skills/get-pr-comments): Get PR comments is an open-source agent skill for developer tools.
- [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.
- [PR](https://ai-powered.com/skills/pr): PR is an open-source agent skill for developer tools.
- [GitHub triage](https://ai-powered.com/skills/github-triage): GitHub triage is an open-source agent skill for developer tools.
- [PR address feedback](https://ai-powered.com/skills/pr-address-feedback): PR address feedback is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-pull-request
