.claude/skills/create-pr/SKILL.md
Create a new branch from main, commit all changes, push, and open a pull request.
npx skillsauth add poitch/Ciel create-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a new branch, commit all current changes, push, and open a pull request.
git status
If there are no staged or unstaged changes and no untracked files, inform the user there is nothing to commit and stop.
Run these in parallel to understand what will be committed:
git diff
git diff --cached
git log --oneline -5
If the user provided a branch name as $ARGUMENTS, use that. Otherwise, analyze the changes and generate a short, descriptive kebab-case branch name (e.g. add-cron-tools, fix-auth-redirect).
Ensure you are branching from the latest main:
git checkout main && git pull && git checkout -b {branch_name}
If already on a non-main branch and there are uncommitted changes, stash first, switch, then unstash:
git stash && git checkout main && git pull && git checkout -b {branch_name} && git stash pop
git add -A
Analyze the staged diff to write a concise commit message:
Create the commit. Always use a HEREDOC to pass the message:
git commit -m "$(cat <<'EOF'
<commit message here>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
EOF
)"
If the commit fails (e.g. pre-commit hook), inform the user and stop. Do NOT retry with --no-verify.
git push -u origin {branch_name}
If the push fails, inform the user and stop. Do NOT force push.
Create the PR using gh. Use a HEREDOC for the body:
gh pr create --title "<short title under 72 chars>" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points describing the changes>
## Test plan
<bulleted checklist of how to verify the changes>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
The PR title should match or closely follow the commit message first line.
Show the user:
development
Wait for Copilot code review to complete, then address any review comments.
development
Pull all file comments from the current GitHub pull request and address them by making code changes.
data-ai
Squash-merge the current PR, delete the branch, and switch back to main.
tools
Stage all changes, commit with an auto-generated message, and push to the remote.