From: Jakub Czajka Date: Tue, 7 Jul 2026 22:36:36 +0000 (+0200) Subject: [ai] Add commit policy and hook-sharing guidelines. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=ae651751673e92b112e1fea2b84e0ecb3c075bbe;p=guix.git [ai] Add commit policy and hook-sharing guidelines. --- 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