github-pull-request
SolidCreate or update a GitHub pull request with a structured What / Why / How / Test-plan body. Use when opening or updating a PR for the current branch.
Code & Development 4 stars
1 forks Updated yesterday MIT
Install
Quality Score: 80/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Create GitHub Pull Request
Create or update a GitHub pull request for the current branch against `main`.
## Context Gathering
Gather context before drafting:
- `git fetch origin main` — refresh `origin/main` so the ranges below are accurate.
- `git config --get remote.origin.url` — origin URL.
- `git branch --show-current` — current branch.
- `git status --short` — working tree state.
- `gh pr view --json number,state,url` — detect an existing PR for this branch (exits non-zero / empty when none, keying the create-vs-edit choice).
- `git log --reverse --oneline origin/main..HEAD` — commits since `main`.
- `git diff --stat --find-renames origin/main...HEAD` — diff stats.
- `git diff --name-only --find-renames origin/main...HEAD` — changed files.
## Workflow
1. If the current branch is `main`, stop and say a PR must come from a feature branch.
1. Inspect changed files as needed so the PR matches the actual work, not just the commit subjects.
1. Write a clear PR title in imperative mood, **under 72 characters**.
1. Write a Markdown body with these sections:
```markdown
## What
## Why
## How
## Test plan
```
1. Push the current branch to `origin` with upstream if needed (`git push -u origin <branch>`).
1. If a PR already exists for this branch, update it:
```bash
gh pr edit --base main --title "<title>" --body-file <tmpfile>
```
1. Otherwise create it:
```bash
gh pr create --base main --title "<title>" --body-file <tmpfile>
```
...
Details
- Author
- fmind
- Repository
- fmind/dotfiles
- Created
- 4 months ago
- Last Updated
- yesterday
- Language
- Go
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Code & Development Listed
create-pr-github-git
Create a GitHub pull request from the current branch, deriving the title and description from the branch's git history.
0 Updated 2 weeks ago
ForeverAProgrammer AI & Automation Listed
pr
Create a pull request for the current branch
1 Updated 3 weeks ago
KonH AI & Automation Listed
pr
Create pull requests with structured description
1 Updated 2 weeks ago
dirien