Claude Code · Hook
Hooks for Claude Code
工具呼叫時自動執行的腳本,例如 lint、安全檢查與驗證。 每個條目都有一行可複製的安裝指令,可以直接放進 Claude Code 設定。
Post-Edit Lint Hook
Auto-run lint/typecheck after every file write.
0
lintqualityautomation
Post-Edit Secrets Scan
Block writes that contain hardcoded API keys or placeholders.
0
securitysecretsautomation
Pre-Bash SQL Safety
Block destructive SQL without a paired SELECT verification.
0
securitysqlsafety
Pre-Bash Git Safety
Block dangerous git operations without explicit confirmation.
0
securitygitsafety
Marathon Checkpoint
Force verification every 15 edits to prevent drift.
0
processqualityautomation
Session-Start Context Loader
Auto-load project-specific context at session start.
0
contextonboardingautomation
Session-Stop Summary
Write a session summary on exit for future-you to pick up.
0
logginghandoffautomation
User Prompt Augment
Preprocess user prompts before Claude sees them.
0
promptcontextautomation
Tool-Use Tracker
Log every tool call for cost / pattern analysis.
0
observabilitymetricsautomation
Post-Edit Image Optimize
Auto-optimize images when written to the repo.
0
assetsoptimizationautomation