用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aerospike/shared-workflows --skill draft-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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