conventional-pull-requests
4
总安装量
3
周安装量
#50993
全站排名
安装命令
npx skills add https://github.com/mrgrauel/skills --skill conventional-pull-requests
Agent 安装分布
amp
3
opencode
3
cursor
3
kimi-cli
3
codex
3
github-copilot
3
Skill 文档
Conventional Pull Requests
Goal
Create pull requests with:
- a Conventional Commits style title
- a body that follows the repository PR template
- concise, accurate change context derived from the actual diff
Workflow
- Inspect branch and commit context.
- Run
git status --short,git log --oneline --decorate -n 20, and identify the current branch. - Determine the default base branch with
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name'. - Review diff scope with
git diff --name-status origin/<base>...HEAD.
- Run
- Confirm there is meaningful committed work for a PR.
- If there are only uncommitted changes, ask whether to create commits first.
- Find and read the PR template before drafting.
- Check
.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md, and.github/PULL_REQUEST_TEMPLATE/*.md.
- Check
- Draft a conventional title.
- Format:
<type>[optional-scope]: <description> - Use standard types:
feat,fix,docs,refactor,test,chore,build,ci,perf,style,revert. - Keep description imperative and specific.
- Format:
- Draft the PR body from the template.
- Fill all required sections with concrete details from the diff.
- Include testing notes and risk notes when relevant.
- Generate a comprehensive PR body with a summary, key changes, architecture benefits if necessary, technical details, and testing information.
- Push the branch if needed.
- Run
git push -u origin <branch>when the branch has no upstream or local commits are not yet pushed.
- Run
- Create the PR with GitHub CLI.
- Use
gh pr create --base <base> --head <branch> --title "<title>" --body-file <file>. - Use
--draftonly when explicitly requested.
- Use
- Return the PR URL and a short summary of title/body decisions.
Rules
- Do not invent changes; use only facts from the branch diff and commits.
- Ask one focused clarification when required template fields cannot be inferred.
- Prefer a small, clear PR description over verbose narrative.