draft-pull-request
SolidCreates a draft pull request using gh CLI with a structured what/why/how description
Data & Documents 98 stars
12 forks Updated today MIT
Install
Quality Score: 92/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Draft Pull Request
Create a draft pull request using `gh` CLI with a structured **What / Why / How** description that communicates the purpose and approach of your changes clearly.
## Usage
```bash
/draft-pull-request [title]
```
- If a title is provided via `$ARGUMENTS`, use it as the PR title.
- Otherwise, derive a concise title from the branch name and commit history.
## Process
### 1. Gather context
```bash
# Detect the repository's default branch
BASE_BRANCH=$(gh repo view --json defaultBranchRef -q '.defaultBranchRef.name')
# Check current branch
git branch --show-current
# Review commit history since branching from base
git log "$BASE_BRANCH"..HEAD --oneline
# Review the full diff
git diff "$BASE_BRANCH"..HEAD --stat
git diff "$BASE_BRANCH"..HEAD
```
### 2. Compose the PR description
Write a structured description following the **What / Why / How** template:
```markdown
## What
[Concise summary of the changes made. What was added, modified, or removed?]
## Why
[The motivation behind this change. What problem does it solve? What opportunity does it capture?]
## How
[Brief explanation of the approach taken. Key technical decisions, patterns used, or trade-offs made.]
## Checklist
- [ ] Tests added or updated
- [ ] Documentation updated
- [ ] No breaking changes (or breaking changes documented above)
```
### 3. Create the draft PR with gh CLI
```bash
gh pr create \
--draft \
--title "<PR title>" \
--body "<structured what/why/how description>...
Details
- Author
- jellydn
- Repository
- jellydn/my-ai-tools
- Created
- 6 months ago
- Last Updated
- today
- Language
- Shell
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
git-pr
Create a well-formed pull request (title/body/labels) from the current branch via gh; manual invoke only.
11 Updated 2 weeks ago
hadyfayed Data & Documents Listed
pr-draft-wordy
{{ ƔƔƔ }} Create a draft pull request to main
5 Updated 3 days ago
JasonWarrenUK Code & Development Listed
create-pr
Drafts a pull request title and description from the branch's commits and diff — what changed, why, and how to verify — following Conventional Commits and flagging breaking changes. Asks for explicit confirmation before pushing or opening the PR.
0 Updated yesterday
janmarkuslanger