]> git.ekhem.eu.org Git - guix.git/commitdiff
[ai] Add commit policy and hook-sharing guidelines.
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 7 Jul 2026 22:36:36 +0000 (00:36 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Wed, 8 Jul 2026 21:53:21 +0000 (23:53 +0200)
claude/.config/claude/CLAUDE.md

index 47d1a900775dc157f8209ea78628b2d4ec0caa05..b9e34a3872f3b8ffb7901836af14271b1a096471 100644 (file)
@@ -6,6 +6,12 @@
 - Suggest creating a custom /command for operations run frequently.
 - When you ask for permission often, suggest adding it in
   .claude/settings.local.json.
+- Never commit changes unless explicitly asked to do that.
+- When multiple Bash PreToolUse hooks share a matcher, each script must
+  exit 0 for commands outside its domain. Check the command string from
+  stdin and return early if the command doesn't match the script's
+  responsibility. This keeps settings.json free of `if` conditions and
+  makes policy fully script-resident.
 
 # Style