create-pr
Skill by desplega-ai
Creates a GitHub pull request or GitLab merge request from the current branch. It runs the repository's PR checks, generates the title and description, and follows up on CI. Built for developers who work with git and the gh or glab CLI.
Install create-pr
Built from the published package, never by AI.
git clone --depth 1 https://github.com/desplega-ai/agent-swarm /tmp/agent-swarm && mkdir -p ~/.claude/skills && cp -r /tmp/agent-swarm/plugin/pi-skills/create-pr ~/.claude/skills/create-prRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/desplega-ai/agent-swarm /tmp/agent-swarm && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-swarm/plugin/pi-skills/create-pr ~/.gemini/antigravity-cli/skills/create-prAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The create-pr skill opens a pull request on GitHub or a merge request on GitLab from the current git branch. It detects the provider from the remote URL and uses the gh or glab CLI. Before creating the request, it pushes the branch and runs the repository's PR checks, fixing failures until they pass.
It generates a title and description that follow the repository's conventions. When the repo has a PR or MR template, the skill fills every section of it. The description can include a review map and a change outline built from the diff. After the request is created, the skill waits briefly, checks CI, fixes failing checks, and reports the URL and CI status. It is aimed at developers working in a cloned repository who want a consistent PR workflow.
Written from the project's SKILL.md and checked against it.
What it can do
- Provider detectionDetects GitHub or GitLab from the remote URL and picks the gh or glab CLI.
- Pre-PR checksRuns the repository's PR checks and fixes failures before creating the request.
- Title and descriptionGenerates them following repo conventions and PR or MR templates.
- Review mapBuilds a risk-ordered table of changed areas from the git diff stat.
- Change outlineAdds pseudocode, mermaid or tree views showing the shape of the change.
- CI follow-upChecks CI after creation and investigates, fixes and re-checks failing checks.
What you need
- A git repository with commits on a branch other than main or master
- GitHub CLI (gh) for GitHub repositories
- GitLab CLI (glab) for GitLab repositories
- Repository cloned to /workspace/personal/<repo-name>
Try asking
- Create a pull request from my current branch
- Open a merge request into develop on GitLab
- Create a PR, then check CI until it is green
Good to know
- Expects the repository cloned to /workspace/personal/<repo-name>.
- Must not run on main or master.
- gh pr create --body does not apply the repo template, so the body is passed as a file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugin/pi-skills/create-pr/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to create-pr
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
create-pr: common questions
Does it work with GitLab?
Yes. If the remote URL is gitlab.com or a gitlab. host, the skill uses the glab CLI and creates a merge request.
Does it use the repository's PR template?
Yes. The skill looks for pull_request_template.md in the usual GitHub locations and for GitLab merge request templates, and fills every section it finds.
What happens if CI fails after the PR is created?
The skill waits about 30 seconds, checks CI, investigates any failure, pushes a fix and re-checks until CI is green.
How do I install create-pr?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is create-pr free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is create-pr safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to create-pr?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
