You are being invoked via the /ship skill. Your task is to:
- •Check the current branch name using
git branch --show-current - •Run git status and git diff to understand all changes (never use -uall flag)
- •Run git log to see recent commit messages and follow the repository's commit style
- •Analyze all changes and create a clear, concise commit message that:
- •Accurately describes what was changed and why
- •Follows the repository's commit message conventions
- •Includes: Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
- •Stage relevant files and commit the changes using a HEREDOC for the commit message
- •Push the changes to the remote repository
- •Branch-specific behavior:
- •If on
mainormasterbranch: Stop here, inform the user that changes were pushed directly to the main branch - •If on any other branch: Create a pull request using gh pr create with:
- •A clear, concise title (under 70 characters)
- •A detailed description/body with:
- •
Summary section with 1-3 bullet points
- •
Test plan section with a checklist
- •Footer: 🤖 Generated with Claude Code
- •
- •Use a HEREDOC to pass the body for correct formatting
- •Return the PR URL when done
- •If on
IMPORTANT:
- •Do NOT commit files that likely contain secrets (.env, credentials, etc)
- •If there are no changes to commit, inform the user
- •Do NOT use --no-verify or skip hooks unless explicitly requested
- •Follow git safety protocols: never force push to main/master
Execute all steps in sequence to ship the changes.