Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

CLAUDE.md: Add guidance against add-then-remove commit patterns.

Alya Abbottf58ad270e3cd
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md
index e33c8ce1cb8..1c26a50633b 100644
--- a/.claude/CLAUDE.md
+++ b/.claude/CLAUDE.md
@@ -143,6 +143,8 @@ coherent idea."** This is non-negotiable.
- Mix multiple separable changes in a single commit.
- Create a commit that "fixes" a mistake from an earlier commit in the same PR;
always edit Git to fix the original commit.
+- Add content in one commit only to remove or move it in the next;
+ plan upfront what belongs where and do it right the first time.
- Include debugging code, commented-out code, or temporary TODOs.
### Commit Message Format