원클릭으로
draft-pr
Draft a pull request with Jira linking from the branch name
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Draft a pull request with Jira linking from the branch name
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | draft-pr |
| description | Draft a pull request with Jira linking from the branch name |
| disable-model-invocation | true |
Draft a pull request for the current branch.
git branch --show-current to get the current branch name.main unless the user specifies otherwise via $ARGUMENTS.git log and git diff against the base branch to understand ALL changes (not just the latest commit).type(context): [JIRA] description
type by reviewing ALL commits on the branch and bubbling up to a single conventional commit type (e.g., if commits include feat and fix, use feat since it's the higher-level change)feat, fix, refactor, docs, test, ci, chore, build, perfcontext is the area/scope of the change (e.g., workflows, actions, deploy)[JIRA] is the Jira ticket key in brackets if found (e.g., [INFRA-370])feat(workflows): [INFRA-370] add artifacts-cicd integration tests, fix(deploy): [ENG-123] correct artifact routing logic## Summary
<1-3 bullet points summarizing what changed and why>
## Jira
<link to ticket if found, otherwise omit this section>
## Changes
<Bulleted list of specific changes, grouped by area if needed>
## Test plan
<How to verify these changes — mention any tests added/run>
Generate a Changes Breakdown table by file type. Categorize each changed file and sum additions/deletions:
gh api repos/{owner}/{repo}/pulls/{number}/files --paginate \
--jq '.[] | "\(.filename)\t\(.additions)\t\(.deletions)"'
Categorize by extension: .yaml/.yml → YAML (workflows), .bats → Bats (tests), .sh → Shell scripts, .md → Markdown/Docs, etc. Present as a table:
## Changes Breakdown
| Category | +add | -del | net | files |
| ------------ | -------- | ------- | --------- | ------ |
| Bats (tests) | 698 | 0 | +698 | 3 |
| ... | ... | ... | ... | ... |
| **Total** | **1512** | **286** | **+1226** | **22** |
Add a brief note explaining the largest categories (e.g., "Shell script churn is mostly linter reformatting").
Present the draft to the user for review before creating the PR.
Create using gh pr create.
Construct Jira links as: https://aerospike.atlassian.net/browse/{TICKET_KEY}
If the user provides arguments, treat them as additional context about the PR (e.g., base branch, extra description, or ticket details). $ARGUMENTS