pr-message-writer
Installation
SKILL.md
PR Message Writer
Write comprehensive, well-structured pull request descriptions by analyzing code changes and following established best practices for technical documentation.
Workflow
Step 1: Gather Context
-
Determine the main branch:
git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'Falls back to
mainormasterif not set. -
Find the merge base:
MAIN_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main") MERGE_BASE=$(git merge-base HEAD origin/$MAIN_BRANCH)