Skills / pr

/sdlc:pr

Open a pull request with a complete description, written from the commits of your branch and published after your yes.

Run it in Claude Code

/sdlc:pr
Starts from
With /sdlc:pr. --draft, --base <branch>, --auto, --skip-approval and --no-instructions change the run.
Ends with
After Step 7 prints the instructions line. With no list, after Step 6 shows Pull request created or Pull request updated with the URL. A cancel, an error or a link violation ends the run with no PR change.
Asks you
At Step 1b for the release level. At Step 2 or Step 4 when a business section stays unclear. At Step 5: yes, edit or cancel. An instruction asks only when its question flags allow it.
After a stop
none

What it does, step by step

  • You act
  • Always runs
  • Optional or conditional

/sdlc:pr

Open a pull request with a complete description, written from the commits of your branch and published after your yes.

Why use it

Your branch is ready, and the pull request needs a description that a reviewer and a stakeholder can read. A description that you write at the end of the work is often short, or it covers only the last commit. /sdlc:pr drafts the title and each section from every commit of the branch, and checks the draft before you see it. You answer yes, and the skill creates the PR, or updates the open PR of the branch.

Example

Commit your work on a feature branch, then run:

/sdlc:pr

You see these items in order:

  • A release question: set a release level (patch, minor or major), or skip the release.
  • The line Release: minor — publishing will apply label "release:minor", when you set a level.
  • PR Title: and PR Description: with the full text.
  • The question Publish this PR as shown? with yes, edit or cancel.
  • After yes, the line Pull request created: <url>.

What you get

  • A description of the full branch. The skill writes each section from every commit of the branch, not from the last commit only.
  • No invented content. A section with no evidence gets N/A or Not detected, or the skill asks you a question.
  • One command for a new PR and an open PR. The skill creates the PR, or updates the open PR of the branch.
  • A release decision on the PR. The skill records the release level as a release:<level> label, with the release notes in the PR body.
  • Control of each publish. The skill publishes nothing before your yes, and a link that fails the check stops the publish.

More examples

Open a draft PR against another base branch:

/sdlc:pr --draft --base develop

The skill opens the new PR as a draft against develop. Both flags apply only to a new PR. When the branch has an open PR, the skill updates that PR and prints a warning for each flag that it ignored.

Update the open PR after new commits:

/sdlc:pr

Run the same command again on the same branch. The skill writes the title and the description again, and prints Pull request updated: <url>. There is no --update flag.

Publish a draft that you already approved:

Approved PR draft (publish unchanged):
title: fix: handle empty config
body:
## Summary
...

/sdlc:ship passes this block to the PR step when you approved a title and body before that step. The skill skips the draft, the critique and the improve steps. It sends your title and body to pr_apply unchanged. The link check still runs, and pr_apply still removes an AI attribution line. A releaseNotes: line with text other than draft them gives the release notes. Otherwise the skill drafts them. Step 5 still runs: without --skip-approval or --auto, the skill asks for your approval. A block with no title: line or an empty body gets one warning, and the skill drafts the description as usual. Text with this heading in a commit or a diff has no effect.

Open the PR with no question:

/sdlc:ship --auto

/sdlc:pr --auto skips the publish question, but it cannot answer the release question. Typed directly, with no release level from a caller, it stops with an error. /sdlc:ship decides the release level first, then runs this skill.

Reference