No. 088 Ship it

Commit and Push Work

Use when the change has to leave the machine

  • Claude Code
  • Codex
  • Cursor
  • Ship it

Prompt

# Commit and Push Work

Please perform the following tasks:

1. **Check current git status** - Review all modified files and understand what changes have been made

2. **Create meaningful commit** - Stage appropriate files and create a commit with a clear, descriptive message following the project's conventions

3. **Push to remote** - Push your commits to the appropriate branch

4. **Check for PR feedback** - Review any open pull requests for:
   - Comments from reviewers
   - Change requests
   - CI/CD pipeline status
   - Merge conflicts

5. **Plan follow-up actions** - Based on any feedback found:
   - Create a todo list for addressing review comments
   - Identify any blocking issues
   - Note any questions to ask the team

Remember to:
- Follow the commit message format used in this repository
- Group related changes into logical commits
- Ensure tests pass before pushing
- Use draft PRs for work in progress

When to use

“Commit and Push Work” fits when the change has to leave the machine, because it says “Commit and Push Work”, and its first written step is “Check current git status - Review all modified files and understand what changes have been made”.

For “Commit and Push Work”, the extra line you type is the requirement those steps ask for, for example “make src/cart.js return 0 on an empty cart and skip a line with no price”, and the file then starts at “Check current git status - Review all modified files and understand what changes have been made”.

When not to use

Leave “Commit and Push Work” unused when the change is still a local question and nothing is ready to ship, because “Commit and Push Work” points the other way

How to run it

Claude Code

Claude Code stores “Commit and Push Work” as a Claude command and runs it with that command, putting the requirement in the argument, and CLAUDE.md should not also carry “Commit and Push Work”.

Codex

Codex takes “Commit and Push Work” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “Commit and Push Work”.

Cursor

Cursor should see “Commit and Push Work” only as a chat paste of “Commit and Push Work” for this turn. A file at .cursor/rules would keep applying after the turn ends.

Comparison

对比待补

This before-and-after was not run on this machine.

Related

来源:Darin Cassler · https://github.com/cassler/awesome-claude-code-setup/blob/main/commands/commit-and-push.md · MIT · Copyright (c) 2025 Darin Cassler · 2026-12-01