ah-create-pr
Create or Update GitHub Pull Request
Analyze the current branch and create or update a well-structured GitHub Pull Request. If an open PR already exists for the current branch, it is updated instead of creating a duplicate. The diff against the base branch is the single source of truth for all PR content.
Input
- Base branch (REQUIRED): The target branch this PR will merge into (e.g.,
main,develop). If the user did not provide it, STOP and ask before proceeding. Never assume or default to any branch. - Issue number (optional): The GitHub issue number this PR addresses (e.g.,
42,#42). If not provided by the user, do not attempt to infer it from the branch name -- simply omit issue references from the PR. - Labels (optional): Comma-separated list of labels to apply to the PR (e.g.,
bug,urgent,feature,frontend). If not provided by the user, auto-detect labels in step 2. - Current Git branch with unmerged commits
- Git diff against the base branch
Procedure
0. Preparation
Verify GitHub CLI authentication and check for uncommitted changes before proceeding.
More from arinhubcom/arinhub
ah-submit-code-review
Use this skill to submit code review when using the "ah" prefix. Use when asked to "ah submit code review 123". Submit a completed code review with line-specific comments and suggestions to a GitHub PR.
21ah-review-code
Use this skill to review code when using the "ah" prefix. Use when asked to "ah review code" or "ah review code 123". Review code for correctness, maintainability, and adherence to project standards. Supports local branch changes and remote Pull Requests (by ID or URL).
19ah-verify-requirements-coverage
Use this skill to verify requirements coverage when using the "ah" prefix. Use when asked to "ah verify requirements coverage", "ah verify requirements coverage issue 42", "ah verify requirements coverage PR 123", or "ah verify requirements coverage PR 123, issue 42". Verify that a PR or local changes fully implement requirements from a linked GitHub issue.
19arinhub-submit-code-review
Use this skill to submit code review when using the "ah" prefix. Use when asked to "ah submit code review 123", or "ah submit code review to PR 123". Submit a completed code review with line-specific comments and suggestions to a GitHub PR.
12arinhub-verify-requirements-coverage
Use this skill to verify requirements when using the "ah" prefix. Use when asked to "ah verify requirements", "ah verify requirements issue 42", "ah verify requirements PR 123", or "ah verify requirements PR 123, issue 42". Verify that a PR or local changes fully implement requirements from a linked GitHub issue.
12arinhub-code-reviewer
Use this skill to review code when using the "ah" prefix. Use when asked to "ah review code", "ah review code 123", or "ah review PR 123". Review code for correctness, maintainability, and adherence to project standards. Supports local branch changes and remote Pull Requests (by ID or URL).
11