semantic-pr
Installation
SKILL.md
Workflow
Step 1 - Identify branch, target, and template
- Run
git branch --show-current. - Check for a project PR template at (in priority order):
.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md,pull_request_template.md,PULL_REQUEST_TEMPLATE.md,.github/PULL_REQUEST_TEMPLATE/*.md. - If found, read it and ask: "O projeto possui um template de PR (
<path>). Deseja usar o template do projeto ou o template padrão da skill?" If multiple exist inPULL_REQUEST_TEMPLATE/, list them and ask the user to choose. Store the choice for Step 4. - Ask for the target branch (if not provided), a brief explanation of the task/feature, and the Jira task link (skip the field entirely if not provided — no placeholder).
Step 2 - Check for existing PR
Run gh pr list --head <current_branch> --base <target_branch> --state open --json number,title,url. If a PR exists, edit it; otherwise create a new one.
Step 3 - Analyze commits
Run in parallel:
git log <target_branch>..<current_branch> --onelinegit diff <target_branch>...<current_branch> --stat
Related skills