chore(claude): add repo conventions and agent guardrails
This commit is contained in:
1 parent
b56ea412de
commit
6d404e2b21
9 files changed
+411
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# Git pre-commit hook: blocks a commit if its staged changes contain a secret.
|
||||
#
|
||||
# Activate once per clone: git config core.hooksPath .githooks
|
||||
if ! command -v betterleaks >/dev/null 2>&1; then
|
||||
echo "pre-commit: betterleaks is not installed, so staged changes can't be scanned" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec betterleaks git --pre-commit --staged --redact --no-banner --no-color .
|
||||
Reference in new issue
Block a user