Skip to main content
Generalagentic-dev3o

pr

Creates a GitHub pull request using gh CLI. Triggered when the user asks to open, create, or submit a PR, or runs /pr.

Stars
10
Source
agentic-dev3o/devx-plugins
Updated
2026-05-22
Slug
agentic-dev3o--devx-plugins--pr
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/agentic-dev3o/devx-plugins/HEAD/plugins/git/skills/pr/SKILL.md -o .claude/skills/pr.md

Drops the SKILL.md into .claude/skills/pr.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Create Pull Request

Accept an optional base branch argument (default: main).

Workflow

  1. Verify clean working tree and current branch via git status
    • If working tree is dirty, stop and inform the user
  2. Analyze commits since base branch via git log and git diff <base>...HEAD
  3. Push branch if needed: git push -u origin HEAD
  4. Create PR:
gh pr create --title "<type>: <concise title>" --body "$(cat <<'EOF'
## Summary
- <1-3 bullets focusing on WHY, not what>

## Test plan
- [ ] <verification steps>
EOF
)"
  1. Return the PR URL

Rules

  • Never use interactive flags (-i)
  • Never use --force or --force-with-lease when pushing