From a812aa29adc35a389d8109e72d5950f187223c29 Mon Sep 17 00:00:00 2001 From: Kaan Barmore-Genc Date: Sun, 7 Jun 2026 14:22:20 -0500 Subject: [PATCH] Add git-safety and PR-review notes to CLAUDE.md files --- CLAUDE.md | 8 ++++++++ claude/CLAUDE.md | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 75e8892..6db8b36 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,3 +15,11 @@ type = "symbolic" For directories where programs create new files that should be tracked (e.g., fish's `funcsave` command), use the `ensure_dir_symlink` function in `setup.sh` instead of Dotter. This symlinks the entire directory so dynamically created files are automatically tracked in the repository. +## Git Destructive Operations + +Do **not** use destructive git operations like `git checkout ` without first confirming you are sure what will be destroyed. + +If you made a change to a file and you'd like to revert it, first use `git diff --shortstat ` at minimum to confirm the file only has your changes +and no pre-existing uncommitted changes. + + diff --git a/claude/CLAUDE.md b/claude/CLAUDE.md index bc7ace2..b88b5d6 100644 --- a/claude/CLAUDE.md +++ b/claude/CLAUDE.md @@ -8,3 +8,8 @@ The `discord-send` CLI is on my PATH. Use it whenever I ask you to notify me whe discord-send 'Build finished successfully' discord-send --attach ./screenshot.png 'Here is the rendered page' ``` + +## Responding to reviews + +When asked to respond to reviews in a PR, check the PR description and all comments. Check out the PR branch. Decide if any changes are required or not, make changes if needed, commit and push once done. Always push the PR branch if responding to a PR, do not push to a different branch. +