Prepare and create a pull request — runs verification, checks branch state, summarizes changes, creates PR via gh CLI.
Install
npx skillscat add alex-jordan547/agent-setup/pr-ready Install via the SkillsCat registry.
SKILL.md
Steps
Verify — Run
/verifyfirst. If any check fails, stop and report.Branch check:
- Ensure not on master/main:
git branch --show-current - Check remote tracking:
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null - If no tracking, push:
git push -u origin HEAD
- Ensure not on master/main:
Analyze changes:
- Commits:
git log master..HEAD --oneline - File stats:
git diff master...HEAD --stat - Full diff for summary:
git diff master...HEAD
- Commits:
Create PR via gh CLI:
- Title: concise (< 70 chars), from commit history
- Body format:
## Summary - bullet points summarizing changes ## Test plan - [ ] Verification checks passed - [ ] specific test items - Command:
gh pr create --title "..." --body "..."
Return the PR URL.
$ARGUMENTS: optional target branch (default: master), --draft flag, or specific title.