chore(claude): add repo conventions and agent guardrails

This commit is contained in:
kasun committed 2026-11-23 21:55:51 +01:00
1 parent b56ea412de
commit 6d404e2b21
9 files changed
+411

No files matched your search

+10
View File
@@ -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 .