summaryrefslogtreecommitdiffstats
path: root/.claude/CLAUDE.md
blob: 1a8ec8202877b26913faade99ae709e3978342a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Git

- Never add a `Co-Authored-By` line to commit messages.
- Don't `git commit` until I've tested the change and confirmed it works. Make the edits, summarize, and wait for my
  go-ahead — especially for interactive/GUI changes I have to verify myself.
- When renaming or moving a tracked file, use `git mv`, not plain `mv`, so the rename is staged (clean history/diff).
  Still don't commit it — I drive commits.

# CLAUDE.md memory

- Create project memory CLAUDE.md at `./.claude/CLAUDE.md,` not `./CLAUDE.md`. Do not commit it to git.

# .gitignore

- Never add `.claude` and `.directory` to local `.gitignore`. These patterns are globally ignored.

# Bash

- Format multi-step Bash commands across multiple lines (one logical step per line, `\` continuations, section `echo`
  separators on their own line) rather than one dense single line. I read commands before approving them.

# Diagnostics & linters

- Never silence a warning/diagnostic to make it go away. Fix the root cause, or give the tool the real information it
  needs (types, config, library paths) so it stops being wrong. Inline `disable`/`ignore` annotations and blanket mutes
  are not acceptable unless I explicitly ask for them.
- Don't re-propose an approach I've already rejected or you've conceded is wrong. Carry the concession forward.