← ClaudeAtlas

niceprlisted

Generate short, human PR titles and descriptions from branch diff and JIRA context; with --create or --update, pushes to your fork and opens or edits the PR
sgtlaugh/skills · ★ 2 · Code & Development · score 76
Install: claude install-skill sgtlaugh/skills
# /nicepr - Generate PR Description Generate a clean PR title + description from current branch changes and JIRA context. ## Usage ``` /nicepr # generate PR description (local only) /nicepr --humanize # generate + strip AI patterns via humanize skill /nicepr --humanize --concise # same + cut length ~50% /nicepr --create # push branch + create PR on GitHub /nicepr --create --draft # push branch + create draft PR /nicepr --create --reviewers acme/backend # create + assign reviewers (users or org/team); default: work.json "reviewers", none on a draft /nicepr --update # regenerate description for existing PR ``` ## Step 0 - Gather Context Run detection steps separately - if a step fails, handle it before continuing. Don't chain dependent steps. **Step 0a: Branch, user, and remotes** ```bash BRANCH=$(git branch --show-current) && GH_USER=$(gh api user --jq .login 2>/dev/null) && git remote -v ``` **Step 0b: Detect fork and upstream remotes** From `git remote -v` output: - **Fork remote**: the remote whose URL's owner is `$GH_USER` (your GitHub login, e.g. `github.com:octocat/<repo>`), whatever its name - `gh repo fork --clone` names your fork `origin` - **Upstream remote**: the org repo. Detect in priority order: 1. If fork remote exists, query `gh api "repos/$FORK_REPO" --jq '.parent.full_name'` for parent, match to a remote 2. If `origin` exists AND