prkitlisted
Install: claude install-skill mimukit/skills
# prkit
Turn the commits on the current branch into a clean GitHub pull request: a title in the repo's commit style, a body that explains *what changed and why*, and a test plan, all inferred from the real diff, not guessed. Creation goes through the [`gh` CLI](https://cli.github.com), reusing the repo's PR template when one exists.
## When this fires
The user wants to open a pull request: "open a PR", "create a pull request", "raise a PR", "submit this for review", "gh pr create". If they only want the PR title and body *drafted* (not opened), do everything except the final `gh pr create` and print the result instead.
## Procedure
### 1. Preflight
Confirm the tooling and branch are ready before writing anything:
```sh
gh --version # gh installed?
gh auth status # authenticated?
git branch --show-current
```
- If `gh` is missing or unauthenticated, say so and point to `https://cli.github.com` / `gh auth login`. Don't try to work around it.
- If `git branch --show-current` is empty, stop: detached HEAD needs a branch before a PR can be opened. Offer to create or switch to one.
- If the current branch is the default branch, stop: a PR needs a feature branch. Offer to create one (`git switch -c <name>`) before continuing, and **get the name from gitkit**, which owns branch naming, rather than inventing a shape here. Work that traces to an issue gets `issue-<n>-<slug>`; an urgent fix patched straight onto the base branch gets `hotfix-<slug>`; anything else keep