You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add RuleCatch Stop hook — runs automatically every turn
rulecatch-check.sh runs when Claude finishes a turn, reporting any rule
violations. Guaranteed to run (like verify-no-secrets.sh). Skips silently
if RuleCatch isn't installed — zero overhead for new users.
Added to project settings.json, global settings.json, GitHub Pages hooks
section, project structure, and install-global references.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
VIOLATIONS="${VIOLATIONS}\n - AWS ACCESS KEY in $file"
664
+
fi</code></pre>
665
+
</div>
666
+
667
+
<divclass="hook-stage">
668
+
<divclass="hook-stage-header">
669
+
<spanclass="hook-stage-tag hook-stop">Stop</span>
670
+
<h3>rulecatch-check.sh</h3>
671
+
</div>
672
+
<p>Runs when Claude <strong>finishes a turn</strong>. Checks RuleCatch for any rule violations detected during the session. Skips silently if RuleCatch isn't installed — zero overhead for users who haven't set it up yet.</p>
673
+
<preclass="language-bash"><codeclass="language-bash"># Run RuleCatch violation check
<li><strong>Smart merge</strong> — if you already have a global <code>CLAUDE.md</code>, it appends missing sections without overwriting yours</li>
<li><strong>Hooks</strong> — copies <code>block-secrets.py</code> and <code>verify-no-secrets.sh</code> to <code>~/.claude/hooks/</code></li>
730
+
<li><strong>Hooks</strong> — copies <code>block-secrets.py</code>, <code>verify-no-secrets.sh</code>, and <code>rulecatch-check.sh</code> to <code>~/.claude/hooks/</code></li>
711
731
</ul>
712
732
<p>Reports exactly what was added, skipped, and merged. Your existing config is never overwritten.</p>
0 commit comments