You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/churchcrm/git-workflow.md
+37-12Lines changed: 37 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -317,29 +317,54 @@ Before marking PR ready for review, ensure:
317
317
318
318
## Agent-Specific Behaviors
319
319
320
-
### Regarding Auto-Commits
320
+
### Mandatory Code Review Before Any Commit <!-- learned: 2026-03-03 -->
321
321
322
-
**DO NOT auto-commit changes** without explicit user request.
322
+
**NEVER commit or push without showing the user the diff and receiving explicit approval.**
323
+
324
+
"Fix this bug" or "make the changes" is NOT permission to commit. Finishing the code and committing the code are two separate steps that always require explicit user confirmation.
325
+
326
+
**Required sequence for every commit:**
323
327
324
-
**Pattern:**
325
328
```
326
-
❌ WRONG - Auto-commits without asking
327
-
I'll make these changes and commit them.
328
-
[makes changes, runs git commit]
329
+
1. Make the changes
330
+
2. Run `git diff` — show the full diff to the user
331
+
3. Ask: "Please review the changes above. Shall I commit?"
332
+
4. Wait for explicit approval
333
+
5. Only then: git add → git commit → git push
334
+
```
329
335
330
-
✅ CORRECT - Ask permission first
331
-
I've completed the changes and tests pass locally. Ready to commit with this message:
332
-
"Fix issue #1234: ..."
336
+
**Examples:**
333
337
334
-
Would you like me to proceed?
335
338
```
339
+
❌ WRONG — commits immediately after making changes
340
+
I've fixed the bug. [runs git commit and git push]
341
+
342
+
❌ WRONG — asks to commit without showing the diff
343
+
I've made the changes. Ready to commit — shall I proceed?
344
+
345
+
✅ CORRECT — shows diff first, then waits for approval
346
+
I've made the following changes:
347
+
348
+
[git diff output]
349
+
350
+
Please review the above. Shall I commit with the message: "fix: ..."?
0 commit comments