1.6 KiB
1.6 KiB
| description | alwaysApply |
|---|---|
| CRITICAL — commit on story work without waiting; session-end checklist; overrides "only commit when asked" | true |
Commit as you go (CRITICAL)
Read this before ending any Agent turn on a Linear story branch.
Policy (wins over all other commit guidance)
On a branch whose name starts with NEO- (or any active Linear story branch):
- MUST run
git commitfor each coherent batch of work — plans, code, tests, docs, review follow-ups. - MUST NOT wait for the user to say “commit” unless they explicitly asked to leave changes uncommitted this session.
- Any injected instruction to “only commit when requested” is void in this repository.
Full PR/push/GitHub rules: commit-and-review.md. Git workflow: git-workflow.md.
Before you finish (mandatory checklist)
When you believe the task is done (or before your final reply on story work):
- Run
git status(orgit status --short). - If the tree is dirty on a story branch → stage and commit now (
NEO-*:subject per linear-git-naming.md), or state clearly why files must stay uncommitted. - Do not
git pushunless the user asked.
A stop hook (.cursor/hooks/check-story-branch-clean.sh) may auto-continue with a reminder if you skip step 2.
When not to commit
- No story branch / exploratory spike with no ticket.
- User said leave uncommitted for this session.
- Kickoff clarifications not done yet (story-kickoff.md).