← ClaudeAtlas

wise-pr-createlisted

Detect the PR state for the current branch and either create a new GitHub PR or refresh an existing one — body drafted from the project's `.github/pull_request_template.md` (or a bundled fallback) filled from the branch's diff + commits, Jira key auto-detected from branch/diff/log/session, base branch picked interactively from `main` + recent `release*` branches when creating. This skill runs just the PR create/refresh piece — the `draft-body` + `ensure-pr` steps — without the reviewer + watch loop. Does NOT attach reviewers — use `/wise-pr-add-reviewers` for that — and does NOT watch CI — use `/wise-pr-watch`. Invoked as `/wise-pr-create` (bare alias) or `/wise:wise-pr-create` (canonical). Use when the user says "open a PR", "draft the PR body", "update the PR description", "push this to review", or types `/wise-pr-create`.
e1024kb/wise-claude · ★ 1 · Code & Development · score 77
Install: claude install-skill e1024kb/wise-claude
# /wise-pr-create — create or refresh a PR for the current branch ## Why this skill exists Opening a PR is mostly mechanical: pick a base, draft a body, run `gh pr create`. This skill is the narrowed surface for exactly that: it runs the **draft-body** and **ensure-pr** steps and stops, leaving reviewers (`/wise-pr-add-reviewers`) and the CI/review watch loop (`/wise-pr-watch`) to their own commands. Single source of truth for the drafting + creation logic: `plugins/wise/references/pr/draft-body.md` and `plugins/wise/references/pr/ensure-pr.md`. This skill reads both at run time via the `Read` tool and follows them — and so do the `-auto` PR skills and the `ticket-auto` workflow, so behaviour stays in sync by construction. If that prose ever changes, this skill's behaviour changes too — no duplication. ## Invocation ``` /wise-pr-create /wise:wise-pr-create # canonical namespaced form ``` No positionals, no flags. Anything the user types beyond the skill name is ignored. ## Procedure This skill does NOT probe dependencies up-front. If `gh` or `git` isn't installed, the first command below fails with a clean `command not found` and Claude surfaces that to the user conversationally with a pointer at `/wise-init` — same UX as running any other command against an incomplete environment. Skipping the pre-flight makes the skill faster on the hot path and removes a coupling between wise-pr-* and the workflow engine's registry. ### 1. Detect PR state ```bash BRANCH=