Agent skill
create-pr
Create a pull request (GitHub) or merge request (GitLab) from the current branch
Install this agent skill to your Project
npx add-skill https://github.com/desplega-ai/agent-swarm/tree/main/plugin/pi-skills/create-pr
SKILL.md
Create Pull Request / Merge Request
Create a PR (GitHub) or MR (GitLab) from the current branch with an auto-generated title and description.
Provider detection: Check the remote URL:
- If
github.com→ useghCLI - If
gitlab.comorgitlab.→ useglabCLI
Arguments
base-branch(optional): Branch to merge into (defaults tomainor repo default)
Prerequisites
You should be working in a repository cloned to /workspace/personal/<repo-name>.
Workflow
- Verify state — confirm you're in a git repo, not on main/master, and have commits to push.
- Run PR checks (MANDATORY) — Run ALL checks listed in the "PR Checks" section of your Repository Guidelines. Run each command/task sequentially. If ANY check fails, fix the issue and re-run until all pass. If no guidelines are defined, check the project's CLAUDE.md for a pre-PR checklist and run those. Do NOT proceed until all checks pass.
- Push the branch —
git push -u origin HEAD - Gather context — review commit messages and changed files since diverging from base.
- Generate title and description:
- Title: Concise summary (conventional commit style if the repo uses it)
- Description: Summary of changes, notable items, testing done, related issues
- Create the PR/MR using
gh pr createorglab mr create. - Check CI status — After creating the PR, wait ~30 seconds, then check CI with
gh pr checks <pr-number>(GitHub) orglab mr view --json pipelines(GitLab). If any check is failing, investigate the failure, fix it, push the fix, and re-check. Repeat until CI is green. - Report the PR/MR URL and CI status.
Tips
- Link related issues using
Fixes #123orCloses #123in the description - Keep PRs focused — one logical change per PR
- If the branch has many commits, summarize the overall change rather than listing each commit
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
implement-issue
Implement a GitHub issue or GitLab issue and create a PR/MR
start-leader
Start the Agent Swarm Leader
investigate-sentry-issue
Investigate and triage a Sentry error issue
user-management
How to manage the user registry — creating users for new Slack/GitHub/GitLab identities, managing aliases, resolving users across platforms. Use when a new human interacts with the swarm or when user identity needs updating.
close-issue
Close a GitHub or GitLab issue with a summary comment
swarm-chat
Effective communication within the agent swarm using internal Slack
Didn't find tool you were looking for?