code-pull-request skill
Manage GitHub pull requests and GitLab merge requests by creating, commenting on, and merging them via CLI tools.
- GitHub stars
- 51
- Files
- 8
- Last commit
- Nov 7, 2026
- License
- MIT
- Allowed tools
- —
What does the code-pull-request skill do?
code-pull-request manages GitHub pull requests and GitLab merge requests by creating, commenting on, and merging them via CLI tools.
Summary generated from the skill's SKILL.md.
About the code-pull-request skill
Managing version control workflows for GitHub and GitLab is what this skill enables for developers working in terminal-based environments. It allows an agent to handle the entire lifecycle of a pull request or merge request, from the initial creation to final merging. When an agent detects a feature branch is ready for review, it can use this skill to submit the code, read existing feedback, or post new comments to address reviewer concerns.
The skill operates by executing commands through the gh or glab CLI tools, which must be installed and authenticated on the local system. To ensure safety, the skill follows a write-gated model where every action that modifies a repository, such as creating a PR, leaving a comment, or merging code, requires explicit human confirmation before the command runs. This makes it a controlled way to automate repetitive git operations while maintaining developer oversight.
What an agent can do with it
- 1Submit code for reviewAn agent can automatically open a new pull request or merge request when a feature branch is finished.
- 2Reviewer feedback managementDevelopers can use the agent to read through existing comments on a pull request to understand required changes.
- 3Responding to discussionsThe agent can reply to specific comments within a pull request to facilitate communication.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the code-pull-request skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the code-pull-request skill in Plugin
/plugin marketplace add martinffx/atelier /plugin install atelier@atelier
Install the code-pull-request skill in Claude Code
~/.claude/skills/code-pull-request/SKILL.md
$ npx degit martinffx/atelier/skills/code-pull-request ~/.claude/skills/code-pull-requestInstall the code-pull-request skill in Claude Code (project)
.claude/skills/code-pull-request/SKILL.md
$ npx degit martinffx/atelier/skills/code-pull-request .claude/skills/code-pull-requestInstall the code-pull-request skill in Codex
~/.agents/skills/code-pull-request/SKILL.md
$ npx degit martinffx/atelier/skills/code-pull-request ~/.agents/skills/code-pull-requestInstall the code-pull-request skill in Gemini CLI
~/.gemini/skills/code-pull-request/SKILL.md
$ npx degit martinffx/atelier/skills/code-pull-request ~/.gemini/skills/code-pull-requestInstall the code-pull-request skill in Claude.ai
npx degit martinffx/atelier/skills/code-pull-request code-pull-request && zip -r code-pull-request.zip code-pull-request # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-pull-request.zip
SKILL.md
View on GitHubPull Request / Merge Request Skill
Create, comment on, and merge GitHub pull requests or GitLab merge requests for the
current branch. Assumes the relevant CLI (gh or glab) is installed and authenticated.
This skill is create/read + write-gated. Every write action (create PR, leave comment, respond to comment, merge) requires explicit human confirmation before running.
Start Here
- Detect the platform and find the current branch's open PR/MR — see references/common.md.
- Pick a workflow:
| Workflow | Reference | Trigger phrases |
|---|---|---|
| Create PR/MR | create-pr.md | "open a PR", "make a PR", "submit for review" |
| Read comments | read-comments.md | "read PR comments", "show MR comments" |
| Leave a comment | leave-comment.md | "leave a comment", "comment on the PR" |
| Respond to a comment | respond-to-comment.md | "respond to a comment", "reply on the PR" |
| Merge PR/MR | merge-pr.md | "merge this PR", "ship it", "merge the MR" |
Both GitHub (gh) and GitLab (glab) are first-class. Every write step pauses for
human approval before running the CLI command.
Files in this skill
8code-pull-request skill questions
How do I install the code-pull-request skill in Claude Code?
Run npx degit martinffx/atelier/skills/code-pull-request ~/.claude/skills/code-pull-request. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the code-pull-request skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
Which platforms are supported?
The skill supports both GitHub and GitLab using their respective command line interfaces.
Does the agent perform write actions automatically?
No, all write actions such as creating a PR or merging require explicit human confirmation.
What tools must be installed for this skill to work?
The relevant CLI tools, either gh for GitHub or glab for GitLab, must be installed and authenticated.