Session PR
Create a PR from the current session's changes.
Workflow
- Run
git statusto see current changes (never use -uall flag) - Run
git diffto understand what changed - Run
git log -5 --onelineto see recent commit style - Create and checkout a new branch:
- If user provided $ARGUMENTS, use that as branch name - Otherwise, generate a descriptive branch name from the changes (e.g., fix-auth-bug, add-user-validation)
- Stage only the files that were modified in this session (prefer specific files over
git add -A) - Create a commit with a clear message summarizing the session's work:
- End with: Co-Authored-By: Claude <noreply@anthropic.com>
- Push the branch with
-uflag - If the PR touches frontend code (e.g., files in
app/, components, routes, styles), capture a screenshot of the relevant UI change and include it in the PR body using thegithub-image-hostingskill. - Create PR using:
gh pr create --title "..." --body "$(cat <<'EOF'
## Summary
<bullet points of changes>
## Test plan
<how to verify>
<screenshot if frontend changes>
Generated with [Claude Code](https://claude.ai/code)
EOF
)"- Return the PR URL to the user