chore: add agent guardrails (CLAUDE.md, stop hook, permissions, git hooks)

CLAUDE.md documents commands, the spec-first workflow, the functional-core
rule and a do-not list. A Claude Code Stop hook blocks finishing while
typecheck or unit tests fail. Permissions deny reading env files, hook
bypass flags, hard resets and recursive deletes, and ask before CI edits
or any push. Husky pre-commit now also typechecks and runs unit tests;
pre-push runs coverage and the mutation gate when src/domain changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-03 18:14:04 +02:00
co-authored by Claude Sonnet 5.5
parent 0995a3b5ca
commit 6e5d14882e
5 changed files with 129 additions and 0 deletions
+2
View File
@@ -1 +1,3 @@
pnpm exec lint-staged
pnpm --filter @mintel/web typecheck
pnpm --filter @mintel/web test