Ship
Commit and push all changes with a well-crafted commit message.
Instructions
- •
Check current state
- •Run
git statusto see all changes - •Run
git diffto understand what changed - •Run
git log --oneline -5to see recent commit style
- •Run
- •
Stage changes
- •Add relevant files with
git add - •NEVER commit sensitive files (.env, credentials.json, secrets/, etc.)
- •Warn the user if sensitive files are detected
- •Add relevant files with
- •
Generate commit message
- •Write in English
- •Focus on the "why" rather than the "what"
- •Keep the first line concise (50-72 chars)
- •Use imperative mood ("Add feature" not "Added feature")
- •
Commit with signature Use HEREDOC format for proper formatting:
bashgit commit -m "$(cat <<'EOF' Your commit message here 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> EOF )"
- •
Push to remote
- •Run
git push - •If no upstream is set, use
git push -u origin <branch>
- •Run
- •
Deploy agent if needed
- •Check if any committed files are under
agent/agent/(the Python server code) - •Files under
agent/static/are served by WordPress and do NOT need a fly.io deploy - •If server code changed, deploy to fly.io:
bash
cd agent && flyctl deploy --remote-only
- •Report deploy result (success or failure)
- •Check if any committed files are under
- •
Report result
- •Show the commit hash
- •Confirm which branch was pushed
- •Confirm push was successful
- •If agent was deployed, confirm fly.io deploy status
Safety
- •NEVER force push
- •NEVER push to main/master without explicit user approval
- •NEVER commit files that look like secrets or credentials
- •If there are no changes, inform the user instead of creating an empty commit