name: ox:commit description: Commit changes with a clean commit message
Context
First, run these commands and review their output:
- Current git status:
git status --porcelain - Current branch:
git branch --show-current - Recent commits:
git log --oneline -10
You usually already know what changed in this session. If you are unsure what the changes are, run git diff HEAD (or a targeted git diff HEAD -- <file>) before committing.
Commit style
- Use a short commit message (one line, imperative mood) that describes WHAT changed - never meta-messages like "Address review feedback" or "Fix PR comments"
- The commit body should usually be blank - the code should speak for itself
- ONLY add a body to explain NON-OBVIOUS changes that aren't clear from the code
- Do NOT repeat or describe what the code does - that's redundant
- Do NOT prepend commit messages with "RED", "GREEN", or other TDD phase labels - just describe the change
- See recent commits for examples (ignore dependabot and github-actions commits)
Your task
Based on the above changes:
- Create a new branch if on main (do NOT add timestamps to branch names)
- Create a single commit with an appropriate message
- Execute each step as a separate command. Do NOT chain commands with && or ;.