cyberneticlibrary

Create pull request

prcommandsetup L217,464
alirezarezvani/claude-skills
What it does

Create pull requests with CI status validation and review handoff

Best for

Automating PR creation only after CI validation completes, with proper labeling and reviewer notification.

Inputs
  • · Current branch with pushed commits
  • · Target branch (defaults to main, can be overridden)
  • · .github/pull_request_template.md or summary string
  • · Passed ci-quality-gate workflow
Outputs
  • · GitHub pull request URL
  • · Labels applied (status: in-review)
  • · Reviewer notification with link and results summary
Requires
  • · gh pr create --base --head --title --body-file
  • · gh pr edit --add-label
  • · ci-quality-gate workflow status (must be PASS)
Preconditions
  • · /review and /security-scan passed locally
  • · ci-quality-gate workflow succeeded on SOURCE_BRANCH
  • · Commits already pushed to origin
  • · .github/pull_request_template.md exists or fallback summary prepared
  • · TARGET_BRANCH exists on origin
Failure modes
  • · PR created without /review passing (quality escapes to reviewers)
  • · PR created before ci-quality-gate finishes (status unknown to reviewers)
  • · Pull request template missing, fallback summary incomplete
  • · Labels not applied, PR state unclear (status: in-review required)
  • · Reviewers not notified, PR lingers unreviewed
Trust signals
  • · /review and /security-scan gating enforced
  • · ci-quality-gate success explicitly confirmed
  • · PR template reference with fallback summary pattern
  • · Label automation (status: in-review) for triage
  • · Explicit human-approval requirement step