create-pr
Generates a comprehensive PR description from local branch data, diffs, and lint results.
Install
mkdir -p .claude/skills/create-pr-guild-agents && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14435" && unzip -o skill.zip -d .claude/skills/create-pr-guild-agents && rm skill.zipInstalls to .claude/skills/create-pr-guild-agents
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a pull request from the current branch with structured summaryKey capabilities
- →Verify current branch state for PR creation
- →Gather context including diff stats, test results, and lint results
- →Generate a structured PR description from commit messages and gathered context
- →Push the branch to origin and create a pull request via `gh` CLI
- →Display PR URL and suggest next steps for review and merging
How it works
This skill verifies the branch state, collects diffs, test, and lint results, then generates a structured PR description. It uses the `gh` CLI to push the branch and create the pull request.
Inputs & outputs
When to use create-pr
- →Submitting a new feature for review
- →Generating PR descriptions automatically
- →Verifying branch state before merging
About this skill
Create PR
Creates a pull request from the current feature branch with a structured summary, test results, and change description. Closes the pipeline loop: init -> build-feature -> create-pr.
When to use
- After completing a feature with
/build-feature - When you have changes on a feature branch ready for review
- To create a well-structured PR without manual formatting
Usage
/create-pr
Process
Step 1 -- Verify branch state
- Confirm you are NOT on
mainordevelop-- refuse to create PR from default branches - Run
git statusto check for uncommitted changes -- if any, warn the user and ask whether to commit first - Run
git log main..HEAD --onelineto get the list of commits that will be in the PR - If there are no commits ahead of main, report that there is nothing to PR
Step 2 -- Gather context
Collect the information needed for the PR description:
- Commits:
git log main..HEAD --oneline-- list of all commits on this branch - Diff summary:
git diff main..HEAD --stat-- files changed with line counts - Test results: Run project tests (e.g.,
npm test) and capture pass/fail - Lint results: Run project lint (e.g.,
npm run lint) and capture pass/fail - Branch name: Extract feature name from the branch (e.g.,
feature/dark-mode->dark-mode)
If tests or lint fail, warn the user but allow them to proceed (some PRs are draft/WIP).
Step 3 -- Generate PR description
Build a structured PR description:
## Summary
[2-4 bullet points describing what this PR does, derived from commit messages]
## Changes
[File-level summary from git diff --stat]
## Test plan
- [x] Tests: [pass/fail] ([count] tests)
- [x] Lint: [pass/fail]
- [ ] [Any manual verification steps if applicable]
Step 4 -- Create the PR
- Push the branch to origin:
git push -u origin [branch-name] - Create the PR using
gh pr create:- Title: derived from branch name or first commit message (max 70 chars)
- Body: the generated description from Step 3
- Base:
main(or the project's default branch)
- Report the PR URL to the user
Step 5 -- Post-creation
- Display the PR URL
- Suggest next steps:
- "Request review from a teammate"
- "Run
/code-reviewfor an AI code review" - "Merge when ready with
gh pr merge [number]"
Example Session
User: /create-pr
Checking branch state...
Branch: feature/dark-mode (4 commits ahead of main)
Tests: 82 passed, 0 failed
Lint: 0 errors
Creating PR...
PR #42: "feat: add dark mode toggle to settings"
https://github.com/org/repo/pull/42
Next steps:
- Request review from a teammate
- Run /code-review for AI code review
- Merge when ready
Notes
- The PR title should be concise (under 70 characters) and follow conventional commits format when the project uses it
- If the branch has
wip:commits from build-feature checkpoints, consider squashing them before creating the PR - This skill does NOT merge the PR -- that is a manual step or a separate command
When not to use it
- →When on `main` or `develop` branches, as PRs cannot be created from them
- →When there are no commits ahead of `main` to create a PR from
- →When a manual PR creation process is preferred without automated description generation
Limitations
- →It refuses to create PRs from `main` or `develop` branches
- →It does not merge the PR; that is a manual step or separate command
- →The PR title is concise (under 70 characters) and may follow conventional commits format
How it compares
This skill automates the entire PR creation process, including context gathering and description generation, providing a structured and consistent PR compared to manual creation.
Compared to similar skills
create-pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| create-pr (this skill) | 0 | 2mo | No flags | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.