Add Cursor shell hooks for vault and ansible apply gates #7

Merged
ilia merged 1 commits from feat/cursor-infra-hooks into master 2026-07-30 15:52:59 -05:00
Owner

Summary

  • Persist Cursor beforeShellExecution hooks (destructive + vault/ansible apply + no-verify) in this repo
  • Teach install.sh to sync hook scripts and install hooks.json only if missing (--overwrite-cursor-hooks to replace)
  • Include self-test helper cursor/hooks/test-hooks.py

Test plan

  • python3 cursor/hooks/test-hooks.py passes
  • ./install.sh --dry-run shows hooks sync
  • Fresh machine / missing ~/.cursor/hooks.json gets the repo copy; existing file is left alone unless --overwrite-cursor-hooks
## Summary - Persist Cursor `beforeShellExecution` hooks (destructive + vault/ansible apply + no-verify) in this repo - Teach `install.sh` to sync hook scripts and install `hooks.json` only if missing (`--overwrite-cursor-hooks` to replace) - Include self-test helper `cursor/hooks/test-hooks.py` ## Test plan - [ ] `python3 cursor/hooks/test-hooks.py` passes - [ ] `./install.sh --dry-run` shows hooks sync - [ ] Fresh machine / missing `~/.cursor/hooks.json` gets the repo copy; existing file is left alone unless `--overwrite-cursor-hooks`
ilia added 1 commit 2026-07-30 15:50:46 -05:00
Add Cursor shell hooks for vault and ansible apply gates
All checks were successful
CI / skip-ci-check (pull_request) Successful in 23s
CI / secret-scan (pull_request) Successful in 22s
9dc84bf8f5
Persist destructive/infra footgun hooks in the repo and teach install.sh
to sync them without clobbering a local hooks.json unless overwritten.
ilia scheduled this pull request to auto merge when all checks succeed 2026-07-30 15:50:57 -05:00
ilia merged commit ed4a311ab0 into master 2026-07-30 15:52:59 -05:00
ilia deleted branch feat/cursor-infra-hooks 2026-07-30 15:52:59 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ilia/dotfiles#7
No description provided.