patronum-verify
Run a self-test to verify that hook enforcement is working correctly.
Usage
Inside Claude Code, run:
/patronum-verifyWhat it tests
Scope coverage — checks whether patronum is installed at user scope (required for subagent protection). Warns if only project or local scope is detected. See Security Considerations.
Hook enforcement — simulates tool calls and checks whether the hook blocks or allows them correctly:
- Should block:
~/.ssh/id_rsa,.env,~/.aws/credentials,printenv,.pemfiles - Should allow: Safe file paths, safe commands
When to use
- After first install (to confirm setup worked)
- After modifying patterns (to confirm no regressions)
- When something seems off (to diagnose issues)
Troubleshooting
If tests fail, the command checks:
- Is
nodeavailable? - Does
~/.claude/patronum.jsonexist? - Is the JSON valid?
- Are the hook scripts accessible?