From ae651751673e92b112e1fea2b84e0ecb3c075bbe Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Wed, 8 Jul 2026 00:36:36 +0200 Subject: [PATCH] [ai] Add commit policy and hook-sharing guidelines. --- claude/.config/claude/CLAUDE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/claude/.config/claude/CLAUDE.md b/claude/.config/claude/CLAUDE.md index 47d1a90..b9e34a3 100644 --- a/claude/.config/claude/CLAUDE.md +++ b/claude/.config/claude/CLAUDE.md @@ -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 -- 2.47.3